/* www.drone-spot.com — 告知ポップアップ(popup.js 専用) */
.dsp-pop-backdrop {
  position: fixed; inset: 0; z-index: 1900; /* lightbox(2000)未満・drawer(1201)より前面 */
  background: rgba(10, 12, 16, .45);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: dsp-pop-fade .2s ease;
}
@keyframes dsp-pop-fade { from { opacity: 0; } to { opacity: 1; } }

.dsp-pop {
  position: relative;
  width: min(420px, calc(100vw - 40px));
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, .28);
  overflow: hidden;
  animation: dsp-pop-in .24s cubic-bezier(.2, .8, .3, 1);
}
@keyframes dsp-pop-in {
  from { transform: translateY(14px) scale(.96); opacity: 0; }
  to { transform: none; opacity: 1; }
}

.dsp-pop-close {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  width: 32px; height: 32px;
  border: none; border-radius: 50%;
  background: rgba(15, 18, 24, .45); color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.dsp-pop-close:hover { background: rgba(15, 18, 24, .65); }

.dsp-pop-viewport { overflow: hidden; }
.dsp-pop-track {
  display: flex;
  transition: transform .3s cubic-bezier(.2, .8, .3, 1);
}
.dsp-pop-slide {
  flex: 0 0 100%;
  min-height: 300px;
  box-sizing: border-box;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 36px 28px 44px;
}

/* ① アンケート誘導 */
.dsp-pop-slide-survey {
  background: linear-gradient(160deg, #FFF4EA 0%, #FFFFFF 62%);
}
.dsp-pop-slide-badge {
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--brand, #FF7A1A); color: #fff;
  font-size: 12px; font-weight: 700;
  margin-bottom: 14px;
}
.dsp-pop-slide-title {
  font-size: 21px; font-weight: 800; color: #222;
  line-height: 1.35;
}
.dsp-pop-slide-text {
  margin-top: 10px;
  font-size: 13.5px; line-height: 1.75; color: #555;
}
.dsp-pop-cta {
  margin-top: 20px;
  display: flex; align-items: center; justify-content: center;
  box-sizing: border-box;
  width: 100%; max-width: 280px; height: 48px;
  border-radius: 999px;
  background: var(--brand, #FF7A1A); color: #fff;
  font-size: 14.5px; font-weight: 700;
  text-decoration: none;
}
.dsp-pop-cta:hover { background: var(--brand-press, #E8650D); }

/* ②③ サンプル placeholder */
.dsp-pop-slide-sample {
  background: repeating-linear-gradient(-45deg, #F3F4F6 0 14px, #ECEEF1 14px 28px);
}
.dsp-pop-slide-sample span {
  font-size: 24px; font-weight: 800; color: #9AA1AB;
  letter-spacing: .06em;
}

/* 前後送り */
.dsp-pop-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 34px; height: 34px;
  border: none; border-radius: 50%;
  background: rgba(255, 255, 255, .92); color: #222;
  box-shadow: 0 1px 6px rgba(0, 0, 0, .18);
  font-size: 20px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.dsp-pop-prev { left: 10px; }
.dsp-pop-next { right: 10px; }
.dsp-pop-nav:hover { background: #fff; }

/* ドット */
.dsp-pop-dots {
  position: absolute; left: 0; right: 0; bottom: 12px; z-index: 2;
  display: flex; justify-content: center; gap: 7px;
}
.dsp-pop-dot {
  width: 8px; height: 8px; padding: 0;
  border: none; border-radius: 50%;
  background: rgba(34, 34, 34, .22);
  cursor: pointer;
}
.dsp-pop-dot.is-active { background: var(--brand, #FF7A1A); }

/* 背後(Mapbox)へのタッチ貫通防止 */
.dsp-pop-backdrop { touch-action: none; }

/* ── アンケート小ボタン(ポップアップを閉じた後の常設入口) ── */
.dsp-survey-fab {
  position: fixed;
  right: 16px;
  bottom: 74px; /* 右下の底図切替ピル(標準/航空写真)の上 */
  z-index: 11;  /* 詳細シート(z12)より下 = シートが開いたら隠れてよい */
  display: flex; align-items: center; gap: 6px;
  height: 40px; padding: 0 16px;
  border-radius: 999px;
  background: var(--brand, #FF7A1A); color: #fff;
  font-size: 13px; font-weight: 700;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .2);
  animation: dsp-pop-fade .25s ease;
}
.dsp-survey-fab:hover { background: var(--brand-press, #E8650D); }

/* ── ジャンル入口の呼吸パルス(初回クリックで停止) ── */
@keyframes dsp-breathe {
  0%   { box-shadow: 0 0 0 0 rgba(255, 122, 26, .55); }
  70%  { box-shadow: 0 0 0 12px rgba(255, 122, 26, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 122, 26, 0); }
}
.dspot-cat-entry.dsp-nudge {
  animation: dsp-breathe 2s ease-out infinite;
  border-color: var(--brand, #FF7A1A);
}
@media (prefers-reduced-motion: reduce) {
  .dspot-cat-entry.dsp-nudge { animation: none; }
}

/* モバイルは底図切替(標準/航空写真)が bottom:74 に居るため、その上へ退避 */
@media (max-width: 640px) {
  .dsp-survey-fab { bottom: 128px; }
}

/* PC は右下が底図切替と渋滞するため、右端中央の縦書きタブに(スマホは従来のピル) */
@media (min-width: 641px) {
  .dsp-survey-fab {
    right: 0;
    bottom: auto;
    top: 55%;
    transform: translateY(-50%);
    writing-mode: vertical-rl;
    height: auto;
    padding: 16px 9px;
    border-radius: 12px 0 0 12px;
    letter-spacing: .14em;
    box-shadow: -2px 2px 10px rgba(0, 0, 0, .18);
  }
}

/* ② DROLIEN 公式LINE(2026-07-13 サンプル差替) */
.dsp-pop-slide-line { background: linear-gradient(160deg, #E9F9EF 0%, #FFFFFF 62%); }
.dsp-badge-line { background: #06C755; }
.dsp-cta-line { background: #06C755; }
.dsp-cta-line:hover { background: #05B34C; }

/* ③ ドロノート(DroNote)COMING SOON(2026-07-13 サンプル差替) */
.dsp-pop-slide-dronote { background: linear-gradient(160deg, #EAF2FF 0%, #FFFFFF 62%); }
.dsp-dn-mark {
  width: 60px; height: 60px;
  border-radius: 14px;
  margin-bottom: 12px;
  box-shadow: 0 4px 14px rgba(10, 108, 255, .22);
}
.dsp-dn-soon {
  margin-top: 18px;
  padding: 9px 24px;
  border: 2px solid #0A6CFF; border-radius: 999px;
  font-size: 13.5px; font-weight: 800; letter-spacing: .14em; color: #0A6CFF;
}
