/* ============================================================================
   GEODOCK スマホ・タブレットUI刷新（3ジャンル展開＋フローティング＋ボトムシート）
   ※全スタイルを @media screen に隔離し、@media print・かんたん1枚シートを完全保護
   ============================================================================ */

@media print {
  #mobLayerDrawer,
  #mobMapStatusBadge,
  #mobMapFloatingDock,
  #mobMapStyleModal {
    display: none !important;
  }
}

@media screen {
  :root {
    --z-map-hud: 620;
    --z-layer-panel: 720;
    --z-watermark: 760;
    --z-modal: 2420;
  }

  .mob-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  /* 既定（PC・非モバイル）ではスマホ専用の新フローティング要素を隠す */
  #mobLayerDrawer,
  #mobMapStatusBadge,
  #mobMapFloatingDock {
    display: none;
  }

  /* PC/共通：3ジャンル（hazard / urban / market）のパネル表示制御 */
  body:not(.simple-sheet-mode) #layerTabs[data-active-cat="hazard"] [data-cat-panel="urban"],
  body:not(.simple-sheet-mode) #layerTabs[data-active-cat="hazard"] [data-cat-panel="market"],
  body:not(.simple-sheet-mode) #layerTabs[data-active-cat="urban"] [data-cat-panel="hazard"],
  body:not(.simple-sheet-mode) #layerTabs[data-active-cat="urban"] [data-cat-panel="market"],
  body:not(.simple-sheet-mode) #layerTabs[data-active-cat="market"] [data-cat-panel="hazard"],
  body:not(.simple-sheet-mode) #layerTabs[data-active-cat="market"] [data-cat-panel="urban"] {
    display: none !important;
  }

  /* PCではカテゴリボタンの展開矢印は控えめに非表示＆3ジャンル対応の配色・余白調整 */
  body:not(.is-mobile-ui) #layerCatSwitch .cat-caret {
    display: none;
  }

  body:not(.simple-sheet-mode):not(.is-mobile-ui) .layer-cat-btn {
    padding: 0 7px;
    font-size: 11.5px;
    gap: 3px;
  }

  body:not(.simple-sheet-mode):not(.is-mobile-ui) .layer-cat-btn[data-layer-cat="urban"].is-active {
    background: #1d4ed8;
    color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.32);
  }

  body:not(.simple-sheet-mode):not(.is-mobile-ui) .layer-cat-btn[data-layer-cat="market"].is-active {
    background: #b45309;
    color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.32);
  }

  body:not(.simple-sheet-mode):not(.is-mobile-ui) #layerTabs.layer-tabs-grouped {
    gap: 6px;
  }

  body:not(.simple-sheet-mode):not(.is-mobile-ui) .layer-chips-scroll {
    gap: 4px;
  }

  body:not(.simple-sheet-mode):not(.is-mobile-ui) .map-toolbar-row-layers .layer-btn:not(.ui-menu-item),
  body:not(.simple-sheet-mode):not(.is-mobile-ui) .layer-elev-toggle {
    padding: 0 7px;
    font-size: 11.5px;
  }

  /* PC 2ペイン固定高さ時でも #photoEraBar が縦に潰れないよう保護 */
  body:not(.simple-sheet-mode):not(.is-mobile-ui) #photoEraBar {
    flex-shrink: 0;
  }

  /* 過去航空写真透かし帯は展開パネルより常に上（法務・誤認防止契約） */
  body:not(.simple-sheet-mode) #photoEraWatermark {
    z-index: var(--z-watermark);
  }

  /* ボトムシート系モーダルがヘッダー・下部バーより確実に前面へ出るよう z-index 統一 */
  .mob-sheet-backdrop {
    z-index: var(--z-modal);
  }

  /* ==========================================================================
     タブレット（861px以上 かつ pointer: coarse タッチ操作）の押しやすさ救済
     ========================================================================== */
  @media (pointer: coarse) and (min-width: 861px) {
    body:not(.simple-sheet-mode):not(.is-mobile-ui) .map-toolbar-row-top .basemap-toggle .basemap-btn,
    body:not(.simple-sheet-mode):not(.is-mobile-ui) .map-toolbar-row-top .gis-tb-btn,
    body:not(.simple-sheet-mode):not(.is-mobile-ui) .map-toolbar-row-top .pin-split-main,
    body:not(.simple-sheet-mode):not(.is-mobile-ui) .map-toolbar-row-top .pin-split-caret,
    body:not(.simple-sheet-mode):not(.is-mobile-ui) .layer-cat-btn,
    body:not(.simple-sheet-mode):not(.is-mobile-ui) .map-toolbar-row-layers .layer-btn:not(.ui-menu-item),
    body:not(.simple-sheet-mode):not(.is-mobile-ui) .layer-elev-toggle {
      min-height: 40px;
      height: auto;
      padding-top: 6px;
      padding-bottom: 6px;
      padding-left: 11px;
      padding-right: 11px;
      font-size: 12.5px;
    }

    body:not(.simple-sheet-mode):not(.is-mobile-ui) .map-toolbar-row-top {
      gap: 6px 8px;
      padding: 6px 10px;
    }

    body:not(.simple-sheet-mode):not(.is-mobile-ui) .map-toolbar-top-left {
      flex-wrap: wrap;
    }
  }

  /* ==========================================================================
     スマホ専用（body.is-mobile-ui 診断後・通常表示）
     ========================================================================== */
  /* 1. 旧8個詰め込み28pxバーを廃止（DOM維持のまま非表示） */
  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) #mobMapViewBar {
    display: none !important;
  }

  /* 2. #mapSection を flex 縦並びにして、航空写真の #photoEraBar を地図の直上へ配置 */
  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) #reportSheet[data-mobtab="map"] #mapSection {
    display: flex;
    flex-direction: column;
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) #mapSection > .map-section-head {
    order: 10;
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) #mapSection > #photoEraBar {
    order: 14;
    margin: 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: none;
    border-bottom: 2px solid rgba(251, 191, 36, 0.85);
    padding: 5px 8px;
    background: #172536;
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) #mapSection > #photoEraBar .photo-era-bar-label {
    color: #fcd34d;
    font-weight: 800;
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) #mapSection > #photoEraBar .photo-era-pills {
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) #mapSection > #photoEraBar .photo-era-pills::-webkit-scrollbar {
    display: none;
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) #mapSection > #mapModeSubbar {
    order: 16;
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) #mapSection > #landTrendMapBar {
    order: 17;
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) #mapSection > #mobileCommonLegendBar {
    order: 18;
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) #mapSection > .map-frame {
    order: 20;
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) #mapSection > #landTrendMobileCards {
    order: 30;
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) #mapSection > #mobMapQuickSummary {
    order: 34;
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) #mapSection > #distanceRingBar {
    order: 38;
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) #mapSection > #mapNowViewingBar {
    order: 42;
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) #mapSection > #gmapPlacesPanel {
    order: 46;
  }

  /* 3. 上部レイヤーバー：3ジャンル1行常時表示（均等3列・高さ40px） */
  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .map-controls-bar {
    padding: 6px 8px;
    background: #101b2a;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    overflow: visible;
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .map-toolbar-primary.map-toolbar-row-layers {
    width: 100%;
    padding: 0;
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) #layerTabs.layer-tabs-grouped {
    width: 100%;
    gap: 0;
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) #layerChipsScroll {
    display: none !important;
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) #layerCatSwitch {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
    padding: 0;
    background: transparent;
    border: none;
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) #layerCatSwitch .layer-cat-btn {
    height: 40px;
    padding: 0 6px;
    border-radius: 10px;
    border: 1px solid #334155;
    background: #1a2738;
    color: #dbe6f3;
    font-size: 12.5px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    white-space: nowrap;
    min-width: 0;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) #layerCatSwitch .layer-cat-btn.is-active {
    background: #1a2738;
    color: #dbe6f3;
    border-color: #334155;
    box-shadow: none;
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) #layerCatSwitch .layer-cat-btn.is-current-genre {
    background: #0f766e !important;
    border-color: #14b8a6 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(15, 118, 110, 0.35);
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) #layerCatSwitch .layer-cat-btn.is-current-genre.has-active-dot::after {
    display: none;
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) #layerCatSwitch .layer-cat-btn.is-market-cat.is-current-genre {
    background: #d97706 !important;
    border-color: #fbbf24 !important;
    color: #0f172a !important;
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) #layerCatSwitch .layer-cat-btn.is-drawer-open {
    background: #ffffff !important;
    border-color: #2dd4bf !important;
    color: #0f172a !important;
    box-shadow: 0 0 0 2px rgba(45, 212, 191, 0.55);
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) #layerCatSwitch .cat-caret {
    display: inline-block;
    font-size: 11px;
    opacity: 0.85;
    transition: transform 0.15s ease;
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) #layerCatSwitch .layer-cat-btn.is-drawer-open .cat-caret {
    transform: rotate(180deg);
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) #layerCatSwitch .pro-badge-chip {
    font-size: 9.5px;
    padding: 1px 4px;
    line-height: 1.1;
  }

  /* 4. 地図上オーバーレイ展開パネル（#mobLayerDrawer） */
  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) #mobLayerDrawer:not([hidden]) {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: absolute;
    top: 8px;
    left: max(8px, env(safe-area-inset-left, 0px));
    right: max(8px, env(safe-area-inset-right, 0px));
    z-index: var(--z-layer-panel);
    padding: 10px 12px 10px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border: 2px solid #0f766e;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.34);
    color: #0f172a;
    max-height: 55%;
    overflow-y: auto;
    overscroll-behavior: contain;
    touch-action: pan-y;
    animation: mobDrawerFadeIn 0.15s ease-out;
  }

  /* 過去航空写真透かし帯の表示中はドロワー見出しと重ならないよう下へ退避 */
  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .map-frame:has(#photoEraWatermark:not([hidden])) #mobLayerDrawer:not([hidden]) {
    top: 38px;
  }

  @keyframes mobDrawerFadeIn {
    from { opacity: 0.4; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
  }

  @media (max-height: 500px) {
    body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) #mobLayerDrawer:not([hidden]) {
      max-height: 44%;
      padding: 8px 10px;
    }
  }

  .mob-layer-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  .mob-layer-drawer-title {
    font-size: 12.5px;
    font-weight: 800;
    color: #0f766e;
  }

  .mob-layer-drawer-close {
    appearance: none;
    border: 1px solid #cbd5e1;
    background: #f1f5f9;
    color: #334155;
    border-radius: 999px;
    height: 30px;
    padding: 0 11px;
    font-size: 12px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
  }

  .mob-layer-drawer-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
  }

  .mob-drawer-chip {
    appearance: none;
    min-height: 40px;
    padding: 0 13px;
    border-radius: 999px;
    border: 1.5px solid #cbd5e1;
    background: #f8fafc;
    color: #0f172a;
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease;
  }

  .mob-drawer-chip.is-active {
    background: #0f766e;
    border-color: #0f766e;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(15, 118, 110, 0.28);
  }

  .mob-drawer-chip.is-elev-overlay {
    border-color: #f59e0b;
    background: #fffbeb;
    color: #92400e;
    font-weight: 800;
  }

  .mob-drawer-chip.is-elev-overlay.is-active {
    background: #d97706;
    border-color: #b45309;
    color: #ffffff;
  }

  .mob-drawer-chip.is-none {
    background: #ffffff;
    color: #475569;
  }

  .mob-drawer-chip.is-none.is-active {
    background: #1e293b;
    border-color: #1e293b;
    color: #ffffff;
  }

  .mob-drawer-chip .mob-hazard-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    flex-shrink: 0;
  }

  .mob-drawer-chip .mob-hazard-dot.is-detected {
    background: #ef4444;
  }

  .mob-drawer-chip .mob-hazard-dot.is-nearby {
    background: #f59e0b;
  }

  .mob-drawer-chip .pro-badge-chip {
    font-size: 10px;
    padding: 1px 4px;
    border-radius: 4px;
    background: rgba(245, 158, 11, 0.2);
    color: #92400e;
    font-weight: 800;
  }

  .mob-drawer-chip.is-active .pro-badge-chip {
    background: rgba(255, 255, 255, 0.24);
    color: #ffffff;
  }

  .mob-layer-drawer-hint {
    font-size: 11px;
    color: #64748b;
    padding-top: 6px;
    border-top: 1px solid #e2e8f0;
  }

  /* 展開中は左上のステータス・HUDを一時フェード退避（過去写真透かし帯は絶対に隠さない） */
  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .map-frame.is-mob-layer-open .map-topleft-stack,
  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .map-frame.is-mob-layer-open #mobMapFloatingDock {
    opacity: 0.14;
    pointer-events: none;
  }

  /* 5. 左上：常時表示の「今の地図＆レイヤー」バッジ */
  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .map-topleft-stack {
    z-index: var(--z-map-hud);
    left: max(8px, env(safe-area-inset-left, 0px));
    max-width: calc(100% - 76px);
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) #reportSheet[data-mobtab="map"] #mobMapStatusBadge {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    max-width: 100%;
    padding: 6px 11px;
    border-radius: 13px;
    border: 1.5px solid rgba(15, 118, 110, 0.85);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.22);
    color: #0f172a;
    text-align: left;
    font-family: inherit;
    cursor: pointer;
    pointer-events: auto;
  }

  .mob-status-line1 {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 800;
    color: #0f766e;
    line-height: 1.2;
  }

  .mob-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #0f766e;
    flex-shrink: 0;
  }

  .mob-status-line2 {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    max-width: 100%;
    font-size: 12.5px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
  }

  #mobStatusLayerText {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mob-status-caret {
    color: #0f766e;
    font-weight: 800;
    flex-shrink: 0;
  }

  /* 6. 右端：フローティング操作ドック（48px航空サムネ＋44px丸ボタン） */
  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) #reportSheet[data-mobtab="map"] #mobMapFloatingDock {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    position: absolute;
    top: 8px;
    right: max(8px, env(safe-area-inset-right, 0px));
    z-index: var(--z-map-hud);
    pointer-events: none;
  }

  #mobMapFloatingDock > * {
    pointer-events: auto;
  }

  .mob-float-basemap-btn {
    appearance: none;
    position: relative;
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 13px;
    border: 2px solid #ffffff;
    overflow: hidden;
    box-shadow: 0 5px 14px rgba(15, 23, 42, 0.34);
    cursor: pointer;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: #2f4536;
  }

  .mob-float-basemap-btn[hidden] {
    display: none !important;
  }

  .mob-float-basemap-thumb {
    position: absolute;
    inset: 0;
    background:
      radial-gradient(circle at 28% 30%, #6d926c 0%, transparent 55%),
      radial-gradient(circle at 75% 65%, #44624c 0%, transparent 60%),
      linear-gradient(135deg, #2b3d30, #485e4e);
  }

  .mob-float-basemap-btn.is-to-standard .mob-float-basemap-thumb {
    background:
      linear-gradient(125deg, #f8fafc 0%, #f8fafc 44%, #cbd5e1 45%, #cbd5e1 52%, #e2efe8 53%, #e2efe8 100%);
  }

  .mob-float-basemap-lbl {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 2px 0;
    text-align: center;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.15;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.8);
    font-family: inherit;
  }

  .mob-float-basemap-btn.is-to-standard .mob-float-basemap-lbl {
    background: rgba(15, 118, 110, 0.92);
  }

  .mob-float-round-btn {
    appearance: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 999px;
    border: 1.5px solid #cbd5e1;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    color: #0f172a;
    font-size: 12px;
    font-weight: 800;
    font-family: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.24);
    cursor: pointer;
  }

  .mob-float-round-btn.is-primary {
    background: #0f766e;
    border: 2px solid #ffffff;
    color: #ffffff;
    box-shadow: 0 5px 14px rgba(15, 118, 110, 0.38);
  }

  .mob-float-round-btn.is-disabled {
    opacity: 0.42;
    pointer-events: none;
  }

  /* 7. コンパスを左下ズーム(＋/−)の右横＆スケールバーの上へ、3D角度ドックをその上へ配置（完全非干渉） */
  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .compass-rose-btn {
    top: auto;
    right: auto;
    left: max(50px, calc(42px + env(safe-area-inset-left, 0px)));
    bottom: 40px;
    z-index: var(--z-map-hud);
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .map-frame:has(#gmapProCanvas:not([hidden]), #gmapFrame:not([hidden])) .compass-rose-btn {
    left: max(8px, env(safe-area-inset-left, 0px));
    bottom: 54px;
  }

  /* スマホでは2本指で回転・傾き操作できるため、常駐の「真上 / 角度」ドックは非表示にして地図を広く保つ */
  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .map3d-angle-dock {
    display: none !important;
  }

  body.is-mobile-ui:not(.is-landing):not(.simple-sheet-mode) .map3d-angle-btn {
    min-width: 44px;
    min-height: 40px;
    padding: 4px 8px;
  }

  /* 8. 新「地図スタイル・表示調整」ボトムシート＆整理された ☰ メニュー */
  .mob-sheet-grabber {
    width: 40px;
    height: 4px;
    border-radius: 999px;
    background: #cbd5e1;
    margin: -4px auto 8px;
  }

  .mob-style-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .mob-style-card {
    appearance: none;
    padding: 8px;
    border-radius: 14px;
    border: 2px solid #e2e8f0;
    background: #ffffff;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    font-family: inherit;
    transition: border-color 0.14s ease, background-color 0.14s ease;
  }

  .mob-style-card.is-active {
    border-color: #0f766e;
    background: #f0fdfa;
    box-shadow: 0 3px 10px rgba(15, 118, 110, 0.16);
  }

  .mob-style-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    border-radius: 9px;
    width: 100%;
  }

  .mob-style-thumb.is-thumb-3d {
    background: linear-gradient(135deg, #99f6e4 0%, #d1fae5 55%, #fde68a 100%);
  }

  .mob-style-thumb.is-thumb-2d {
    background: linear-gradient(135deg, #e2e8f0 0%, #f8fafc 55%, #cbd5e1 100%);
  }

  .mob-style-thumb.is-thumb-gmap {
    background: linear-gradient(135deg, #bae6fd 0%, #fef3c7 100%);
  }

  .mob-style-pro-tag {
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 999px;
    background: #b45309;
    color: #ffffff;
  }

  .mob-style-card-name {
    font-size: 13px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
  }

  .mob-style-card-sub {
    font-size: 11px;
    color: #64748b;
    line-height: 1.2;
  }

  .mob-sheet-opacity-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .mob-sheet-opacity-row input[type="range"] {
    width: 100%;
    height: 30px;
    accent-color: #0f766e;
  }

  .mob-sheet-inline-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .mob-sheet-subnote {
    font-size: 11px;
    color: #64748b;
  }

  .mob-sheet-inline-btns {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
  }

  .mob-sheet-pill-btn {
    appearance: none;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1.5px solid #cbd5e1;
    background: #f1f5f9;
    color: #334155;
    font-size: 12.5px;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
  }

  .mob-sheet-pill-btn.is-on {
    background: #0f766e;
    border-color: #0f766e;
    color: #ffffff;
  }

  .mob-sheet-pill-btn.is-outline {
    background: #ffffff;
    border-color: #94a3b8;
    color: #0f172a;
  }

  .mob-sheet-sv-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    background: #ecfdf5;
    border: 1.5px solid #10b981;
    color: #065f46;
    font-weight: 800;
  }

  .mob-sheet-sv-link.is-disabled {
    opacity: 0.45;
    pointer-events: none;
  }

  .mob-sheet-legal-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px 16px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
    font-size: 12px;
  }

  .mob-sheet-legal-links a {
    color: #475569;
    text-decoration: underline;
    text-underline-offset: 2px;
  }

  /* フォーカス視認性 */
  #mobMapStatusBadge:focus-visible,
  #mobQuickBasemapBtn:focus-visible,
  #mobMapStyleSheetBtn:focus-visible,
  #mobFloatStreetViewLink:focus-visible,
  .mob-drawer-chip:focus-visible,
  .mob-style-card:focus-visible,
  .mob-sheet-pill-btn:focus-visible {
    outline: 2px solid #0284c7;
    outline-offset: 2px;
  }
}
