/* 나이시토루 스크롤 CTA - 사용자 제공 레이아웃 기반 */
@keyframes naishi-shimmer {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(241, 90, 36, 0.38); }
  50% { transform: scale(1.03); box-shadow: 0 0 20px 8px rgba(241, 90, 36, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(241, 90, 36, 0); }
}

#scroll-cta-naishi,
#scroll-cta-naishi * { box-sizing: border-box; }

#scroll-cta-naishi {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  transform: translateY(100%);
  transition: transform .7s ease-in-out;
  font-family: "Noto Sans KR", "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#scroll-cta-naishi.is-visible { transform: translateY(0); }
#scroll-cta-naishi.is-hidden { transform: translateY(100%); }

.naishi-cta-shell {
  position: relative;
  background: #fff;
  border-top: 1px solid #FFF3E8;
  box-shadow: 0 -15px 40px -10px rgba(241,90,36,.16);
}

.naishi-cta-toggle-wrap {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
}

.naishi-cta-toggle {
  width: 64px;
  height: 24px;
  border: 1px solid #F5DED2;
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
  background: #fff;
  box-shadow: -2px -4px 10px rgba(0,0,0,.05);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: height .2s ease;
}
.naishi-cta-toggle:hover { height: 32px; }
.naishi-cta-toggle svg { width: 14px; height: 14px; color: #F15A24; transition: transform .5s ease, color .2s ease; }
.naishi-cta-toggle:hover svg { color: #A90F14; }

.naishi-cta-close {
  position: absolute;
  top: 12px;
  right: 16px;
  z-index: 2;
  border: 0;
  background: transparent;
  color: #D9BBAE;
  cursor: pointer;
  padding: 2px;
  transition: color .2s ease;
}
.naishi-cta-close:hover { color: #6A4A40; }
.naishi-cta-close svg { width: 20px; height: 20px; display: block; }

.naishi-cta-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 24px;
  overflow: hidden;
  max-height: 400px;
  transition: max-height .5s ease, padding .5s ease;
}

.naishi-cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
}

.naishi-cta-image-wrap {
  width: 112px;
  flex: 0 0 112px;
}
.naishi-cta-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 18px 32px rgba(15,23,42,.14);
  transition: transform .25s ease;
}
.naishi-cta-image:hover { transform: scale(1.05); }

.naishi-cta-copy { text-align: left; min-width: 0; }
.naishi-cta-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; }
.naishi-cta-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: #F15A24;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.4;
  box-shadow: 0 2px 5px rgba(241,90,36,.18);
}
.naishi-cta-kicker { font-size: 12px; color: #D71920; font-weight: 700; }
.naishi-cta-title {
  margin: 0;
  color: #211512;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -.04em;
  white-space: nowrap;
}
.naishi-cta-title strong { color: #F15A24; font-weight: 900; }
.naishi-cta-desc {
  margin: 5px 0 0;
  color: #7A5B50;
  font-size: 15px;
  font-weight: 500;
  font-style: italic;
}

.naishi-cta-buy-wrap { flex: 0 0 auto; }
.naishi-cta-buy {
  animation: naishi-shimmer 2s infinite;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 202px;
  padding: 14px 40px;
  border-radius: 12px;
  background: #F15A24;
  color: #fff !important;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.25;
  text-decoration: none !important;
  box-shadow: 0 10px 20px rgba(241,90,36,.22);
  transition: background .2s ease, transform .12s ease;
}
.naishi-cta-buy:hover { background: #D71920; }
.naishi-cta-buy:active { transform: scale(.95); }

@media (max-width: 900px) {
  .naishi-cta-content { padding: 18px 18px 20px; }
  .naishi-cta-row { gap: 24px; }
  .naishi-cta-image-wrap { width: 88px; flex-basis: 88px; }
  .naishi-cta-title { font-size: 20px; white-space: normal; }
  .naishi-cta-desc { font-size: 14px; }
  .naishi-cta-buy { min-width: 170px; padding: 13px 24px; font-size: 16px; }
}

@media (max-width: 700px) {
  .naishi-cta-content { padding: 14px 16px 16px; }
  .naishi-cta-row { flex-direction: column; gap: 12px; }
  .naishi-cta-image-wrap { width: 80px; flex-basis: auto; }
  .naishi-cta-copy { text-align: center; }
  .naishi-cta-meta { justify-content: center; }
  .naishi-cta-title { font-size: 19px; }
  .naishi-cta-desc { font-size: 13px; }
  .naishi-cta-buy-wrap { width: 100%; margin-top: 2px; }
  .naishi-cta-buy { width: 100%; max-width: 330px; margin: 0 auto; font-size: 16px; }
  .naishi-cta-close { top: 8px; right: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .naishi-cta-buy { animation: none; }
  #scroll-cta-naishi, .naishi-cta-content, .naishi-cta-toggle svg { transition: none; }
}
