/* =====================================================================
   버전 4 · 원페이지형 2차 (2026-11-26 2차 피드백 반영)
   - 버전 2·3 스타일 위에 덧씌움 (v2.css → v2-sub.css → v3.css → v4.css)
   - 우이락 구성 참고: 영상 첫 화면, 배경 한 장 + 누끼 사진 배너, 단순한 유튜브 구간
   ===================================================================== */

/* ---------------------------------------------------------------- 1. 첫 화면 (영상 / 빠른 컷) */
.v4-hero { position: relative; height: 100vh; height: 100svh; min-height: 640px; overflow: hidden; background: var(--char); color: #fff; }
.v4-hero__media { position: absolute; inset: 0; }
.v4-hero__media video { width: 100%; height: 100%; object-fit: cover; }
.v4-reel li { position: absolute; inset: 0; opacity: 0; }
.v4-reel li.is-on { opacity: 1; z-index: 1; }
.v4-reel img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.18); }
/* 컷이 바뀔 때마다 살짝 다가가는 느낌 (영상 클로즈업처럼) */
.v4-reel li.is-on img { animation: v4-push 1.1s var(--ease) forwards; }
@keyframes v4-push { from { transform: scale(1.18); } to { transform: scale(1.04); } }
.v4-hero__shade { position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(90deg, rgba(10, 6, 4, .78) 0%, rgba(10, 6, 4, .45) 42%, rgba(10, 6, 4, .08) 75%),
              linear-gradient(0deg, rgba(10, 6, 4, .6) 0%, rgba(10, 6, 4, 0) 40%); }
.v4-hero__text { position: absolute; left: max(60px, calc((100% - 1400px) / 2)); bottom: 120px; z-index: 5; max-width: 900px; }
.v4-hero__title { margin: 0; font-family: var(--serif); font-size: clamp(44px, 5.6vw, 92px); font-weight: 700; line-height: 1.12; letter-spacing: -0.05em; white-space: nowrap;
  text-shadow: 0 4px 30px rgba(0, 0, 0, .45); }
.v4-hero__sub { margin: 20px 0 0; font-family: var(--serif); font-size: clamp(22px, 2.4vw, 36px); font-weight: 600; letter-spacing: -0.04em; text-shadow: 0 2px 20px rgba(0, 0, 0, .5); }
.v4-hero__sub .t-yellow { color: var(--gold); }
.v4-hero__cta { margin-top: 38px; }
.v4-hero .v-scroll { z-index: 5; }

