/* =========================================================
   PC 版のレイアウト・1080px 以上のときだけ効く
   - スマホの見た目は変えない（このファイルはスマホでは何もしない）
   - 並べ替えの JavaScript は使わない。ページの HTML の枠（th-cols・lm-side・rec-media など）と、ここの CSS だけで並べる
   - 色・文字・部品は parts.css の決まりのまま。並べ方だけを変える
   - 考え方: 横に広い画面は「一度に見渡せる」ことに使う
       テーマ = 本文＋右の固定の欄 / 県 = 自動車とバイクを左右に並べる
       一覧 = 左に絞り込み・右にカードの格子 / 地図 = 画面いっぱいの地図＋浮かせた欄
       記録 = 左に写真（固定）・右に中身 / トップ = 格子で入口を一度に見せる
   ========================================================= */

@media (min-width: 1080px) {
  :root { --pc-max: 1240px; --pc-side: 340px; --pc-gap: 40px; --cmt-header-h: 60px; }

  /* ---------- 共通: ヘッダとフッタ ---------- */
  .cmt-header { padding: 0 max(24px, calc((100vw - var(--pc-max)) / 2)); height: 60px; }
  .cmt-header-nav a { font-size: 15px; padding: 0 16px; }
  .cmt-logo-img { height: 30px; width: auto; }
  .cmt-icon-btn[data-cmt-menu-open] { display: none; }
  .cmt-footer { padding-left: max(24px, calc((100vw - var(--pc-max)) / 2)); padding-right: max(24px, calc((100vw - var(--pc-max)) / 2)); }
  .cmt-page { font-size: 16px; }

  /* ---------- テーマのページ: 本文＋右の固定の欄 ---------- */
  .th-main { display: block; }
  .th-cols { display: grid; grid-template-columns: minmax(0, 1fr) var(--pc-side); column-gap: var(--pc-gap); align-items: start; max-width: var(--pc-max); margin: 0 auto; padding: 0 24px 64px; }
  .th-body { display: block; grid-column: 1; min-width: 0; }
  .th-side { display: grid; gap: 16px; grid-column: 2; min-width: 0; position: sticky; top: 76px; padding-top: 32px; max-height: calc(100vh - 92px); overflow-y: auto; }
  .th-main--region .th-cols { display: block; }
  .th-main > .th-load-error { max-width: var(--pc-max); margin: 0 auto; box-sizing: border-box; }
  .th-main .th-cols > * , .th-body > *, .th-side > * { order: 0; }
  .th-side > * { background: var(--cmt-surface); padding: 20px; margin: 0; }
  .th-side .th-sec { padding: 20px; background: var(--cmt-surface); }
  .th-side .th-sec-head { margin-bottom: 12px; }
  .th-side details.cmt-fold { border: 0; }
  .th-side [data-slot="basis"]:empty { display: none; }

  .th-hero { min-height: 300px; }
  .th-hero--plain { min-height: 200px; }
  .th-hero-in { width: 100%; max-width: var(--pc-max); margin: 0 auto; padding: 0 24px 32px; box-sizing: border-box; }
  .th-hero-in > * { max-width: 760px; }
  .th-hero .cmt-page-title, .th-hero h1 { font-size: 40px; line-height: 1.25; letter-spacing: .01em; }
  .th-hero img.fit { left: auto; right: 0; width: 58%; padding: 16px 24px; opacity: .85; }
  .th-hero::after { background: linear-gradient(90deg, #fff 30%, rgba(255,255,255,.75) 50%, rgba(255,255,255,0) 75%); }
  .th-hero--plain::after { display: none; }

  .th-body .th-sec, .th-main--region .th-sec { padding: 40px 0 8px; background: transparent; }
  .th-sec-head .cmt-h-sec { font-size: 22px; }

  /* 数字の段: 警察の統計の欄は横いっぱいに、要点は 4 つ横に */
  #sec-numbers { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
  #sec-numbers > .th-sec-head,
  #sec-numbers > .th-asof,
  #sec-numbers > p { grid-column: 1 / -1; }
  #sec-numbers > .th-box { grid-column: 1 / -1; }
  .th-box { background: var(--cmt-surface); padding: 20px; margin: 0; }
  .th-facts { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .th-fact { background: var(--cmt-white) !important; }
  .th-rank b { font-size: 56px; }
  .th-table { font-size: 15px; }

  /* 当サイトの記録: 2 列のカード */
  .th-records { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .th-records li { margin: 0; border: 1px solid var(--cmt-line); }

  /* ---------- 県のページ: 自動車とバイクを左右に ---------- */
  .th-main--region .th-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--pc-gap); align-items: start; }
  .th-main--region .th-cols > * { grid-column: 1 / -1; min-width: 0; }
  .th-main--region .th-kind-bar { display: none; }
  .th-main--region .th-cols > [data-kind-panel] { grid-column: auto; display: block !important; }
  .th-main--region [data-kind-panel]::before {
    display: flex; align-items: center; gap: 10px; margin-top: 32px; padding: 12px 16px;
    font-size: 18px; font-weight: 700; color: var(--cmt-white); letter-spacing: .04em;
  }
  .th-main--region [data-kind-panel="car"]::before { content: "自動車"; background: var(--cmt-car); }
  .th-main--region [data-kind-panel="bike"]::before { content: "バイク"; background: var(--cmt-bike-text); }
  .th-main--region [data-kind-panel] .th-sec { padding: 24px 0 0; }
  .th-main--region [data-kind-panel] .th-box { border: 1px solid var(--cmt-line); }

  /* ---------- 記録のページ: 左に写真（固定）・右に中身 ---------- */
  .rec-wrap:has(> .rec-media) {
    max-width: var(--pc-max); margin: 0 auto; padding: 0 24px 120px;
    display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); column-gap: var(--pc-gap); align-items: start; grid-auto-flow: row dense;
  }
  .rec-wrap:has(> .rec-media) > * { grid-column: 2; min-width: 0; }
  .rec-wrap:has(> .rec-media) > .cmt-status,
  .rec-wrap:has(> .rec-media) > .rec-sample-banner { grid-column: 1 / -1; margin: 0 -24px; }
  .rec-wrap > .rec-media { grid-column: 1; grid-row: auto / span 60; position: sticky; top: 76px; margin-top: 24px; }
  .rec-wrap > .rec-flyer-stage.rec-media { padding-top: 20px; }
  .rec-wrap .rec-media .rec-photo { aspect-ratio: 4 / 3; }
  .rec-wrap:has(> .rec-media) .rec-title { font-size: 32px; line-height: 1.3; }
  .rec-wrap:has(> .rec-media) .rec-head,
  .rec-wrap:has(> .rec-media) .rec-sec { padding-left: 0; padding-right: 0; }
  .rec-actions { left: auto; right: max(24px, calc((100vw - var(--pc-max)) / 2 + 24px)); width: 420px; max-width: none; bottom: 24px; box-shadow: 0 8px 24px rgba(22,32,43,.18); }
  .rec-actions-spacer { display: none; }

  /* ---------- 一覧: 左に絞り込み・右にカードの格子 ---------- */
  .lm-wrap--list { max-width: var(--pc-max); margin: 0 auto; padding: 0 24px 64px; display: grid; grid-template-columns: 300px minmax(0, 1fr); column-gap: 32px; align-items: start; }
  .lm-wrap--list > .lm-sample { grid-column: 1 / -1; margin: 0 -24px; }
  .lm-wrap--list > .lm-side { position: sticky; top: 76px; padding-top: 24px; display: grid; gap: 12px; }
  .lm-wrap--list > .lm-main { padding-top: 24px; min-width: 0; }
  .lm-side .lm-head { background: transparent; border: 0; padding: 0; }
  .lm-side .lm-head h1 { font-size: 30px; }
  .lm-side .cmt-seg-wrap { padding: 0; position: static; }
  .lm-side .cmt-seg { display: grid; grid-template-columns: 1fr; gap: 4px; background: transparent; border: 0; padding: 0; }
  .lm-side .cmt-seg button { justify-content: space-between; display: flex; padding: 10px 14px; border: 1px solid var(--cmt-line); background: var(--cmt-white); border-radius: var(--cmt-r-btn); }
  .lm-side .cmt-seg button[aria-pressed="true"] { border-color: var(--cmt-navy); background: var(--cmt-navy); color: var(--cmt-white); }
  .lm-side .cmt-seg button[aria-pressed="true"] .cmt-seg-count { color: var(--cmt-white); }
  .lm-side .lm-src { padding: 0; display: grid; gap: 6px; }
  .lm-side .cmt-count-line, .lm-side .lm-toolbar { padding: 0; margin: 0; }
  .lm-side .lm-toolbar .cmt-btn { width: 100%; }

  /* カード: 写真を上に大きく（トップの「最近載った盗難の記録」も同じ形） */
  .lm-records, .pt-recent { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .lm-records > li, .pt-recent > li { border: 1px solid var(--cmt-line); background: var(--cmt-white); display: flex; flex-direction: column; min-width: 0; }
  .lm-records > li:hover, .pt-recent > li:hover { border-color: var(--cmt-navy); }
  .lm-records .cmt-row, .pt-recent .cmt-row { grid-template-columns: 1fr; padding: 0; border-bottom: 0; min-height: 0; gap: 0; }
  .lm-records .cmt-row:hover, .pt-recent .cmt-row:hover { background: transparent; }
  .lm-records .cmt-thumb, .pt-recent .cmt-thumb { width: 100%; aspect-ratio: 4 / 3; border-bottom-width: 6px; }
  .lm-records .cmt-row-body, .pt-recent .cmt-row-body { padding: 12px 14px 14px; }
  .lm-records .lm-share { margin-top: auto; padding: 0 14px 12px; background: transparent; }
  .lm-records .cmt-thumb-note, .pt-recent .cmt-thumb-note { font-size: 13px; }

  /* ---------- 地図: 画面ぜんぶを地図に。操作と数字は地図の上に浮かせる ---------- */
  body[data-zone-watch="map"] { height: 100vh; overflow: hidden; }
  body[data-zone-watch="map"] .cmt-footer { display: none; }
  body[data-zone-watch="map"] .lm-top { display: block; position: relative; height: calc(100vh - 60px); }
  body[data-zone-watch="map"] .lm-top-left { position: absolute; inset: 0; }
  body[data-zone-watch="map"] .lm-top-right { display: contents; }
  body[data-zone-watch="map"] .lm-mapbox { position: absolute; inset: 0; border: 0; }
  body[data-zone-watch="map"] .lm-map-slot,
  body[data-zone-watch="map"] .lm-mapbox[data-heat="true"] .lm-map-slot,
  body[data-zone-watch="map"] .lm-mapbox[data-heat="true"][data-expanded="true"] .lm-map-slot { height: 100% !important; min-height: 0; }
  .lm-float-l, .lm-float-r, .lm-foot, .lm-pick, .lm-heat, .lm-top > .lm-sample { box-shadow: 0 8px 24px rgba(22, 32, 43, .16); }
  .lm-float-l, .lm-float-r, .lm-foot { position: absolute; z-index: 6; background: var(--cmt-white); border: 1px solid var(--cmt-line); }
  /* 左上: 種類の切り替え＋いまの状況 */
  .lm-float-l { left: 20px; top: 20px; width: 380px; max-height: calc(100% - 120px); overflow-y: auto; }
  .lm-float-l .cmt-seg-wrap { padding: 12px 12px 0; position: static; border: 0; }
  .lm-float-l .lm-now { padding: 16px; box-shadow: none; border-bottom: 0; }
  /* 右: 記録のタイムライン（畳める） */
  .lm-float-r { right: 20px; top: 20px; bottom: 20px; width: 400px; display: flex; flex-direction: column; transition: transform .25s ease; }
  .lm-float-r[data-open="false"] { transform: translateX(calc(100% + 20px)); visibility: hidden; transition: transform .25s ease, visibility 0s .25s; }
  .lm-float-head { flex: none; display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--cmt-line); }
  .lm-float-head h2 { margin: 0; font-size: 16px; color: var(--cmt-navy); }
  .lm-float-body { flex: 1; overflow-y: auto; min-height: 0; }
  .lm-float-r .lm-day { position: sticky; top: 0; z-index: 1; }
  .lm-float-btn { min-height: 36px; padding: 0 12px; border: 1px solid var(--cmt-line); background: var(--cmt-white); color: var(--cmt-navy); font: inherit; font-size: 13px; font-weight: 700; border-radius: var(--cmt-r-btn); cursor: pointer; }
  .lm-float-pull { position: absolute; z-index: 6; right: 20px; top: 20px; box-shadow: 0 8px 24px rgba(22, 32, 43, .16); min-height: 44px; }
  .lm-float-pull[hidden] { display: none; }
  /* 地図のメニュー: 右の欄の左に */
  body[data-zone-watch="map"] .lm-tray { top: 20px; right: 440px; transition: right .25s ease; box-shadow: 0 8px 24px rgba(22, 32, 43, .12); }
  body[data-zone-watch="map"].lm-right-closed .lm-tray { right: 150px; }
  body[data-zone-watch="map"] .lm-tray-pull { right: 440px; }
  body[data-zone-watch="map"] .lm-mapbox[data-heat="true"] .lm-tray,
  body[data-zone-watch="map"] .lm-mapbox[data-heat="true"] .lm-tray-pull { top: 52px; }
  /* 地図の拡大・縮小・地図の絵のボタン: 右の欄と同じ並びに（メニューのすぐ下） */
  body[data-zone-watch="map"] .lm-zoom { right: 440px; top: 332px; bottom: auto; transition: right .25s ease; }
  body[data-zone-watch="map"].lm-right-closed .lm-zoom { right: 150px; }
  body[data-zone-watch="map"] .lm-mapbox[data-heat="true"] .lm-zoom { right: 20px; top: 380px; }
  /* 左下: 点の色と注記 */
  .lm-foot { left: 20px; bottom: 20px; width: 380px; padding: 12px 14px; font-size: 12px; color: var(--cmt-text-sub); line-height: 1.6; }
  .lm-foot .lm-note { padding: 0; }
  .lm-key { display: flex; flex-wrap: wrap; gap: 4px 14px; list-style: none; margin: 0 0 6px; padding: 0; color: var(--cmt-text); font-weight: 700; }
  .lm-key li { display: inline-flex; align-items: center; gap: 6px; }
  body[data-zone-watch="map"] .lm-top-left:has(.lm-mapbox[data-heat="true"]) ~ .lm-foot,
  body[data-zone-watch="map"] .lm-top:has(.lm-mapbox[data-heat="true"]) .lm-foot,
  body[data-zone-watch="map"] .lm-top:has(.lm-mapbox[data-heat="true"]) .lm-float-l { display: none; }
  body[data-zone-watch="map"] .lm-map-range { left: 420px; bottom: 20px; }
  /* 選んだ点のカード: 地図の下の真ん中 */
  body[data-zone-watch="map"] .lm-pick { position: absolute; z-index: 7; left: 50%; bottom: 20px; transform: translateX(-50%); width: 440px; border: 1px solid var(--cmt-line); box-shadow: 0 8px 24px rgba(22, 32, 43, .2); }
  body[data-zone-watch="map"] .lm-map-plainnote { left: 420px !important; top: 20px !important; max-width: 330px; width: max-content; padding: 4px 10px; }
  /* 見本のデータのときの帯: 地図の上の真ん中 */
  body[data-zone-watch="map"] .lm-top > .lm-sample { position: absolute; z-index: 8; left: 50%; top: 20px; transform: translateX(-50%); border: 1px solid var(--cmt-line); }
  /* ヒートマップ: 条件と順位は左の欄に浮かせ、題と凡例は地図の上下の端に */
  body[data-zone-watch="map"] .lm-heat { position: absolute; z-index: 6; left: 20px; top: 52px; width: 380px; max-height: calc(100% - 72px); overflow-y: auto; border: 1px solid var(--cmt-line); }
  /* ヒートマップを開いたとき: 地図は条件の欄の右に寄せ、記録の欄は出さない（地図の絵に重ねない） */
  body[data-zone-watch="map"] .lm-mapbox[data-heat="true"] { left: 420px; }
  body[data-zone-watch="map"] .lm-top:has(.lm-mapbox[data-heat="true"]) .lm-float-r,
  body[data-zone-watch="map"] .lm-top:has(.lm-mapbox[data-heat="true"]) .lm-float-pull { display: none; }
  body[data-zone-watch="map"] .lm-mapbox[data-heat="true"] .lm-tray { right: 20px; }
  body[data-zone-watch="map"] .lm-mapbox[data-heat="true"] .lm-tray-pull { right: 20px; }
  body[data-zone-watch="map"] .lm-mapbox[data-heat="true"] .lm-heat-top { position: absolute; left: 0; right: 0; top: 0; padding-right: 10px; }
  body[data-zone-watch="map"] .lm-mapbox[data-heat="true"] .lm-legend { position: absolute; left: 0; right: 0; bottom: 0; }

  /* ---------- トップ: 格子で入口を一度に ---------- */
  .pt-wrap { max-width: none; }
  .pt-sec, .pt-hero { padding-left: max(24px, calc((100vw - var(--pc-max)) / 2)); padding-right: max(24px, calc((100vw - var(--pc-max)) / 2)); }
  .pt-sec { padding-top: 56px; padding-bottom: 56px; }
  .pt-hero { padding-top: 88px; padding-bottom: 80px; }
  .pt-hero-in { max-width: 720px; }
  .pt-hero .cmt-page-title { font-size: 48px; line-height: 1.25; }
  .pt-entries { display: flex; gap: 12px; }
  .pt-entries .cmt-btn { min-width: 260px; }
  .pt-sec-head .cmt-h-sec { font-size: 26px; }
  .pt-themes { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; /* 車・バイクも県も 1 行 5 枚で同じ幅 */ }
  .pt-mapsec-in { min-height: 420px; padding-left: max(24px, calc((100vw - var(--pc-max)) / 2)); padding-right: max(24px, calc((100vw - var(--pc-max)) / 2)); }
  .pt-mapsec-in::after { display: none !important; }
  .pt-data { grid-template-columns: 1fr 1fr; gap: 24px; }
  .pt-data-fig { aspect-ratio: 16 / 6; }
  .pt-act { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; border-top: 0; }
  .pt-act li a { height: 100%; border: 1px solid var(--cmt-line); background: var(--cmt-white); padding: 20px; }
}

/* 地図の枠の中の点の色の凡例は、スマホでは出さない（PC の左下の欄だけ） */
.lm-key { display: none; }
.lm-float-head { display: none; }
@media (min-width: 1080px) { .lm-key { display: flex; } .lm-float-head { display: flex; } }

/* ---------- 読みもの・案内・フォーム・市区町村の幅（PC ではヘッダーと同じ 1240px の枠に、本文は読みやすい幅で左に） ---------- */
.pg-toc { display: none; }
@media (min-width: 1080px) {
  .pg-wrap, .rd-wrap, .cy-wrap { max-width: var(--pc-max); padding: 0 24px 96px; box-sizing: border-box; }
  .pg-wrap > *, .cy-wrap > * { max-width: 860px; }
  .pg-wrap.pg-wrap--wide > * { max-width: none; } /* 右に空きを作らず、本文を枠いっぱいに（/prevent/）。見出しの下の説明だけは読みやすい幅のまま */
  .pg-wrap.pg-wrap--wide > .pg-head { max-width: 860px; }
  .pg-head { padding: 48px 0 12px; }
  .pg-head h1 { font-size: 36px; }
  .pg-body h2 { font-size: 24px; margin-top: 48px; }
  .pg-wrap--toc { display: grid; grid-template-columns: minmax(0, 860px) 280px; column-gap: 64px; align-items: start; }
  .pg-wrap--toc > * { grid-column: 1; }
  .pg-wrap--toc > .pg-toc { display: block; grid-column: 2; grid-row: 1 / span 40; position: sticky; top: 84px; max-width: none; margin-top: 56px; padding: 20px; background: var(--cmt-surface); border-left: 3px solid var(--cmt-navy); max-height: calc(100vh - 110px); overflow-y: auto; }
  .pg-toc-t { margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--cmt-text); }
  .pg-toc ul { list-style: none; margin: 0; padding: 0; }
  .pg-toc a { display: block; padding: 6px 0; font-size: 14px; line-height: 1.5; color: var(--cmt-navy); text-decoration: none; border-bottom: 1px solid var(--cmt-line); }
  .pg-toc a:hover { text-decoration: underline; }
  .rd-wrap > * { max-width: none; }
}

