/* 하단 이미지 배너 */
.jr-holiday-banner {
  --jr-holiday-banner-width: min(72vw, 1024px);
  --jr-holiday-banner-aspect: 1024 / 117;
  --jr-holiday-banner-bottom: max(0px, env(safe-area-inset-bottom, 0px));

  position: fixed;
  left: 50%;
  bottom: var(--jr-holiday-banner-bottom);
  z-index: 98;
  width: var(--jr-holiday-banner-width);
  max-width: var(--jr-holiday-banner-width);
  height: auto;
  aspect-ratio: var(--jr-holiday-banner-aspect);
  margin: 0;
  padding: 0;
  transform: translateX(-50%);
  opacity: 1;
  visibility: visible;
  pointer-events: none;
  transition:
    opacity 0.42s ease,
    transform 0.42s cubic-bezier(0.33, 1, 0.68, 1),
    visibility 0.42s ease;
}

@media (min-width: 900px) {
  .jr-holiday-banner {
    --jr-holiday-banner-width: min(70vw, 1024px);
    --jr-holiday-banner-bottom: 0px;
  }
}

@media (max-width: 899px) {
  .jr-holiday-banner {
    --jr-holiday-banner-width: calc(100vw - 0.5rem);
    --jr-holiday-banner-bottom: calc(
      var(--jr-holiday-tabbar-h, 77px) + env(safe-area-inset-bottom, 0px)
    );
  }

  .jr-holiday-banner__hit {
    border-radius: 8px 8px 0 0;
    box-shadow: 0 -2px 12px rgba(15, 23, 42, 0.12);
  }
}

body.mobilelayout .jr-holiday-banner {
  --jr-holiday-banner-bottom: calc(
    var(--jr-holiday-tabbar-h, 77px) + env(safe-area-inset-bottom, 0px)
  );
}

.jr-holiday-banner.is-dismissing,
.jr-holiday-banner.is-hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(1.1rem) scale(0.97);
  pointer-events: none;
}

.jr-holiday-banner__hit {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.jr-holiday-banner__hit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.28);
}

.jr-holiday-banner__hit:focus-visible {
  outline: 2px solid #38bdf8;
  outline-offset: 3px;
}

.jr-holiday-banner__hit img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* PC — 헤더 로고 옆 배너 문구 + 그라데이션 */
@media screen and (min-width: 900px) {
  .header .logo.jr-site-banner-mode {
    gap: 0;
    flex-wrap: nowrap;
    max-width: calc(100vw - 6.75rem);
    overflow: hidden;
  }

  .header .logo.jr-site-banner-mode .logo-tagline.jr-site-banner-tagline-hidden {
    display: none !important;
  }

  .header .logo.jr-site-banner-mode .logo-title {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.07rem;
    line-height: 1.15;
    color: inherit;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .header .logo.jr-site-banner-mode .jr-site-banner-msg {
    margin-left: 2ch;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.07rem;
    line-height: 1.15;
    white-space: nowrap;
    flex-shrink: 0;
    color: var(--jr-header-text, #f8fafc);
    background-image: linear-gradient(
      90deg,
      var(--jr-header-text, #f8fafc) 0%,
      var(--jr-header-text, #f8fafc) 30%,
      var(--jr-hero-kicker, #7dd3fc) 38%,
      var(--jr-header-active, #38bdf8) 44%,
      #e0f7ff 48%,
      var(--jr-brand-primary-light, #4d94e8) 50%,
      #e0f7ff 52%,
      var(--jr-header-active, #38bdf8) 56%,
      var(--jr-hero-kicker, #7dd3fc) 62%,
      var(--jr-header-text, #f8fafc) 70%,
      var(--jr-header-text, #f8fafc) 100%
    );
    background-size: 280% 100%;
    background-position: 0% 50%;
    background-repeat: no-repeat;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation:
      jr-site-banner-fadein 0.75s ease-out both,
      jr-site-banner-color-sweep 2.6s linear 0.75s infinite;
  }
}

@keyframes jr-site-banner-fadein {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes jr-site-banner-color-sweep {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

/* 모바일 — 헤더 하단 상담안내 띠 (고정 헤더 64px 아래) */
@media screen and (max-width: 899px) {
.jr-site-text-notice {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25em;
  height: 28px;
  min-height: 28px;
  max-height: 28px;
  padding: 0 0.85rem;
  box-sizing: border-box;
  overflow: hidden;
  background: linear-gradient(90deg, #1d4ed8 0%, #2563eb 38%, #38bdf8 100%);
  color: #fff;
  font-size: clamp(1.2375rem, 4.68vw + 0.324rem, 1.4625rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  text-align: center;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.14);
}

.jr-site-text-notice__label {
  flex-shrink: 0;
  font-weight: 700;
}

.jr-site-text-notice__text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.jr-site-text-notice-active {
  --jr-site-text-notice-h: 28px;
}

body.jr-site-text-notice-active .visual,
body.jr-site-text-notice-active .dae-v2-hero,
body.jr-site-text-notice-active.subpage .page-hero,
body.jr-site-text-notice-active #jrMember.visual {
  margin-top: calc(64px + var(--jr-site-text-notice-h, 28px));
}
}

@media (prefers-reduced-motion: reduce) {
  .jr-holiday-banner,
  .jr-holiday-banner__hit {
    transition: none;
  }

  .header .logo.jr-site-banner-mode .jr-site-banner-msg {
    animation: none;
    -webkit-text-fill-color: #ffffff;
    color: #ffffff;
    background: none;
  }
}