/* ---------------------------------------------------------------- 3·4. 브랜드 배너: 배경 한 장 + 누끼 */
.v4-band { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: clip; isolation: isolate; }
.v4-band__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.v4-band::before { content: ""; position: absolute; inset: 0; z-index: -1; }
.v4-band--rice { background: var(--char); color: #fff; }
.v4-band--rice::before { background: linear-gradient(90deg, rgba(20, 12, 8, .9) 0%, rgba(20, 12, 8, .72) 45%, rgba(20, 12, 8, .35) 100%); }
.v4-band--bingsu { background: #fffbe9; color: var(--ink); }
.v4-band--bingsu::before { background: linear-gradient(270deg, rgba(255, 255, 255, .82) 0%, rgba(255, 255, 255, .45) 50%, rgba(230, 246, 243, .1) 100%); }
.v4-band__in { position: relative; width: 100%; max-width: 1400px; margin: 0 auto; padding: calc(var(--hd-s) + 40px) 60px 80px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 40px; }
.v4-band--bingsu .v4-band__in { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.v4-band__logo img { height: 56px; width: auto; }
.v4-band--rice .v4-band__logo img { filter: brightness(0) invert(1); }
.v4-band__title { margin: 30px 0 0; font-family: var(--serif); font-size: clamp(38px, 3.8vw, 62px); font-weight: 700; line-height: 1.22; letter-spacing: -0.05em; }
.v4-band--rice .v4-band__title .t-pink { color: #ff9b73; }
.v4-band--bingsu .v4-band__title .t-teal { color: var(--teal-deep); }
/* 화살표 키워드: 어두운 배경용 색 */
.v4-band--rice .v3-kw__list b { color: #fff; }
.v4-band--rice .v3-kw__list .t-pink { color: #ff9b73; }
.v4-band--rice .v3-kw__no, .v4-band--rice .v3-kw__count { color: rgba(255, 255, 255, .7); }
.v4-band--rice .v3-kw__count b { color: #fff; }
.v4-band--rice .v3-arrow { border-color: rgba(255, 255, 255, .5); color: #fff; }
.v4-band--rice .v3-arrow::before { border-color: #fff; }
.v4-band--rice .v3-arrow:hover { background: var(--pink); border-color: var(--pink); }
.v4-band--bingsu .v3-kw__list .t-pink { color: var(--teal-deep); }
.v4-band--bingsu .v3-arrow:hover { background: var(--teal-deep); border-color: var(--teal-deep); }
.v4-kw { margin-top: 44px; }

/* 누끼 사진: 키워드가 바뀔 때마다 날아 들어오고 빠져나감 */
.v4-cut { position: relative; height: min(68vh, 620px); }
.v4-cut li { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; pointer-events: none;
  transform: translateX(14%) scale(.9); transition: opacity .5s ease, transform .9s var(--ease); }
.v4-cut li.is-on { opacity: 1; transform: none; transition-delay: .25s; }
.v4-cut img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.v4-cut--dish img { width: 100%; filter: drop-shadow(0 40px 50px rgba(0, 0, 0, .55)); }
.v4-cut--cup { order: -1; }
.v4-cut--cup li { transform: translateX(-14%) scale(.9); }
.v4-cut--cup li.is-on { transform: none; }
.v4-cut--cup img { filter: drop-shadow(0 40px 50px rgba(11, 94, 89, .28)); }
.v4-cut--cup li.is-on img { animation: v3-float 6s ease-in-out infinite; }

/* ---------------------------------------------------------------- 5. 유튜브: 왼쪽 고정 사진 + 오른쪽 영상 */
.v4-media { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--cream); }
.v4-media__side { position: relative; }
.v4-media__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; color: #fff; display: flex; align-items: center; justify-content: center; text-align: center; }
.v4-media__sticky > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.v4-media__sticky::after { content: ""; position: absolute; inset: 0; background: rgba(12, 8, 6, .55); }
.v4-media__head { position: relative; z-index: 2; padding: 40px; }
.v4-media__head .v-kicker { color: var(--gold); }
.v4-media__title { margin: 16px 0 0; font-family: var(--serif); font-size: clamp(40px, 4vw, 64px); font-weight: 700; line-height: 1.2; letter-spacing: -0.05em; }
.v4-media__title .t-yellow { color: var(--gold); }
.v4-media__desc { margin-top: 22px; font-size: 18px; line-height: 1.7; opacity: .9; }
.v4-media__list { padding: 120px max(60px, calc((100vw - 1400px) / 2)) 120px 70px; display: grid; gap: 90px; align-content: start; }
.v4-media__group { text-align: center; }
.v4-media__group + .v4-media__group { padding-top: 90px; border-top: 1px solid rgba(12, 26, 25, .12); }
.v4-media__label { font-size: 16px; color: var(--gray); }
.v4-media__label b { color: var(--ink); }
.v4-media__gtitle { margin: 12px 0 34px; font-family: var(--serif); font-size: clamp(30px, 2.6vw, 42px); font-weight: 700; line-height: 1.28; letter-spacing: -0.04em; }
.v4-media__gtitle .t-pink { color: var(--pink); }
.v4-media__videos { display: grid; gap: 34px; }
.v4-media__videos .v-yt { display: block; position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 9; box-shadow: 0 18px 40px rgba(12, 26, 25, .16); }
.v4-media__videos .v-yt img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.v4-media__videos .v-yt:hover img { transform: scale(1.04); }
.v4-media__videos p { margin-top: 14px; font-size: 17px; font-weight: 600; line-height: 1.5; }

/* ---------------------------------------------------------------- 6. 점주 인터뷰 */
.v4-talk { padding: 140px 0; background: var(--char); color: #fff; }
.v4-talk__head { text-align: center; margin-bottom: 70px; }
.v4-talk__kicker { display: inline-block; padding: 8px 22px; font-size: 16px; font-weight: 700; color: var(--ink); background: #fff;
  border-left: 5px solid var(--pink); border-right: 5px solid var(--pink); }
.v4-talk__title { margin: 26px 0 0; font-family: var(--serif); font-size: clamp(34px, 3.6vw, 56px); font-weight: 700; line-height: 1.3; letter-spacing: -0.05em; color: #f3d9a4; }
.v4-talk__title .t-yellow { color: #fff; }
.v4-talk__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 60px; align-items: start; }
.v4-talk__video .v-yt { display: block; position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 9; }
.v4-talk__video .v-yt img { width: 100%; height: 100%; object-fit: cover; }
.v4-talk__yt { margin-top: 18px; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 16px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 10px; font-size: 16px; font-weight: 600; transition: background .3s; }
.v4-talk__yt:hover { background: rgba(255, 255, 255, .08); }
.v4-talk__yt i { width: 26px; height: 18px; border-radius: 5px; background: #ff0033; position: relative; }
.v4-talk__yt i::after { content: ""; position: absolute; left: 10px; top: 5px; border-left: 7px solid #fff; border-top: 4px solid transparent; border-bottom: 4px solid transparent; }
.v4-talk__quotes li { padding: 26px 0; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.v4-talk__quotes li:first-child { padding-top: 0; }
.v4-talk__quotes b { display: block; font-family: var(--serif); font-size: 22px; font-weight: 600; line-height: 1.45; letter-spacing: -0.03em; color: #f3d9a4; }
.v4-talk__quotes p { margin-top: 10px; font-size: 16px; line-height: 1.75; color: rgba(255, 255, 255, .82); }

/* ---------------------------------------------------------------- 7. 상위 6개 매장 */
.v4-top .v3-top__store small { display: inline-block; margin-right: 4px; padding: 2px 9px; border-radius: 99px; font-size: 13px; font-weight: 600; color: var(--teal-deep); background: var(--mint); vertical-align: 2px; }
.v4-top .v3-top__card:first-child { background: var(--pink); border-color: var(--pink); color: #fff; box-shadow: 0 24px 50px rgba(196, 102, 74, .35); }
.v4-top .v3-top__card:first-child::before { background: var(--ink); }
.v4-top .v3-top__card:first-child .v3-top__store { color: #fff; }
.v4-top .v3-top__card:first-child .v3-top__store small { color: var(--pink); background: #fff; }
.v4-top .v3-top__card:first-child .v3-top__amt b,
.v4-top .v3-top__card:first-child .v3-top__amt span { color: #fff; }

/* ---------------------------------------------------------------- 경쟁력 02 반경 독점: 그림 하나만 크게 */
.v4-zone__map { margin: 56px auto 0; max-width: 720px; padding: 46px 40px 40px; border-radius: 30px; background: var(--teal-darker); color: #fff; text-align: center;
  box-shadow: 0 24px 60px rgba(11, 94, 89, .22); }
.v4-zone__map figcaption { font-family: var(--serif); font-size: 22px; font-weight: 600; margin-bottom: 18px; }
.v4-zone__map svg { width: 100%; max-width: 520px; margin: 0 auto; display: block; overflow: visible; }
.v4-zone__map.is-on .v3-zone__c { transform: scale(1); }
.v4-zone__map.is-on .v3-zone__r { opacity: 1; }

/* 경쟁력 03 인건비: 영상 아래 설명 없이 영상만 */
.v4-labor .v3-labor__machine { min-height: 340px; }
.v4-labor .v3-labor__machine video { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; transform: none; }
.v4-labor .v3-labor__staff { display: flex; flex-direction: column; justify-content: center; }
.v4-labor .v3-labor__staff li:last-child { opacity: 1; }
.v4-labor .v3-labor__staff b { font-family: var(--serif); font-size: 34px; font-weight: 700; color: var(--pink); }
.v4-labor .v3-labor__staff small { font-size: 17px; font-weight: 600; color: var(--ink); }

/* ---------------------------------------------------------------- 출점 가능 지역 지도 */
.v4-area { padding: 140px 0; background: linear-gradient(180deg, #1d1612 0%, var(--char) 100%); color: #fff; }
.v4-area .v-kicker { color: var(--gold); }
.v4-area .v-title { color: #fff; }
.v4-area .v-title .t-pink { color: #ff9b73; }
.v4-area .v-des { color: rgba(255, 255, 255, .78); }
.v4-area__box { margin-top: 10px; }
.v4-area__tabs { display: flex; justify-content: center; gap: 10px; margin: 44px 0 34px; }
.v4-area__tabs button { min-width: 150px; padding: 14px 26px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .28); background: transparent; color: #fff;
  font: 600 18px/1 var(--font); cursor: pointer; transition: background .3s, border-color .3s, color .3s; }
.v4-area__tabs button small { font-family: var(--en); font-size: 14px; opacity: .7; margin-left: 4px; }
.v4-area__tabs button.is-on { background: var(--pink); border-color: var(--pink); }
.v4-area__tabs button:hover:not(.is-on) { border-color: #fff; }
.v4-area__panel { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 50px; align-items: center;
  padding: 40px; border-radius: 30px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); }
.js .v4-area__panel:not(.is-on) { display: none; }
.js .v4-area__panel.is-on { animation: v4-fadein .6s var(--ease); }
@keyframes v4-fadein { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.v4-area__map svg { width: 100%; height: auto; max-height: 640px; display: block; margin: 0 auto; overflow: visible; }
.v4-area__land path { fill: #3a2c26; stroke: #1a120f; stroke-width: 1; stroke-linejoin: round; transition: fill .4s; }
.v4-area__land path.is-on { fill: #c4664a; }
.v4-area__map--city .v4-area__land path { fill: #3a2c26; }
.v4-area__seoul { fill: #5a4a42; stroke: #1a120f; stroke-width: 1; }
.v4-area__seoul-name { fill: rgba(255, 255, 255, .7); font: 600 14px var(--font); text-anchor: middle; }
.v4-area__pin circle { fill: var(--gold); stroke: #1a120f; stroke-width: 2; }
.v4-area__pin text { fill: #fff; font: 700 16px var(--font); paint-order: stroke; stroke: rgba(18, 12, 10, .85); stroke-width: 3px; stroke-linejoin: round; }
.v4-area__map--city .v4-area__pin circle { r: 6; fill: #ff9b73; }
.v4-area__map--city .v4-area__pin text { font-size: 15px; }
.v4-area__list-title { font-size: 20px; }
.v4-area__list-title b { font-family: var(--serif); font-size: 32px; font-weight: 700; margin-right: 6px; }
.v4-area__list-title span { color: var(--gold); font-weight: 700; margin-left: 6px; }
.v4-area__list ul { margin-top: 24px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.v4-area__list li { position: relative; padding: 14px 16px 14px 38px; border-radius: 12px; background: rgba(255, 255, 255, .06); font-size: 18px; font-weight: 600; }
.v4-area__list li::before { content: ""; position: absolute; left: 16px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--gold); }
.v4-area__cta { margin-top: 30px; }
.v4-area__note { margin-top: 26px; text-align: center; font-size: 14px; color: rgba(255, 255, 255, .55); }

/* ---------------------------------------------------------------- 반응형 */
@media (max-width: 1024px) {
  .v4-band__in { padding: calc(var(--hd-s) + 30px) 40px 70px; gap: 20px; }
  .v4-media { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  .v4-media__list { padding: 90px 40px; }
  .v4-talk__body { grid-template-columns: 1fr; gap: 44px; }
  .v4-talk__video { max-width: 760px; margin: 0 auto; width: 100%; }
  .v4-area__panel { grid-template-columns: 1fr; padding: 30px; }
  .v4-labor .v3-labor__machine { min-height: 0; }
  .v4-labor .v3-labor__machine video { position: static; height: auto; aspect-ratio: 9 / 5; }
}
@media (max-width: 768px) {
  .v4-hero { min-height: 560px; }
  .v4-hero__text { left: 20px; right: 20px; bottom: 96px; }
  .v4-hero__title { font-size: clamp(30px, 8.6vw, 42px); }
  .v4-hero__sub { font-size: 19px; margin-top: 12px; }
  .v4-hero__shade { background: linear-gradient(0deg, rgba(10, 6, 4, .82) 0%, rgba(10, 6, 4, .4) 50%, rgba(10, 6, 4, .15) 100%); }
  .v4-reel img { object-position: center; }
  .v4-hero .v-scroll { display: none; }

  .v4-band { min-height: 0; }
  .v4-band__in, .v4-band--bingsu .v4-band__in { grid-template-columns: 1fr; padding: 70px 20px 60px; gap: 10px; }
  .v4-band--rice::before { background: linear-gradient(180deg, rgba(20, 12, 8, .85) 0%, rgba(20, 12, 8, .7) 100%); }
  .v4-band--bingsu::before { background: rgba(255, 255, 255, .7); }
  .v4-band__logo img { height: 42px; }
  .v4-band__title { margin-top: 20px; font-size: clamp(28px, 7.6vw, 36px); }
  .v4-kw { margin-top: 28px; }
  .v4-cut { height: 300px; order: 2; }
  .v4-cut--cup { order: 2; }

  .v4-media { grid-template-columns: 1fr; }
  .v4-media__sticky { position: relative; height: auto; min-height: 380px; }
  .v4-media__head { padding: 70px 20px; }
  .v4-media__title { font-size: clamp(30px, 8vw, 40px); }
  .v4-media__desc { font-size: 16px; }
  .v4-media__list { padding: 64px 20px 70px; gap: 60px; }
  .v4-media__group + .v4-media__group { padding-top: 60px; }
  .v4-media__gtitle { font-size: 27px; margin-bottom: 24px; }
  .v4-media__videos p { font-size: 15px; }

  .v4-talk { padding: 90px 0; }
  .v4-talk__head { margin-bottom: 44px; }
  .v4-talk__title { font-size: clamp(25px, 6.8vw, 32px); }
  .v4-talk__quotes b { font-size: 19px; }
  .v4-talk__quotes p { font-size: 15px; }

  .v4-zone__map { padding: 32px 18px 28px; border-radius: 22px; }
  .v4-zone__map figcaption { font-size: 18px; }

  .v4-labor .v3-labor__staff b { font-size: 28px; }

  .v4-area { padding: 90px 0; }
  .v4-area__tabs { gap: 6px; }
  .v4-area__tabs button { min-width: 0; flex: 1; padding: 12px 8px; font-size: 16px; }
  .v4-area__panel { padding: 20px 16px 26px; gap: 26px; border-radius: 22px; }
  /* 지도가 작아지는 만큼 글자·점은 크게 (지도 좌표 기준 크기) */
  .v4-area__map--seoul .v4-area__pin text, .v4-area__map--gyeonggi .v4-area__pin text { font-size: 26px; }
  .v4-area__map--seoul .v4-area__pin circle, .v4-area__map--gyeonggi .v4-area__pin circle { r: 8; }
  .v4-area__map--city .v4-area__pin text { font-size: 21px; }
  .v4-area__list-title b { font-size: 26px; }
  .v4-area__list li { font-size: 16px; padding: 12px 12px 12px 32px; }
  .v4-area__list li::before { left: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .v4-reel li.is-on img, .v4-cut li.is-on img { animation: none; }
  .v4-cut li { transition: opacity .3s; transform: none; }
}

/* 유튜브: 누르면 그림 자리에 영상이 같은 크기로 (iframe 기본 크기 300×150 로 줄어드는 문제 방지) */
.v4-media__videos iframe, .v4-talk__video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 18px; box-shadow: 0 18px 40px rgba(12, 26, 25, .16); }
.v4-talk__video iframe { border-radius: 16px; }

/* 경쟁력 02 반경 그림: 매장마다 색·크기를 조금씩 다르게 + 지도 느낌 배경 */
.v4-zone__map svg { max-width: 600px; border-radius: 18px; overflow: hidden; }
#zoneDots circle { fill: rgba(255, 255, 255, .13); }
.v4-zone__road path { fill: none; stroke: rgba(255, 255, 255, .07); stroke-width: 12; stroke-linecap: round; }
.v4-zone__area .v3-zone__c { stroke-width: 2.5; stroke-dasharray: none; }
.v4-zone__area--1 .v3-zone__c { fill: rgba(255, 155, 115, .3); stroke: #ff9b73; }
.v4-zone__area--2 .v3-zone__c { fill: rgba(63, 186, 177, .32); stroke: var(--mint); }
.v4-zone__area--3 .v3-zone__c { fill: rgba(255, 215, 121, .24); stroke: var(--gold); }
.v4-zone__map .v3-zone__r line.is-1 { stroke: #ffb596; } .v4-zone__map .v3-zone__r text.is-1 { fill: #ffb596; }
.v4-zone__map .v3-zone__r line.is-2 { stroke: var(--mint); } .v4-zone__map .v3-zone__r text.is-2 { fill: var(--mint); }
.v4-zone__map .v3-zone__r text { paint-order: stroke; stroke: rgba(11, 94, 89, .9); stroke-width: 4px; }
.v4-zone__store circle { fill: #fff; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .25)); }
.v4-zone__store path { fill: none; stroke: var(--teal-darker); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.v4-zone__store g { transform-box: fill-box; }
.v4-zone__store > g:nth-child(1) circle { fill: #fff1ea; } .v4-zone__store > g:nth-child(1) path { stroke: var(--pink); }
.v4-zone__store > g:nth-child(3) circle { fill: #fff8e2; } .v4-zone__store > g:nth-child(3) path { stroke: #b07f1a; }
@media (max-width: 768px) {
  .v4-zone__map .v3-zone__r text { font-size: 28px; }
}
