/* ドロスポッ! — Airbnb 級の実行品質での再実装
 * 原則:
 *  - 色はほぼ白黒(#222/#717171/#DDD)。ブランド橙は「購入」と選択状態のみ
 *  - 影は浮遊要素(ピン・シート・チップバー)だけ。面は余白と写真で組む
 *  - 数字は tabular。トランジションは 0.15-0.2s ease
 */
:root {
  --ink: #222222;
  --ink-2: #717171;
  --line: #EBEBEB;
  --line-strong: #DDDDDD;
  --surface: #FFFFFF;
  --brand: #FF7A1A;
  --brand-press: #E8650D;
  --danger: #C13515;
  --warn: #B06000;
  --okgn: #008A05;
  --float: 0 6px 16px rgba(0, 0, 0, .12);
  --pill-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 4px 12px rgba(0, 0, 0, .05);
}

/* =======================================================================
   モードトグル(ヘッダー内ピル)
   ======================================================================= */
.dfm-mode {
  display: flex;
  background: var(--surface);
  border-radius: 999px;
  padding: 4px;
  box-shadow: var(--pill-shadow);
  border: 1px solid rgba(0, 0, 0, .04);
}
.dfm-mode button {
  height: 32px;
  padding: 0 16px;
  border: none;
  border-radius: 999px;
  background: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  white-space: nowrap;
  transition: color .15s ease, background .15s ease;
}
.dfm-mode button:hover { color: var(--ink); }
.dfm-mode button.active {
  background: var(--ink);
  color: #fff;
}
body.mode-spot .dfm-mode button.active {
  background: var(--brand);
}

/* mode-spot 時: 制限マップ専用 UI を隠す */
body.mode-spot .dfm-sheet,
body.mode-spot .dfm-sheet-fab,
body.mode-spot .dfm-result,
body.mode-spot .dfm-layers-btn,
body.mode-spot .dfm-layers-body,
body.mode-spot .dfm-legend,
body.mode-spot .dfm-attribution,
body.mode-spot .dfm-mypl-btn,
body.mode-spot .dfm-panel,
body.mode-spot .dfm-panel-backdrop { display: none !important; }
body.mode-spot .dfm-brand-sub { opacity: .5; }

/* =======================================================================
   スポットピン — 白い価格ピル(Airbnb 方式)
   ======================================================================= */
.dspot-marker { cursor: pointer; }
.dspot-marker-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  transform-origin: center bottom;
  transition: transform .15s ease;
}
.dspot-marker:hover { z-index: 3; }
.dspot-marker:hover .dspot-marker-inner { transform: scale(1.06); }

