/* 모바일 첫 입장을 한 장의 커버로 구성한다. PC의 기존 좌우 지면은 유지한다. */
.home-cover-note, .hero-mobile-kicker { display: none; }
.hero-visual > picture { display: block; width: 100%; height: 100%; }
.hero-visual > picture > img { display: block; }

@media (max-width: 580px) {
  .hero {
    display: block;
    isolation: isolate;
    height: clamp(490px, calc(100svh - 101px), 740px);
    min-height: 0;
    overflow: hidden;
    background: #ead4c8;
  }
  .hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg, #f8f1e7b8 0%, #f8f1e718 31%, transparent 47%, transparent 74%, #f8f1e7d9 100%);
  }
  .hero .hero-visual { position: absolute; inset: 0; height: 100%; min-height: 0; z-index: 0; }
  .hero .hero-image { object-fit: cover; object-position: 50% 50%; animation: homeCoverReveal 1.4s cubic-bezier(.2,.7,.3,1) both; }
  .hero .hero-copy { position: relative; z-index: 2; padding: 25px 23px 24px; height: 100%; align-items: stretch; }
  .hero-desktop-kicker { display: none; }
  .hero-mobile-kicker { display: inline; letter-spacing: .2px; font-size: 10px; }
  .hero-copy > .eyebrow { font-size: 8px; letter-spacing: 1.4px; gap: 8px; }
  .hero .tiny-star { font-size: 20px; }
  .hero h1 { font-size: clamp(33px, 9.1vw, 46px); line-height: 1.18; letter-spacing: -1.9px; margin-top: 12px; font-weight: 560; }
  .hero .highlight::after { display: none; }
  .hero .hero-note { display: none; }
  .hero .hero-ctas { margin-top: auto; display: grid; grid-template-columns: 1.2fr 1fr; gap: 8px; width: 100%; flex-wrap: nowrap; }
  .hero .hero-ctas .button { width: 100%; max-width: none; min-height: 48px; padding: 12px 14px; font-size: 12px; gap: 7px; border-radius: 4px; box-shadow: 0 3px 16px #4934280a; }
  .hero .hero-ctas .outline { background: #fffaf1dc; }
  .hero .hero-bottom { display: none; }
  .hero .round-seal { top: 40%; right: 5%; width: 67px; height: 67px; font-size: 6px; background: #efe2a8e8; border: 1px solid #ffffff70; box-shadow: 0 4px 18px #4934280b; }
  .hero .seal-center { font-size: 26px; }
  .hero .image-note, .hero .hero-image-caption { display: none; }
  .home-cover-note { display: block; position: absolute; left: 23px; bottom: 94px; z-index: 2; font: italic 20px/1.1 var(--serif); color: #7e4d42; transform: rotate(-5deg); pointer-events: none; }
  .hero .peek-welcome { right: 9px; bottom: 81px; --dog-size: 73px; }
  /* 첫 화면 버튼과 고정 바가 겹치지 않게, 커버를 지난 뒤부터 고정 바를 표시한다. */
  body.home-cover-in-view .mobile-dock { visibility: hidden; opacity: 0; transform: translateY(100%); pointer-events: none; }
  .mobile-dock { transition: transform .25s ease, opacity .25s ease; }
  .ticker { height: 43px; }
  .ticker-track span { font-size: 14px; }
}

@media (max-width: 360px) {
  .hero .hero-copy { padding: 22px 19px 20px; }
  .hero h1 { font-size: 32px; }
  .hero .hero-note { font-size: 11px; margin-top: 10px; }
  .hero .hero-ctas .button { padding: 12px 9px; font-size: 10px; gap: 5px; white-space: nowrap; }
  .hero .hero-ctas .button > span { font-size: 16px; }
  .home-cover-note { left: 19px; font-size: 18px; bottom: 88px; }
  .hero .round-seal { right: 4%; width: 60px; height: 60px; }
}

@media (min-width: 480px) and (max-width: 580px) {
  .hero h1 { font-size: 34px; line-height: 1.2; white-space: nowrap; }
  .hero h1 > br { display: none; }
}

@media (max-width: 580px) and (max-height: 680px) {
  .hero { height: max(450px, calc(100svh - 101px)); }
  .hero .hero-copy { padding-top: 19px; padding-bottom: 19px; }
  .hero h1 { font-size: 32px; margin-top: 8px; }
  .hero .hero-note { display: none; }
  .home-cover-note { bottom: 82px; font-size: 18px; }
}

/* 모바일 브라우저 주소창·하단 도구가 큰 경우에도 버튼을 첫 화면에 담는다. */
@media (max-width: 580px) and (max-height: 560px) {
  .hero { height: calc(100svh - 101px); }
  .hero .hero-copy { padding-top: 14px; padding-bottom: max(14px, env(safe-area-inset-bottom)); }
  .hero h1 { font-size: 27px; line-height: 1.2; letter-spacing: -1.5px; white-space: nowrap; }
  .hero h1 > br { display: none; }
  .hero .round-seal { top: 40%; width: 54px; height: 54px; font-size: 5px; }
  .hero .seal-center { font-size: 23px; }
  .home-cover-note { bottom: 73px; font-size: 16px; }
  .hero .peek-welcome { bottom: 72px; --dog-size: 58px; }
}
@media (max-width: 360px) and (max-height: 560px) { .hero h1 { font-size: 23px; }.hero-mobile-kicker { font-size: 9px; } }

@keyframes homeCoverReveal { from { opacity: .5; transform: scale(1.055); } to { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .hero .hero-image, .home-cover-note { animation: none !important; }.mobile-dock { transition: none !important; } }