/* ---------- PC: スマホの幅に見えるページの直し（警察の記録・市区町村・読みもの・登録・お問い合わせ） ---------- */
@media (min-width: 1080px) {
  /* 登録・お問い合わせ: 左に説明（動かない）・右に入力欄 */
  .pg-wrap:has(> .pg-split) > * { max-width: none; }
  .pg-split { display: grid; grid-template-columns: 360px minmax(0, 1fr); column-gap: 64px; align-items: start; }
  .pg-side { position: sticky; top: 84px; }
  .pg-side .pg-head { padding-top: 40px; }
  .pg-mainc { padding-top: 40px; min-width: 0; }
  .pg-mainc .pg-form { max-width: 760px; }
  .pg-mainc .pg-state { max-width: 760px; }
  .pg-side .pg-note { margin-top: 20px; }
  /* 市区町村: 件数は上に広く・町ごとの件数は左・最近の記録は右 */
  .cy-wrap { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); column-gap: 56px; align-items: start; }
  .cy-wrap > * { grid-column: 1 / -1; max-width: none; }
  .cy-wrap > .cy-sec[data-slot="sec-towns"] { grid-column: 1; }
  .cy-wrap > .cy-sec[data-slot="sec-towns"] + .cy-sec { grid-column: 2; }
  .cy-nums { max-width: 760px; }
  /* 読みもの（週・月・コラム）: 表と一覧を左右に並べる */
  .rd-wrap[data-kind="weekly"], .rd-wrap[data-kind="monthly"], .rd-wrap[data-kind="post"] { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 56px; align-items: start; }
  .rd-wrap[data-kind="weekly"] > *, .rd-wrap[data-kind="monthly"] > *, .rd-wrap[data-kind="post"] > * { grid-column: 1 / -1; }
  .rd-wrap[data-kind] > .rd-sec[data-slot="sec-vehicle"], .rd-wrap[data-kind] > .rd-sec[data-slot="sec-pref"], .rd-wrap[data-kind] > .rd-sec[data-slot="sec-searching"], .rd-wrap[data-kind] > .rd-sec[data-slot="sec-found"] { grid-column: span 1; }
  .rd-wrap[data-kind="list"] .rd-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
  /* 警察などの記録（写真が無い記録）: 2 列に流す。帯は全幅 */
  .rec-wrap:not(:has(> .rec-media)) { max-width: var(--pc-max); margin: 0 auto; padding: 0 24px 96px; column-count: 2; column-gap: 56px; }
  .rec-wrap:not(:has(> .rec-media)) > * { break-inside: avoid; }
  .rec-wrap:not(:has(> .rec-media)) > .cmt-status, .rec-wrap:not(:has(> .rec-media)) > .rec-sample-banner, .rec-wrap:not(:has(> .rec-media)) > .rec-load { column-span: all; margin-left: -24px; margin-right: -24px; }
  .rec-wrap:not(:has(> .rec-media)) .rec-title { font-size: 32px; line-height: 1.3; }
}