.dspot-marker-price {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  font-weight: 700;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  background: var(--surface);
  padding: 6px 12px;
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(0,0,0,.18), 0 2px 8px rgba(0,0,0,.10);
  line-height: 1.1;
  transition: background .15s ease, color .15s ease;
}
.dspot-marker-cat {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dspot-marker-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 2.5px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.25);
}
.dspot-marker.is-active { z-index: 5; }
.dspot-marker.is-active .dspot-marker-inner { transform: scale(1.06); }
.dspot-marker.is-active .dspot-marker-price {
  background: var(--ink);
  color: #fff;
}
.dspot-marker.is-active .dspot-marker-price .dspot-marker-cat { background: #fff !important; }

/* No.9: 実掲載素材が無いスポットの Sample ピン(破線グレー+価格非表示) */
.dspot-marker-price.dspot-marker-sample {
  background: #FAFBFC;
  border: 1.5px dashed #B9BEC6;
  color: #8A93A0;
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
}
.dspot-marker-price.dspot-marker-sample .dspot-marker-cat { background: #C3C9D2; }
.dspot-marker.is-active .dspot-marker-price.dspot-marker-sample {
  background: #FAFBFC;
  color: #8A93A0;
}
.dspot-marker.is-active .dspot-marker-price.dspot-marker-sample .dspot-marker-cat { background: #C3C9D2 !important; }

/* =======================================================================
   カテゴリフィルタバー(Airbnb フィルタチップ)
   ======================================================================= */
.dspot-catbar {
  position: fixed;
  top: calc(max(env(safe-area-inset-top), 10px) + 52px);
  left: 12px;
  z-index: 9;
  display: none;
  gap: 8px;
  max-width: calc(100vw - 110px); /* 右上の全国ボタンと重ねない(R3) */
  overflow-x: auto;
  padding: 4px 2px 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  /* R3-9: chip列廃止に伴い右端フェードmaskは撤去(入口ピルが半透明になる害のみのため) */
}
.dspot-catbar::-webkit-scrollbar { display: none; }
body.mode-spot .dspot-catbar { display: flex; }
/* スマホ: 上部バーが2段(ブランド行+モード行)になるため、chipバーは3段目へ全幅配置(R3 2026-07-13) */
@media (max-width: 480px) {
  .dspot-catbar {
    top: calc(max(env(safe-area-inset-top), 10px) + 50px);
    left: 10px; right: 10px;
    max-width: none;
  }
}
.dspot-cat-chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 15px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  box-shadow: var(--pill-shadow);
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.dspot-cat-chip:hover { border-color: var(--ink); }
.dspot-cat-chip.active {
  border: 1.5px solid #222;
  font-weight: 700;
  background: #222;
  color: #fff;
}
.dspot-cat-chip i,
.dspot-cat-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

/* =======================================================================
   詳細シート
   ======================================================================= */
/* hidden 属性は author の display:flex に負けるため明示的に殺す */
.dspot-sheet[hidden] { display: none !important; }
.dspot-sheet {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  z-index: 12;
  width: min(560px, 100vw);
  /* No.6: 高さは三段スナップ(peek/half/full)が JS(inline style.height)で制御する。
     固定 max-height:72vh は撤廃(map.js の判定シートと同じ方式)。 */
  max-height: 92vh;
  background: var(--surface);
  border-radius: 20px 20px 0 0;
  box-shadow: var(--float);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: dspot-up .22s cubic-bezier(.2,.8,.3,1);
}
@media (min-width: 720px) {
  .dspot-sheet {
    bottom: 16px;
    border-radius: 20px;
    /* R4: PC はもう一回り幅広に 560→680→800(2026-07-13 ユーザー指示。モバイルは 100vw のまま) */
    width: min(800px, calc(100vw - 32px));
  }
}
@keyframes dspot-up {
  from { transform: translateX(-50%) translateY(24px); opacity: 0; }
  to { transform: translateX(-50%) translateY(0); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .dspot-sheet { animation: none; }
  .dspot-marker-inner { transition: none; }
}
/* No.6: モバイルのみスナップ高の変更にアニメーションを付ける(PC はドラッグ非対応・高さ自動のまま) */
@media (max-width: 640px) {
  .dspot-sheet { transition: height .28s cubic-bezier(.32,.72,0,1), transform .22s ease; }
  .dspot-sheet.dragging { transition: none; }
}
.dspot-sheet-drag {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  padding: 10px 0 2px;
  cursor: grab;
}
.dspot-sheet-drag::after {
  content: "";
  width: 40px; height: 5px;
  border-radius: 3px;
  background: #D5D8DD;
}
@media (max-width: 640px) {
  .dspot-sheet-drag { touch-action: none; }
}
.dspot-sheet-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 32px; height: 32px;
  border: none;
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 1px var(--line);
  z-index: 2;
  transition: box-shadow .15s ease;
}
.dspot-sheet-close:hover { box-shadow: 0 0 0 1px var(--ink); }
.dspot-sheet-body {
  overflow-y: auto;
  padding: 6px 24px calc(max(env(safe-area-inset-bottom), 16px) + 8px);
}

/* シート内: ヘッダ部 */
.dspot-chips-top {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 10px;
  padding-right: 40px;
}
.dspot-cat-chip-lg,
.dspot-tag-lg {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-2);
  background: #F7F7F7;
}
.dspot-name {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.01em;
  color: var(--ink);
}
.dspot-coords {
  margin-top: 4px;
  font-size: 13px;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.dspot-rating {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 10px;
  font-size: 13.5px;
}
.dspot-rating-stars { display: flex; align-items: center; gap: 4px; }
.dspot-stars { color: var(--ink); font-size: 13px; }
.dspot-score { font-weight: 700; font-variant-numeric: tabular-nums; }
.dspot-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.dspot-rating .dspot-tags { margin-top: 0; }
.dspot-tag {
  font-size: 12px;
  color: var(--ink-2);
  background: #F7F7F7;
  border-radius: 999px;
  padding: 4px 10px;
}
.dspot-desc {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink);
}

/* セクション(罫線区切り) */
.dspot-section {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.dspot-section-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}
.dspot-section-count {
  font-weight: 500;
  color: var(--ink-2);
  font-size: 13px;
  margin-left: 6px;
}

/* 素材カード(縦型・横スクロール) */
.dspot-assets {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}
.dspot-assets::-webkit-scrollbar { display: none; }
.dspot-asset-card {
  flex: 0 0 180px;
  display: flex;
  flex-direction: column;
}
.dspot-asset-thumb-wrap { position: relative; }
.dspot-asset-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  background: #F0F0F0;
}
.dspot-asset-thumb-empty {
  position: relative;
  background:
    repeating-linear-gradient(-45deg, transparent 0 8px, #E9E9E9 8px 9px),
    #F4F4F4;
}
/* No.9: 未掲載素材のサムネプレースホルダー(斜線+左上 SAMPLE バッジ) */
.dspot-asset-sample-badge {
  position: absolute;
  top: 6px; left: 6px;
  background: rgba(90, 98, 110, .92);
  color: #fff;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .8px;
  border-radius: 4px;
  padding: 2px 7px;
}
.dspot-asset-price-pending {
  color: var(--ink-2);
  font-weight: 700;
}
.dspot-asset-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.dspot-asset-play::after {
  content: "";
  width: 0; height: 0;
  border-style: solid;
  border-width: 8px 0 8px 14px;
  border-color: transparent transparent transparent #fff;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,.4));
}
.dspot-yt-iframe {
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 0;
  border-radius: 12px;
}
.dspot-asset-info { padding: 8px 2px 0; flex: 1; }
.dspot-asset-title {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}
.dspot-asset-spec {
  margin-top: 2px;
  font-size: 12px;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.dspot-asset-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 8px;
}
.dspot-asset-price {
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.dspot-asset-buy {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 0;
}
.dspot-asset-buy:hover { color: var(--brand-press); }

/* No.3② その他詳細(撮影データ)の折りたたみ。デフォルト閉。 */
.dspot-fold-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  list-style: none;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-2);
  padding: 2px 0;
}
.dspot-fold-summary::-webkit-details-marker { display: none; }
.dspot-fold-chev {
  color: #999;
  font-size: 10px;
  transition: transform .15s ease;
}
.dspot-fold[open] .dspot-fold-chev { transform: rotate(180deg); }
.dspot-fold .dspot-shoot { margin-top: 12px; }

/* 撮影データ / 法的整理 */
.dspot-shoot { display: flex; flex-direction: column; }
.dspot-shoot-row {
  display: flex;
  gap: 16px;
  padding: 8px 0;
  font-size: 13.5px;
  border-bottom: 1px solid var(--line);
}
.dspot-shoot-row:last-child { border-bottom: none; }
.dspot-shoot-key { flex: 0 0 6em; color: var(--ink-2); }
.dspot-shoot-val { color: var(--ink); font-weight: 500; }

.dspot-legal-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.dspot-legal-chip,
[class*="dspot-legal-"]:not(.dspot-legal-chips):not(.dspot-legal-permits) {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: #F7F7F7;
  color: var(--ink);
}
.dspot-legal-danger { color: var(--danger); background: #FBEFEC; }
.dspot-legal-warn { color: var(--warn); background: #FAF3E7; }
.dspot-legal-info { color: var(--ink); background: #F7F7F7; }
.dspot-legal-permits {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink-2);
}

/* No.7 CTA統一: 主ボタン(購入ページへ)= orange pill 全幅 H48。
   サブ4つ(スポット詳細/飛行計画/クチコミ/撮影依頼)= 白地+1.5px枠 pill H40 の2×2グリッド。 */
.dspot-cta-primary {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  height: 48px;
  line-height: 48px;
  border: none;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  margin-top: 20px;
  transition: background .15s ease, transform .1s ease;
}
.dspot-cta-primary:hover { background: var(--brand-press); }
.dspot-cta-primary:active { transform: scale(.985); }
.dspot-cta-primary.is-disabled {
  background: #F0F0F0;
  color: var(--ink-2);
  pointer-events: none;
}
.dspot-cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 8px;
}
.dspot-cta-sub {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  height: 40px;
  padding: 0 4px;
  border: 1.5px solid #D9DDE2;
  border-radius: 999px;
  background: var(--surface);
  color: #222;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.dspot-cta-sub:hover { background: #F7F7F7; border-color: #C7CCD3; }
/* mymap.js が「飛行計画を作成」ボタンを注入するまでの空スロット(サイズだけ確保) */
.dspot-cta-slot:empty { min-height: 40px; }
.dspot-cta-slot > .dmm-plan-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  height: 40px;
  margin: 0;
  padding: 0 4px;
}
.dspot-license {
  margin-top: 14px;
  text-align: center;
  font-size: 12px;
}
.dspot-license a {
  color: var(--ink-2);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 480px) {
  .dspot-sheet-body { padding-left: 18px; padding-right: 18px; }
  .dspot-name { font-size: 20px; }
  .dspot-asset-card { flex-basis: 160px; }
  .dspot-cta-sub { font-size: 11.5px; }
}

/* =======================================================================
   Phase B: 離着陸スポット(pricing / facilities / クチコミ区)
   ======================================================================= */
.dspot-marker-price.is-free { color: #008A05; }

.dspot-pricing {
  display: flex; align-items: center; gap: 10px;
  margin: 10px 0 2px;
}
.dspot-pricing-badge {
  font-size: 11px; font-weight: 800; letter-spacing: .03em;
  padding: 4px 10px; border-radius: 999px;
}
.dspot-pricing-badge.is-free { background: #E7F6E7; color: #008A05; }
.dspot-pricing-badge.is-paid { background: #FFF1E2; color: #E8650D; }
.dspot-pricing-fee {
  font-size: 15px; font-weight: 800; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.dspot-facilities { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.dspot-facilities span {
  font-size: 10.5px; font-weight: 700; color: var(--ink-2);
  background: #F7F7F7; border-radius: 999px; padding: 3px 9px;
}
.dspot-pricing-actions { margin-top: 10px; }
.dspot-pricing-reserve {
  display: inline-block;
  padding: 9px 18px; border-radius: 999px;
  background: var(--brand, #FF7A1A); color: #fff;
  font-size: 12.5px; font-weight: 700; text-decoration: none;
}
.dspot-pricing-contact { margin-top: 6px; font-size: 11.5px; color: var(--ink-2); }

/* クチコミ区 */
.dspot-reviews { margin-top: 18px; padding-top: 14px; border-top: 1px solid #EBEBEB; }
.dspot-reviews-head {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 800; color: var(--ink);
}
.dspot-reviews-avg { font-size: 13px; font-weight: 700; color: #E8650D; }
.dspot-reviews-avg small { font-size: 11px; color: var(--ink-2); font-weight: 500; }
.dspot-reviews-loading { font-size: 11px; color: var(--ink-3); font-weight: 500; }
.dspot-reviews-empty { margin: 10px 0 2px; font-size: 12px; color: var(--ink-2); line-height: 1.6; }
.dspot-review-item { padding: 11px 0 9px; border-bottom: 1px solid #F2F2F2; }
.dspot-review-item:last-of-type { border-bottom: none; }
.dspot-review-head { display: flex; align-items: center; gap: 8px; }
.dspot-review-stars { color: #F5A623; font-size: 12px; letter-spacing: .04em; }
.dspot-review-meta { flex: 1; font-size: 10.5px; color: var(--ink-3); font-weight: 500; }
.dspot-review-report {
  border: none; background: none; padding: 2px 4px;
  font-size: 12px; color: var(--ink-3); cursor: pointer;
}
.dspot-review-report:hover { color: #C13515; }
.dspot-review-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.dspot-review-tags span {
  font-size: 10px; font-weight: 700; color: var(--ink-2);
  background: #F7F7F7; border-radius: 999px; padding: 2px 8px;
}
.dspot-review-body { margin-top: 6px; font-size: 12.5px; line-height: 1.6; color: var(--ink); white-space: pre-wrap; word-break: break-word; }
.dspot-review-post {
  display: block; width: 100%; height: 42px;
  margin-top: 12px;
  border: 1px solid var(--ink); border-radius: 999px;
  background: var(--surface); color: var(--ink);
  font-family: inherit; font-size: 13px; font-weight: 700;
  cursor: pointer;
  transition: background .12s;
}
.dspot-review-post:hover { background: #F7F7F7; }

/* ---- R3-3: ジャンル絞り込みサイドドロワー(全端、2026-07-13。PC もドロワー化=ユーザー指示) ---- */
.dspot-cat-entry {
  display: flex; align-items: center; gap: 7px;
  height: 38px; border: 1.5px solid var(--ink, #222); border-radius: 999px; background: #fff;
  padding: 0 16px; font-size: 13px; font-weight: 800; color: var(--ink, #222);
  font-family: inherit; box-shadow: 0 3px 10px rgba(0,0,0,.16); cursor: pointer;
  white-space: nowrap;
}
.dspot-cat-entry .dspot-cat-chev { color: #999; font-size: 10px; }
.dspot-catbar .dspot-cat-chip { display: none; } /* 横並びchip列は廃止(全端ドロワー) */
.dspot-drawer-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 1200;
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.dspot-drawer {
  position: fixed; left: 0; top: 0; bottom: 0; width: min(86vw, 380px);
  background: #fff; z-index: 1201; border-radius: 0 16px 16px 0;
  box-shadow: 6px 0 24px rgba(0,0,0,.18);
  transform: translateX(-105%); transition: transform .28s ease;
  display: flex; flex-direction: column;
  padding: calc(max(env(safe-area-inset-top), 10px) + 6px) 0 max(env(safe-area-inset-bottom), 12px);
}
body.dspot-drawer-open .dspot-drawer-backdrop { opacity: 1; pointer-events: auto; }
body.dspot-drawer-open .dspot-drawer { transform: translateX(0); }
.dspot-drawer-head {
  font-size: 13.5px; font-weight: 800; color: var(--ink, #222);
  padding: 8px 16px 10px; display: flex; align-items: center; justify-content: space-between;
}
.dspot-drawer-x {
  width: 28px; height: 28px; border-radius: 50%; border: none;
  background: #F2F3F5; color: #555; font-size: 12px; cursor: pointer;
}
/* 自前ホスティング動画(サムネタップで <video> 差替) */
.dspot-video { width: 100%; height: 100%; object-fit: cover; background: #000; display: block; }

/* ---- エリア・料金タブ(ドロワー上部、2026-07-13) ---- */
.dspot-drawer-filters {
  flex-shrink: 0;
  padding: 2px 0 4px;
  border-bottom: 1px solid #F0F1F3;
  margin-bottom: 6px;
}
.dspot-drawer-filter-row {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 0 0 8px 16px;
}
.dspot-drawer-filter-label {
  flex-shrink: 0; width: 32px; white-space: nowrap;
  font-size: 10.5px; font-weight: 800; color: #99A2AC;
  line-height: 30px; /* 折返し時も1段目のタブと天地センター */
}
.dspot-drawer-tabs {
  /* 折返しで全タブ表示(横スクロールは PC に操作手段が無い) */
  display: flex; flex-wrap: wrap; gap: 6px; flex: 1; min-width: 0;
  padding-right: 16px;
}
.dspot-ftab {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 5px;
  height: 30px; padding: 0 11px; border-radius: 999px;
  border: 1.5px solid #E2E5E9; background: #fff; color: #556;
  font-size: 12px; font-weight: 700; font-family: inherit; cursor: pointer;
  white-space: nowrap;
}
.dspot-ftab-n { font-size: 10.5px; font-weight: 600; color: #99A2AC; }
.dspot-ftab.on { background: var(--ink, #222); border-color: var(--ink, #222); color: #fff; }
.dspot-ftab.on .dspot-ftab-n { color: rgba(255,255,255,.72); }
.dspot-ftab:disabled { opacity: .38; cursor: default; }
/* 0件エリアをまとめる「その他 ▾ / たたむ ▴」トグル(破線で実タブと区別) */
.dspot-ftab-more { border-style: dashed; color: #8A94A0; font-weight: 700; }

.dspot-drawer-list { overflow-y: auto; -webkit-overflow-scrolling: touch; }
.dspot-drawer-item {
  display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 12px 16px; border: none; background: none;
  font-size: 13.5px; font-weight: 700; color: #333; cursor: pointer;
  text-align: left; font-family: inherit;
}
.dspot-drawer-item:disabled { opacity: .4; cursor: default; }
.dspot-drawer-item.on { background: #FFF1E6; color: #B25510; }
.dspot-drawer-n {
  margin-left: auto; font-size: 11px; font-weight: 600;
  color: var(--sub, #667788); background: #F2F3F5; border-radius: 999px; padding: 2px 9px;
}
.dspot-drawer-item.on .dspot-drawer-n { background: #FFE1C7; color: #B25510; }


/* R3-3b: ドロワー内スポット一覧(タップで該当地点へフライ) */
.dspot-drawer-spot {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 8px 16px 8px 35px; border: none; background: none;
  font-size: 12.5px; font-weight: 600; color: #555; cursor: pointer;
  text-align: left; font-family: inherit;
}
.dspot-drawer-spot::before {
  content: ""; width: 4px; height: 4px; border-radius: 50%;
  background: #C6CBD2; flex-shrink: 0;
}
.dspot-drawer-spot:active { background: #F7F8F9; }

/* R3-7: PCではシートのドラッグ把手を非表示(ドラッグ手勢は>640pxで無効のため用途なし) */
@media (min-width: 641px) {
  .dspot-sheet-drag { display: none; }
}

/* R3-13: PC 素材リスト前後送り */
.dspot-assets-wrap { position: relative; }
.dspot-assets-nav {
  display: none;
  position: absolute; top: 56px; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(0,0,0,.12); background: #fff; color: #222;
  font-size: 20px; line-height: 1; padding: 0;
  align-items: center; justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,.16);
  cursor: pointer; z-index: 2;
}
.dspot-assets-nav:hover { background: #F6F6F8; }
.dspot-assets-nav:disabled { opacity: .35; cursor: default; }
.dspot-assets-nav:disabled:hover { background: #fff; }
.dspot-assets-prev { left: -12px; }
.dspot-assets-next { right: -12px; }
@media (min-width: 641px) {
  .dspot-assets-wrap.dspot-assets-scrollable .dspot-assets-nav { display: flex; }
}

/* ── 素材ライトボックス(R4: サムネクリックで拡大確認) ── */
.dspot-lightbox {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(10, 12, 16, .88);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 24px; cursor: zoom-out;
}
.dspot-lightbox[hidden] { display: none; }
/* img/video の入れ物。contents で従来の flex レイアウトに透過させる */
.dspot-lightbox-media { display: contents; }
.dspot-lightbox-img {
  max-width: min(1280px, 100%);
  max-height: calc(100% - 48px);
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, .5);
}
/* 動画の拡大再生(サムネタップで開く。コントロール操作では閉じない) */
.dspot-lightbox-video {
  width: min(1080px, 100%);
  max-height: calc(100% - 48px);
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #000;
  border-radius: 8px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, .5);
  cursor: default;
}
.dspot-lightbox-caption {
  margin-top: 12px; color: #fff;
  font-size: 13px; font-weight: 600;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .6);
}
.dspot-lightbox-close {
  position: absolute; top: 14px; right: 14px;
  width: 40px; height: 40px;
  border: none; border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  color: #fff; font-size: 22px; line-height: 1;
  cursor: pointer;
}
.dspot-lightbox-close:hover { background: rgba(255, 255, 255, .26); }
/* サムネ右下の拡大ヒント(タップ導線の可視化) */
.dspot-asset-zoom {
  position: absolute; right: 6px; bottom: 6px;
  width: 22px; height: 22px; border-radius: 6px;
  background: rgba(15, 18, 24, .55); color: #fff;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}

/* ── R4: CTA 主要3アクション縦積み ──
   購入ページへ(橙)/スポットを利用する(mymap.js 注入)/ここで撮影を依頼する を
   同サイズ(全幅 H48 pill)で3段揃え。詳細・クチコミは従来の2-upサブに残す。 */
.dspot-cta-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}
.dspot-cta-stack .dspot-cta-slot:empty { display: none; }
.dspot-cta-main,
.dspot-cta-stack .dspot-cta-slot > a {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  height: 48px;
  border: 1.5px solid #D9DDE2;
  border-radius: 999px;
  background: var(--surface);
  color: #222;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.dspot-cta-main:hover,
.dspot-cta-stack .dspot-cta-slot > a:hover { background: #F6F7F9; }

/* シート内カテゴリチップの色点(サイズ未定義で不可視=文字が左寄りに見えていた修正) */
.dspot-cat-chip-lg i {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}

/* β版の常設補足(2026-07-14 上司指示: 掲載数への期待値調整) */
.dspot-beta-note {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px 0 6px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  box-shadow: var(--pill-shadow);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
  cursor: default;
}
.dspot-beta-note b {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
}
/* スマホは短文版(横幅に収める) */
.dspot-beta-note .dspot-beta-short { display: none; }
@media (max-width: 480px) {
  .dspot-beta-note { font-size: 11.5px; padding-right: 12px; }
  .dspot-beta-note .dspot-beta-long { display: none; }
  .dspot-beta-note .dspot-beta-short { display: inline; }
}
/* β補足の閉じるボタン */
.dspot-beta-x {
  width: 20px; height: 20px;
  border: none; border-radius: 50%;
  background: #F2F3F5; color: #888;
  font-size: 10px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; margin-left: 2px; padding: 0;
  flex-shrink: 0;
  font-family: inherit;
}
.dspot-beta-x:hover { background: #E4E6EA; color: #555; }
/* スマホ: ✕追加でピルが横幅を超えるため、β補足は2行目へ折り返す(裁切された半円の修正) */
@media (max-width: 480px) {
  .dspot-catbar { flex-wrap: wrap; overflow-x: visible; }
}

/* R7: 素材タグ */
.dspot-asset-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 5px; }
.dspot-asset-tag {
  background: #F2F3F5; color: #667788;
  font-size: 10px; font-weight: 600; line-height: 1.4;
  border-radius: 999px; padding: 2px 7px;
}
