/*
 * 見てきたログ | フォトマップ smartphone A + C hybrid
 * 2026-11-07 | 非公開レビュー用・CSS追加方式
 * PC(861px+)には干渉しない。既存C案の写真・座標・記事データはそのまま。
 */
@media (max-width:860px) {
  html.pm-mobile-hybrid .mobile-view-tools {display:none!important;}
  html.pm-mobile-hybrid .mobile-journey-bar {display:flex!important;margin-bottom:9px;}
  html.pm-mobile-hybrid #explorer {padding-inline:12px!important;}
  html.pm-mobile-hybrid .workspace {
    position:relative; isolation:isolate; display:block!important;
    height:clamp(430px,calc(100dvh - 345px),760px)!important;
    min-height:0!important; max-height:none!important; overflow:hidden;
    margin-bottom:8px; border:1px solid #d8e2d8; border-radius:16px;
    background:#dfebe7;
  }
  html.pm-mobile-hybrid .workspace .map-pane,
  html.pm-mobile-hybrid .workspace[data-mobile-view="detail"] .map-pane {
    display:flex!important; width:100%; height:100%!important;
    min-height:0!important; border:0; border-radius:0; overflow:hidden;
  }
  html.pm-mobile-hybrid .workspace .map-shell {min-height:0;}
  html.pm-mobile-hybrid .workspace .map-status-row {min-height:30px;padding:5px 8px;}
  html.pm-mobile-hybrid .workspace .map-top-actions {top:9px;right:9px;gap:5px;}
  html.pm-mobile-hybrid .workspace .map-control {min-height:38px;padding:6px 9px;}
  html.pm-mobile-hybrid .workspace .photo-pane,
  html.pm-mobile-hybrid .workspace[data-mobile-view="map"] .photo-pane {
    display:block!important;position:absolute;inset:0;z-index:1100;
    pointer-events:none; height:100%!important;min-height:0;
    overflow:visible;container:none;
  }
  html.pm-mobile-hybrid .workspace .photo-pane #detail-list-resizer,
  html.pm-mobile-hybrid .workspace .photo-pane .places-shelf,
  html.pm-mobile-hybrid .workspace .split-bar-vertical {display:none!important;}
  html.pm-mobile-hybrid .workspace .photo-pane .selected-detail {
    position:absolute;bottom:58px;left:0;right:0;width:100%;
    display:flex!important;flex-direction:column!important;
    height:141px!important;min-height:0!important;max-height:calc(100% - 65px);
    gap:0;overflow:hidden!important;padding:0!important;pointer-events:auto;
    border:1px solid #d7e3d5;border-radius:18px 18px 0 0;
    background:#fffdf8;box-shadow:0 -7px 28px #223c2a31;
    transition:height .23s cubic-bezier(.2,.75,.2,1);z-index:2;
  }
  html.pm-mobile-hybrid .workspace.pm-sheet-open .selected-detail {
    height:72%!important;overflow:hidden!important;
  }
  html.pm-mobile-hybrid .pm-sheet-head {
    display:flex;align-items:center;gap:11px;position:relative;flex:0 0 auto;
    width:100%;height:141px;min-height:141px;padding:18px 15px 9px;
    border:0;background:#fffdf8;text-align:left;color:#2c4836;
    touch-action:pan-x;cursor:pointer;
  }
  html.pm-mobile-hybrid .pm-sheet-head::before {
    content:"";position:absolute;left:calc(50% - 21px);top:8px;
    width:42px;height:4px;border-radius:5px;background:#c0cbbf;
  }
  html.pm-mobile-hybrid .pm-sheet-thumbnail {
    display:block;flex:0 0 100px;width:100px;height:90px;object-fit:cover;
    border-radius:10px;background:#e5ece3;
  }
  html.pm-mobile-hybrid .pm-sheet-caption {display:flex;flex-direction:column;min-width:0;flex:1;gap:5px;}
  html.pm-mobile-hybrid .pm-sheet-eyebrow {font-size:10px;color:#687b65;letter-spacing:.06em;}
  html.pm-mobile-hybrid .pm-sheet-title {
    display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
    color:#264732;font-family:"Yu Mincho","Hiragino Mincho ProN",serif;
    font-size:19px;font-weight:700;line-height:1.35;
  }
  html.pm-mobile-hybrid .pm-sheet-hint {font-size:11px;color:#5c7561;font-weight:650;}
  html.pm-mobile-hybrid .pm-sheet-chevron {flex:0 0 auto;color:#55715d;font-size:23px;}
  html.pm-mobile-hybrid .workspace:not(.pm-sheet-open) .selected-detail > :not(.pm-sheet-head) {display:none!important;}
  html.pm-mobile-hybrid .workspace.pm-sheet-open .pm-sheet-head {
    height:49px;min-height:49px;padding:13px 14px 5px;
    background:#f7faf3;border-bottom:1px solid #e4ebdf;
  }
  html.pm-mobile-hybrid .workspace.pm-sheet-open .pm-sheet-thumbnail,
  html.pm-mobile-hybrid .workspace.pm-sheet-open .pm-sheet-eyebrow,
  html.pm-mobile-hybrid .workspace.pm-sheet-open .pm-sheet-hint {display:none;}
  html.pm-mobile-hybrid .workspace.pm-sheet-open .pm-sheet-title {
    font-size:15px;font-family:inherit;white-space:nowrap;display:block;text-overflow:ellipsis;
  }
  html.pm-mobile-hybrid .workspace.pm-sheet-open .selected-detail .detail-frame {
    display:block!important;flex:0 0 clamp(145px,25dvh,217px)!important;
    height:clamp(145px,25dvh,217px)!important;
    max-height:34%!important;width:auto;
    margin:8px 10px 0;aspect-ratio:auto;border-radius:11px;
  }
  html.pm-mobile-hybrid .workspace.pm-sheet-open .selected-detail .detail-intro {
    display:flex!important;padding:8px 12px 4px!important;gap:5px 11px;
  }
  html.pm-mobile-hybrid .workspace.pm-sheet-open .selected-detail .detail-title {
    font-size:19px!important;flex-basis:135px;line-height:1.4;
  }
  html.pm-mobile-hybrid .workspace.pm-sheet-open .selected-detail .detail-copy {
    display:block!important;overflow-y:auto!important;min-height:0;flex:1 1 auto;
    padding:6px 14px 18px!important;overscroll-behavior-y:contain;
  }
  html.pm-mobile-hybrid .workspace.pm-sheet-open .selected-detail .detail-action-after-photo,
  html.pm-mobile-hybrid .workspace.pm-sheet-open .selected-detail .detail-action-footer {display:block;}
  html.pm-mobile-hybrid .selected-detail .detail-enlarge img {object-fit:contain;background:#edf0e8;}
  html.pm-mobile-hybrid .selected-detail .detail-intro .read-article {min-height:40px!important;}
  html.pm-mobile-hybrid .pm-mobile-dock {
    display:grid;grid-template-columns:repeat(3,1fr);gap:6px;
    position:absolute;left:0;right:0;bottom:0;height:58px;z-index:1200;
    padding:5px 9px calc(5px + env(safe-area-inset-bottom,0px));
    background:#f9fbf4;border-top:1px solid #dbe4d6;box-shadow:0 -3px 15px #24432c16;
  }
  html.pm-mobile-hybrid .pm-mobile-dock button {
    display:flex;align-items:center;justify-content:center;gap:7px;
    min-height:45px;border-radius:10px;padding:5px 8px;
    background:transparent;color:#49674f;font-weight:750;font-size:12px;
  }
  html.pm-mobile-hybrid .pm-mobile-dock button[aria-pressed="true"] {background:#e2ebdc;color:#31553b;}
  html.pm-mobile-hybrid .pm-mobile-dock .pm-tab-icon {font-size:18px;font-weight:400;line-height:1;}
  html.pm-mobile-hybrid .workspace.pm-sheet-open .map-top-actions {opacity:.9;}
  html.pm-mobile-hybrid #all-places {
    width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;
    margin:0;padding:18px 14px max(18px,env(safe-area-inset-bottom,0px));
    border-radius:0;border:0;overflow-y:auto;overscroll-behavior:contain;
  }
  html.pm-mobile-hybrid #all-places .dialog-heading {position:sticky;top:-18px;z-index:1;margin:-18px -14px 10px;padding:18px 14px 13px;background:#fffdf8;border-bottom:1px solid #e1e5d9;}
  html.pm-mobile-hybrid #all-places .all-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;}
  html.pm-mobile-hybrid #all-places .all-grid .place-card {min-height:175px;padding:8px;gap:7px;}
  html.pm-mobile-hybrid #all-places .all-grid .card-image {max-height:none;aspect-ratio:1.36;}
  html.pm-mobile-hybrid #all-places .all-grid .card-title {font-size:13px;white-space:normal;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-height:1.45;}
  html.pm-mobile-hybrid #all-places .pagination {padding-block:12px 26px;}
  html.pm-mobile-hybrid .photo-viewer {max-height:96dvh;}
}
@media(max-width:390px) {
  html.pm-mobile-hybrid .workspace {height:clamp(430px,calc(100dvh - 335px),650px)!important;}
  html.pm-mobile-hybrid .pm-sheet-head {padding-inline:11px;gap:9px;}
  html.pm-mobile-hybrid .pm-sheet-thumbnail {width:87px;flex-basis:87px;height:85px;}
  html.pm-mobile-hybrid .pm-sheet-title {font-size:17px;}
}
@media(max-width:860px) and (prefers-reduced-motion:reduce) {
  html.pm-mobile-hybrid .workspace .photo-pane .selected-detail{transition:none;}
}
@media(min-width:861px) {.pm-mobile-dock,.pm-sheet-head{display:none!important;}}

/* Short phones: keep enough room for captions and article actions when expanded. */
@media (max-width:860px) and (max-height:740px) {
  html.pm-mobile-hybrid .workspace.pm-sheet-open .selected-detail {height:88%!important;}
}