/* タブレット・小さめのノート PC（768〜1079px）: 本文の枠を 720px のままにせず、960px まで広げる */
@media (min-width: 768px) and (max-width: 1079px) {
  .pg-wrap, .rd-wrap, .cy-wrap, .lm-wrap, .pt-wrap, .rec-wrap, .rec-actions, .an-wrap, .st-wrap { max-width: 960px; margin-left: auto; margin-right: auto; }
  .pg-wrap { padding-left: 24px; padding-right: 24px; }
}

/* 地図（PC）: 窓の外側に付くタブで畳む・出典は下に小さく・画面の高さに合わせる */
@media (min-width: 1080px) {
  body[data-zone-watch="map"] { height: 100vh; height: 100dvh; }
  body[data-zone-watch="map"] .lm-top { height: calc(100vh - 60px); height: calc(100dvh - 60px); }
  .lm-float-l { display: flex; flex-direction: column; gap: 8px; background: none; border: 0; box-shadow: none; overflow: visible; max-height: none; }
  .lm-float-l .cmt-seg-wrap { background: var(--cmt-white); border: 1px solid var(--cmt-line); box-shadow: 0 8px 24px rgba(22, 32, 43, .16); padding: 12px; }
  .lm-float-l .lm-now { position: relative; padding: 0; background: var(--cmt-white); border: 1px solid var(--cmt-line); box-shadow: 0 8px 24px rgba(22, 32, 43, .16); }
  .lm-now-body { padding: 16px; max-height: calc(100vh - 340px); max-height: calc(100dvh - 340px); overflow-y: auto; }
  .lm-now[data-open="false"] { background: none; border: 0; box-shadow: none; }
  .lm-now[data-open="false"] .lm-now-body { display: none; }
  .lm-now[data-open="false"] .lm-tab--l { left: 0; border-left: 1px solid var(--cmt-line); }
  .lm-tab { position: absolute; z-index: 7; display: flex; align-items: center; justify-content: center; width: 30px; height: auto; min-height: 96px; height: max-content; white-space: nowrap; padding: 10px 0; writing-mode: vertical-rl; letter-spacing: .15em; font: inherit; font-size: 13px; font-weight: 700; color: var(--cmt-navy); background: var(--cmt-white); border: 1px solid var(--cmt-line); box-shadow: 0 8px 24px rgba(22, 32, 43, .16); cursor: pointer; }
  .lm-tab:hover { background: var(--cmt-surface); }
  .lm-tab:focus-visible { outline: 3px solid var(--cmt-car); outline-offset: 2px; }
  .lm-tab--l { left: 100%; top: 16px; border-left: 0; border-radius: 0 8px 8px 0; }
  .lm-float-btn.lm-tab--r { right: 100%; left: auto; top: 16px; border-right: 0; border-radius: 8px 0 0 8px; }
  .lm-float-btn.lm-float-pull { right: 0; top: 16px; width: 30px; min-height: 120px; padding: 10px 0; writing-mode: vertical-rl; letter-spacing: .15em; border-right: 0; border-radius: 8px 0 0 8px; }
  body[data-zone-watch="map"] .lm-tray, body[data-zone-watch="map"] .lm-tray-pull, body[data-zone-watch="map"] .lm-zoom { right: 462px; }
  body[data-zone-watch="map"].lm-right-closed .lm-tray, body[data-zone-watch="map"].lm-right-closed .lm-tray-pull, body[data-zone-watch="map"].lm-right-closed .lm-zoom { right: 44px; }
  body[data-zone-watch="map"] .lm-map-plainnote { position: absolute; left: 420px !important; top: auto !important; bottom: 2px; width: auto; max-width: calc(100% - 920px); font-size: 10px; line-height: 1.4; padding: 1px 6px; }
  body[data-zone-watch="map"] .lm-map-range { left: 420px; bottom: 36px; font-size: 11px; }
}

