/* 첫 화면 자연 풍경 부분 움직임 (원본 이미지 1672x941 좌표 기준) */
.hero{position:relative;overflow:hidden;overflow:clip}
.hero-fx{position:absolute;left:0;top:0;width:0;height:0;z-index:1;pointer-events:none;overflow:hidden}
.hero-fx svg{display:block;width:100%;height:100%;pointer-events:none;overflow:hidden}
.hero-fx *{pointer-events:none}

.hero-fx [class*="fx-"]{transform-box:fill-box;transform-origin:center}
.fx-fall-a{animation:fx-fall 1.5s linear infinite}
.fx-fall-b{animation:fx-fall 2.4s linear infinite}
.fx-fall-c{animation:fx-fall 0.95s linear infinite}
@keyframes fx-fall{from{transform:translateY(-200px)}to{transform:translateY(0)}}

.fx-mist{animation:fx-mist 9s ease-in-out infinite alternate}
.fx-mist.m2{animation-duration:12s;animation-delay:-4s}
.fx-mist.m3{animation-duration:15s;animation-delay:-8s}
@keyframes fx-mist{from{opacity:.6;transform:translateX(-14px) scale(.95)}to{opacity:1;transform:translateX(16px) scale(1.08)}}

.fx-ripple{fill:none;stroke:#fff;stroke-width:1.8;opacity:0;animation:fx-ripple 6s ease-out infinite}
@keyframes fx-ripple{0%{opacity:0;transform:scale(.25)}15%{opacity:.85}100%{opacity:0;transform:scale(1.7)}}
.fx-spark{fill:#fff;opacity:0;animation:fx-spark 3.4s ease-in-out infinite}
@keyframes fx-spark{0%,100%{opacity:0;transform:scale(.4)}50%{opacity:.95;transform:scale(1.15)}}

.fx-sway{animation:fx-sway 7s ease-in-out infinite alternate}
.fx-sway.s2{animation-duration:9s;animation-delay:-3s}
.fx-sway.s3{animation-duration:8s;animation-delay:-5s}
@keyframes fx-sway{from{transform:translate(-1px,0) skewX(.25deg)}to{transform:translate(1.4px,.5px) skewX(-.3deg)}}

.hero-fx.is-paused *{animation-play-state:paused!important}
/* 스프라이트가 모두 로드된 뒤에만 동물이 빠진 배경으로 교체 (실패 시 동물이 그려진 원본 유지) */
.hero.fx-animals{background-image:url("traditional-bg-habitat2.jpg")}

/* 작은 무리(멀리 있는 사슴·양·여우)의 호흡. 큰 동물은 hero-animals.js */
.fx-graze .fx-body{transform-origin:85% 100%;animation:fx-graze 6s ease-in-out infinite alternate}
@keyframes fx-graze{0%{transform:rotate(-1.2deg)}60%{transform:rotate(.6deg) translateY(.4px)}100%{transform:rotate(1.4deg)}}
.fx-breathe .fx-body{transform-origin:50% 100%;animation:fx-breathe 3.4s ease-in-out infinite alternate}
@keyframes fx-breathe{from{transform:scale(1,1)}to{transform:scale(1.01,1.025)}}
.hero-fx.is-static .fx-bird{display:none}

.hero-fx-toggle{position:absolute;left:12px;top:12px;z-index:3;min-height:40px;padding:6px 14px;border:1px solid rgba(229,201,122,.7);border-radius:999px;background:rgba(16,39,71,.82);color:#fff;font-weight:700;font-size:14px;line-height:1.2;font-family:inherit;cursor:pointer}
.hero-fx-toggle:hover,.hero-fx-toggle:focus-visible{background:#1e3a5f;color:#e5c97a}

/* 데스크톱: 하단 안내 띠 높이만큼 비워 그림(동물)이 띠에 가려지거나 잘리지 않게 함 */
@media(min-width:901px){
 html body .hero{box-sizing:border-box;padding-bottom:var(--ticker-h,80px);background-origin:content-box;background-clip:border-box;background-size:contain;background-position:center top;background-color:#f7f2e8}
}
@media(min-width:901px) and (min-aspect-ratio:16/10){
 html body .hero{background-size:cover;background-position:center 85%}
}
@media(max-width:900px){
 /* 모바일: 메뉴 → 풍경(원본 비율 전체) → 안내 띠가 빈틈 없이 이어지도록 높이를 이미지 비율로 계산 */
 body.home-view .hero{height:auto!important;min-height:0!important;padding:56.2799% 0 0!important;background-size:contain!important;background-position:center top!important;background-repeat:no-repeat;background-color:#f7f2e8}
 body.home-view .hero>.wrap{display:none}
 body.home-view .hero .notice-ticker{position:relative;inset:auto;margin:0}
 body.home-view .hero::after{display:none}
}
@media(max-width:720px){
 .hero-fx .fx-extra{display:none}
 .hero-fx-toggle{left:8px;top:8px;min-height:36px;padding:5px 11px;font-size:13px}
}
/* 모바일 전역 max-width:100% 규칙이 티커 문구를 줄여 겹치게 하는 문제 방지 */
.notice-ticker__track,.notice-ticker__track *{max-width:none}