/* 地図（PC）: ページ全体も下へスクロールできる（窓が低くても、いちばん下の「緯度・経度」や出典・フッターまで届く）。地図の拡大縮小は Ctrl キー＋スクロール */
@media (min-width: 1080px) {
  body[data-zone-watch="map"] { height: auto; min-height: 100vh; overflow-x: hidden; overflow-y: auto; }
  body[data-zone-watch="map"] .cmt-footer { display: block; }
  body[data-zone-watch="map"] .lm-top { height: max(640px, calc(100vh - 60px)); height: max(640px, calc(100dvh - 60px)); }
  .lm-now-body { max-height: max(300px, calc(100vh - 340px)); max-height: max(300px, calc(100dvh - 340px)); }
  body[data-zone-watch="map"] .lm-map-plainnote { background: rgba(255,255,255,.92); color: var(--cmt-text-sub); font-size: 11px; max-width: calc(100% - 880px); bottom: 4px; }
  body[data-zone-watch="map"] .lm-map--dark .lm-map-plainnote { background: rgba(10,11,15,.6); color: #e3e8ef; text-shadow: 0 1px 2px rgba(0,0,0,.9); }
  body[data-zone-watch="map"] .lm-map-range { bottom: 38px; }
}

/* 地理院タイルに切り替わったときは出典が 3 行になるので、緯度・経度の表示を少し上に */
@media (min-width: 1080px) { body[data-zone-watch="map"] .lm-map-range { bottom: 70px; } }

/* 地図の右「この範囲の記録」（PC）は札の「広める」を出さず、札を詰めて 1 画面に並ぶ数を増やす（記録ページの「広める」は残す） */
@media (min-width: 1080px) {
  #lm-timeline .cmt-row { min-height: 0; padding: 8px 16px; gap: 12px; grid-template-columns: 64px 1fr; }
  #lm-timeline .cmt-row-title { margin: 2px 0 0; font-size: 16px; }
  #lm-timeline .cmt-thumb { width: 64px; }
}

/* （PC）: 緯度・経度は上の切り替えのすぐ右。出典と「Ctrl を押しながら…」は地図の下の中央に 1 行 */
@media (min-width: 1080px) {
  body[data-zone-watch="map"] .lm-map-range { left: 412px; top: 20px; bottom: auto; padding: 6px 10px; font-size: 12px; line-height: 1.4; border: 1px solid var(--cmt-line); box-shadow: 0 8px 24px rgba(22, 32, 43, .12); }
  body[data-zone-watch="map"] .lm-map-plainnote { position: absolute; left: 50% !important; right: auto; top: auto !important; bottom: 2px; transform: translateX(-50%); width: max-content; max-width: calc(100% - 40px); white-space: nowrap; text-align: center; font-size: 11px; line-height: 1.4; padding: 1px 8px; z-index: 5; }
}

/* 地図の札（右の一覧・スマホの下の一覧・選んだ記録）から「広める」を外す。幅によらず。記録ページの「広める」は残す */
#lm-timeline .lm-share, .lm-pick .lm-share, .lm-picked .lm-share { display: none; }
