:root{--ink:#182d37;--muted:#6c7a81;--line:#e2e8e8;--paper:#f6f8f6;--white:#fff;--accent:#183c48;--shadow:0 9px 30px rgba(19,39,44,.09)}
*{box-sizing:border-box}html{font-family:-apple-system,BlinkMacSystemFont,"Hiragino Kaku Gothic ProN","Noto Sans JP",Meiryo,sans-serif;font-size:15px;color:var(--ink);background:var(--paper)}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}a{color:inherit}h1,h2,p{margin-top:0}small,.helper{font-size:12px;color:var(--muted);line-height:1.65}label{display:block;font-weight:600;font-size:13px;margin:0 0 17px}label input:not([type=checkbox]):not([type=file]),label select,label textarea{display:block;width:100%;border:1px solid #cdd6d8;border-radius:9px;background:#fff;padding:11px 12px;color:var(--ink);margin-top:6px;font-weight:400}label input:focus,label textarea:focus,label select:focus{outline:2px solid #74afb5;outline-offset:1px}button.primary,.primary{background:var(--accent);color:#fff;border:1px solid var(--accent);border-radius:9px;padding:11px 16px;font-weight:650}button.secondary,.secondary{background:#fff;color:var(--ink);border:1px solid #cdd9da;border-radius:9px;padding:10px 13px;font-weight:600}button.primary:hover{background:#285668}button.secondary:hover{background:#eaf1f1}.text-button{border:0;color:#5a6c74;background:none;padding:10px 6px}.site-header{background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:18px;padding:12px clamp(14px,3.5vw,46px);min-height:76px;position:relative;z-index:1010}.brand{display:flex;align-items:center;gap:10px;text-decoration:none;white-space:nowrap}.brand-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:11px;background:#172f3b;color:#fff;font-weight:850;font-size:22px;letter-spacing:-3px;padding-right:3px}.brand strong{display:block;letter-spacing:1.1px;font-size:21px;line-height:1.1}.brand small{display:block;margin-top:1px;font-size:10px;letter-spacing:1px}.header-sub{font-size:12px;color:#7a8588;flex:1;margin-left:10px}.header-actions{display:flex;align-items:center;gap:9px}.header-actions form{margin:0}.app-shell{max-width:1450px;margin:auto;padding:18px clamp(12px,2.5vw,34px) 20px}.toolbar{display:flex;justify-content:space-between;align-items:end;gap:12px;margin-bottom:11px}.collection-control{display:flex;gap:8px;align-items:center}.collection-control label{margin:0 4px 0 0;color:var(--muted);white-space:nowrap}.collection-control select{background:#fff;padding:12px 15px;border:1px solid var(--line);border-radius:9px;min-width:220px;max-width:280px;outline-offset:2px}.square-action{width:43px;height:43px;background:#fff;border:1px solid var(--line);border-radius:9px;font-size:24px}.view-tabs{background:#e8eeee;border-radius:10px;display:flex;padding:4px;gap:2px}.view-tabs button{border:0;background:transparent;padding:9px 18px;border-radius:7px;white-space:nowrap;color:#576870;font-weight:650}.view-tabs button[aria-pressed=true]{background:#fff;color:#123542;box-shadow:0 1px 6px rgba(0,0,0,.06)}.view-tabs span{font-size:19px;line-height:10px;margin-right:2px}.summary{color:#667780;font-size:12px;padding:3px 1px 12px;min-height:29px}.view{background:#fff;border:1px solid var(--line);border-radius:13px;overflow:hidden;box-shadow:var(--shadow)}.view[hidden]{display:none!important}#map{height:min(68vh,770px);min-height:410px;width:100%;background:#ecf1ef}.map-help{font-size:12px;color:#687a7b;padding:11px 16px;background:#fff;display:flex;justify-content:space-between;gap:14px;align-items:center;flex-wrap:wrap}.legend{display:flex;gap:7px;align-items:center}.legend i{display:inline-block;width:14px;height:14px;border:3px solid #529a86;border-radius:50%}.legend-unvisited{background:white}.legend-visited{background:#529a86}.legend-check{background:#529a86;color:#fff;padding:0 4px;border-radius:50%;font-size:12px}.view-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:22px 24px 17px}.view-heading h2{font-size:19px;margin-bottom:4px}.view-heading p{font-size:12px;color:var(--muted);margin:0}.photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:13px;padding:0 24px 26px}.photo-tile{border-radius:9px;overflow:hidden;position:relative;background:#e7eeec;min-height:190px;cursor:pointer;box-shadow:0 3px 12px rgba(0,0,0,.06)}.photo-tile>img{width:100%;height:220px;object-fit:cover;display:block;transition:transform .35s}.photo-tile:hover>img{transform:scale(1.05)}.tile-caption{position:absolute;bottom:0;left:0;right:0;padding:36px 14px 12px;background:linear-gradient(transparent,rgba(0,0,0,.7));color:#fff;font-size:13px}.tile-caption strong{display:block;line-height:1.4}.tile-caption small{color:#d7eeee}.tile-caption p{margin:3px 0;font-size:12px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.missing-photos{border-top:1px solid var(--line);padding:12px 24px 24px}.missing-photos>button{background:transparent;border:0;padding:10px 0;color:#526c73;font-weight:600}.missing-photos #missing-list{display:flex;gap:8px;flex-wrap:wrap}.missing-photos #missing-list[hidden]{display:none}.missing-item{background:#f3f6f6;border:1px dashed #d2dddd;padding:9px 11px;border-radius:7px;font-size:12px}.empty-state{padding:45px 25px;text-align:center;color:var(--muted)}.empty-state strong{display:block;color:var(--ink);font-size:16px;margin-bottom:8px}.place-list{display:grid;gap:0;padding:0 24px 24px}.place-row{display:flex;gap:16px;align-items:center;border-bottom:1px solid var(--line);padding:14px 0;cursor:pointer}.place-row:hover{background:#f9fbfb}.place-row img,.row-placeholder{width:82px;height:68px;object-fit:cover;border-radius:7px;flex:none}.row-placeholder{background:#eef2f0;display:grid;place-items:center;color:#8a9998;font-size:12px}.place-row h3{font-size:15px;margin:0 0 5px}.place-row p{font-size:12px;color:#6e7e84;margin:0 0 3px}.row-side{margin-left:auto;color:#7c8a8c;font-size:11px;text-align:right}.status-label{display:inline-flex;align-items:center;gap:5px;font-size:11px;border-radius:30px;background:#edf2f2;padding:4px 8px;margin-top:4px}.footer-note{font-size:11px;color:#8a9698;text-align:center;margin:18px 0}.modal{max-width:min(92vw,570px);width:100%;max-height:92vh;overflow:auto;padding:0;border:0;border-radius:17px;box-shadow:0 23px 80px rgba(0,0,0,.29);color:var(--ink)}.modal::backdrop,.slideshow::backdrop{background:rgba(10,30,40,.62)}.dialog-inner{padding:26px}.dialog-top{display:flex;justify-content:space-between;align-items:start;gap:10px;margin-bottom:21px}.dialog-top small{display:block;font-weight:700;letter-spacing:1px}.dialog-top h2{font-size:22px;margin:0;line-height:1.45}.x-btn{border:0;background:#edf2f2;border-radius:50%;width:36px;height:36px;font-size:25px;line-height:1}.coord-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.coord-fields input{min-width:0}.dialog-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;margin-top:22px}.dialog-actions .danger-text{margin-right:auto}.danger-text{border:0;background:transparent;color:#b24f44;font-size:12px;padding:10px 2px}.check-row{display:flex;align-items:flex-start;gap:10px;font-weight:400;background:#f6f9f9;border-radius:8px;padding:11px;margin:15px 0}.check-row input{margin-top:3px;width:18px;height:18px;flex:none}.check-row strong{display:block;font-size:13px}.check-row small{display:block;margin-top:2px}.visit-panel{margin-top:16px;padding:16px;background:#f3f6f6;border-radius:10px}.visit-panel>p{font-weight:700;margin:0 0 11px}.visit-buttons{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:9px}.visit-buttons button{font-size:12px;padding:10px 12px}.detail-photo-box img{width:100%;max-height:270px;object-fit:cover;border-radius:10px}.detail-photo-box:empty{display:none}#detail-note{white-space:pre-line;line-height:1.7;margin:10px 0}.photo-form{border-top:1px solid var(--line);padding:18px 0 0;margin-top:20px}.photo-form label{margin-bottom:11px}.photo-form input[type=file]{font-size:12px;max-width:100%}.photo-form .dialog-actions{margin-top:8px}#share-url-wrap{padding:12px;background:#edf3f3;border-radius:9px}#share-url-wrap input{width:100%;padding:8px;border:1px solid #ddd}#share-url-wrap p{margin-bottom:6px}#share-url-wrap button{margin-top:7px}#toast{position:fixed;z-index:5000;bottom:25px;left:50%;transform:translateX(-50%);max-width:90vw;background:#203e4c;color:#fff;border-radius:10px;padding:13px 20px;box-shadow:0 5px 30px rgba(0,0,0,.2);font-size:13px}#toast[hidden]{display:none}.my99-pin{position:relative;width:26px;height:31px;display:block;filter:drop-shadow(0 2px 2px rgba(0,0,0,.23))}.my99-pin:before{content:"";position:absolute;left:4px;top:0;width:20px;height:20px;border-radius:50% 50% 50% 2px;transform:rotate(-45deg);border:3px solid var(--pin);background:var(--fill)}.my99-pin .pin-check{position:absolute;left:8px;top:3px;z-index:1;width:12px;height:12px;display:grid;place-items:center;color:#fff;font-size:12px;font-weight:900}.pin-preview{min-width:140px;max-width:205px}.pin-preview img{width:100%;height:104px;object-fit:cover;border-radius:5px;margin-bottom:5px}.pin-preview strong{display:block;font-size:12px;line-height:1.4}.pin-preview small{font-size:10px}.leaflet-tooltip{border:0!important;border-radius:9px!important;box-shadow:0 4px 20px rgba(0,0,0,.16)!important;padding:7px!important}.leaflet-tooltip:before{border-top-color:#fff!important}.leaflet-container{font-family:inherit}.slideshow{position:fixed;inset:0;max-width:none;width:100%;height:100%;max-height:none;border:0;padding:0;background:#0b151b;color:white}.slideshow::backdrop{background:#080f14}.slide-inner{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative;padding:40px 18px 70px}.slide-inner>img{display:block;max-height:calc(100vh - 170px);max-width:100%;object-fit:contain}.slide-close{position:absolute;top:14px;right:18px;z-index:5;color:#fff;border:0;background:#25353e;width:42px;height:42px;border-radius:50%;font-size:25px}.slide-bottom{position:absolute;bottom:12px;left:0;right:0;display:flex;align-items:center;justify-content:center;gap:18px;padding:10px}.slide-bottom button{background:#283b46;color:#fff;border:1px solid #435a63;padding:9px 14px;border-radius:8px}.slide-bottom strong{display:block;text-align:center;font-size:14px}.slide-bottom small{display:block;text-align:center}.login-body{min-height:100vh;display:grid;place-items:center;background:#e9eeed;padding:20px}.login-card{width:100%;max-width:420px;background:#fff;padding:35px;border-radius:17px;box-shadow:var(--shadow)}.login-card h1{font-size:21px;line-height:1.5;margin-top:30px}.login-card>p{font-size:13px;color:var(--muted);line-height:1.7;margin-bottom:28px}.login-card form button{width:100%}.public-container{max-width:980px;margin:60px auto;padding:0 20px}.public-container .photo-grid{padding:25px 0}.public-placeholder{width:100%;height:220px;background:#dce5e4;display:grid;place-items:center;color:#789;font-weight:900}.eyebrow{font-size:12px;letter-spacing:2px;font-weight:700;color:#69818b}
@media(max-width:850px){.header-sub{display:none}.site-header{justify-content:space-between}.header-actions{gap:4px}.header-actions .secondary{display:none}.header-actions .text-button{display:none}.toolbar{flex-wrap:wrap}.collection-control{flex:1}.collection-control select{min-width:0;width:100%;max-width:none}.view-tabs{width:100%;justify-content:space-around}.view-tabs button{flex:1}.app-shell{padding:12px}#map{height:calc(100dvh - 265px);min-height:350px}.photo-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;padding:0 8px 13px}.photo-tile{border-radius:3px;min-height:140px}.photo-tile>img{height:190px}.view-heading{padding:18px 13px}.view-heading h2{font-size:17px}.missing-photos,.place-list{padding-left:13px;padding-right:13px}}
@media(max-width:480px){.site-header{min-height:65px;padding:8px 12px}.brand-icon{height:35px;width:35px;font-size:19px}.brand strong{font-size:18px}.header-actions .primary{padding:10px 9px;font-size:12px}.toolbar .collection-control label{display:none}.map-help{font-size:11px}.map-help .legend{font-size:10px;gap:3px}.view-tabs button{padding:9px 8px;font-size:12px}.photo-tile>img{height:155px}.dialog-inner{padding:20px 16px}.dialog-actions{gap:6px}.dialog-actions button{font-size:12px}.visit-buttons button{flex:1}.slide-bottom{gap:7px}.slide-bottom button{font-size:12px;padding:8px}.slide-bottom strong{font-size:12px}}

.register-panel{margin-top:22px;border-top:1px solid var(--line);padding-top:17px}.register-panel summary{cursor:pointer;font-size:13px;font-weight:650}.register-panel form{margin-top:18px}


/* MY99 map rendering fallback (2026-11-16).
   Leaflet's essential layout rules are kept locally because the unpkg CDN
   stylesheet may fail to load in some environments. Do not remove these rules:
   without them tile images are laid out as normal document content. */
.leaflet-container{position:relative;overflow:hidden;outline:0;z-index:0;-webkit-tap-highlight-color:transparent}
.leaflet-container.leaflet-touch-zoom{touch-action:pan-x pan-y}
.leaflet-container.leaflet-touch-drag{touch-action:none;touch-action:pinch-zoom}
.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom{touch-action:none}
.leaflet-container .leaflet-pane,
.leaflet-container .leaflet-tile,
.leaflet-container .leaflet-marker-icon,
.leaflet-container .leaflet-marker-shadow,
.leaflet-container .leaflet-tile-container,
.leaflet-container .leaflet-pane>svg,
.leaflet-container .leaflet-pane>canvas,
.leaflet-container .leaflet-zoom-box,
.leaflet-container .leaflet-image-layer,
.leaflet-container .leaflet-layer{position:absolute;top:0;left:0}
.leaflet-container .leaflet-pane{z-index:400}
.leaflet-container .leaflet-tile-pane{z-index:200}
.leaflet-container .leaflet-overlay-pane{z-index:400}
.leaflet-container .leaflet-shadow-pane{z-index:500}
.leaflet-container .leaflet-marker-pane{z-index:600}
.leaflet-container .leaflet-tooltip-pane{z-index:650}
.leaflet-container .leaflet-popup-pane{z-index:700}
.leaflet-container .leaflet-map-pane canvas{z-index:100}
.leaflet-container .leaflet-map-pane svg{z-index:200}
.leaflet-container .leaflet-tile-container{pointer-events:none}
.leaflet-container .leaflet-tile{user-select:none;-webkit-user-select:none;-webkit-user-drag:none;border:0;padding:0;max-width:none!important;max-height:none!important;visibility:inherit}
.leaflet-container .leaflet-marker-icon,.leaflet-container .leaflet-marker-shadow{display:block;user-select:none;-webkit-user-select:none;-webkit-user-drag:none;max-width:none!important;max-height:none!important}
.leaflet-container .leaflet-overlay-pane svg{max-width:none!important;max-height:none!important}
.leaflet-container .leaflet-marker-pane img,.leaflet-container .leaflet-shadow-pane img,
.leaflet-container .leaflet-tile-pane img,.leaflet-container img.leaflet-image-layer{max-width:none!important;max-height:none!important}
.leaflet-container .leaflet-zoom-animated{transform-origin:0 0}
.leaflet-container .leaflet-zoom-box{width:0;height:0;box-sizing:border-box;z-index:800}
.leaflet-container .leaflet-interactive{cursor:pointer}
.leaflet-container.leaflet-grab{cursor:grab}
.leaflet-container.leaflet-grabbing,.leaflet-container.leaflet-grabbing .leaflet-interactive{cursor:grabbing}
.leaflet-container .leaflet-marker-icon,.leaflet-container .leaflet-marker-shadow,
.leaflet-container .leaflet-tile{image-rendering:auto}
.leaflet-container .leaflet-control-container{pointer-events:none}
.leaflet-container .leaflet-top,.leaflet-container .leaflet-bottom{position:absolute;z-index:1000;pointer-events:none}
.leaflet-container .leaflet-top{top:0}.leaflet-container .leaflet-bottom{bottom:0}
.leaflet-container .leaflet-left{left:0}.leaflet-container .leaflet-right{right:0}
.leaflet-container .leaflet-control{position:relative;z-index:800;pointer-events:visiblePainted;pointer-events:auto;clear:both}
.leaflet-container .leaflet-top .leaflet-control{margin-top:10px}
.leaflet-container .leaflet-bottom .leaflet-control{margin-bottom:10px}
.leaflet-container .leaflet-left .leaflet-control{float:left;margin-left:10px}
.leaflet-container .leaflet-right .leaflet-control{float:right;margin-right:10px}
.leaflet-container .leaflet-bar{box-shadow:0 1px 5px rgba(0,0,0,.4);border-radius:4px;background:#fff}
.leaflet-container .leaflet-bar a{background-color:#fff;border-bottom:1px solid #ccc;width:30px;height:30px;line-height:30px;display:block;text-align:center;text-decoration:none;color:#243a42;font-size:21px;font-weight:700}
.leaflet-container .leaflet-bar a:first-child{border-radius:4px 4px 0 0}
.leaflet-container .leaflet-bar a:last-child{border-bottom:0;border-radius:0 0 4px 4px}
.leaflet-container .leaflet-bar a:hover{background:#f0f5f5}
.leaflet-container .leaflet-bar a.leaflet-disabled{cursor:default;color:#bbb;background:#f4f4f4}
.leaflet-container .leaflet-control-attribution{background:rgba(255,255,255,.85);font:11px/1.5 Arial,sans-serif;color:#333;padding:0 5px}
.leaflet-container .leaflet-control-attribution a{color:#0078a8;text-decoration:none}
.leaflet-container .leaflet-control-attribution a:hover{text-decoration:underline}
.leaflet-container .leaflet-popup{position:absolute;text-align:center;margin-bottom:20px}
.leaflet-container .leaflet-popup-content-wrapper{padding:1px;text-align:left;border-radius:10px;background:#fff;box-shadow:0 3px 14px rgba(0,0,0,.26)}
.leaflet-container .leaflet-popup-content{margin:12px 15px;min-width:160px;line-height:1.4;font-size:13px}
.leaflet-container .leaflet-popup-tip-container{width:40px;height:20px;position:absolute;left:50%;margin-left:-20px;overflow:hidden;pointer-events:none}
.leaflet-container .leaflet-popup-tip{width:17px;height:17px;padding:1px;margin:-10px auto 0;background:#fff;transform:rotate(45deg);box-shadow:0 3px 14px rgba(0,0,0,.26)}
.leaflet-container .leaflet-popup-close-button{position:absolute;top:0;right:0;border:0;text-align:center;width:24px;height:24px;color:#777;font-size:20px;line-height:24px;text-decoration:none;z-index:3}
.leaflet-container .leaflet-popup-close-button:hover{color:#333}
.leaflet-container .leaflet-tooltip{position:absolute;padding:7px;background:#fff;border-radius:9px;white-space:nowrap;user-select:none;pointer-events:none;box-shadow:0 4px 20px rgba(0,0,0,.16);font:12px/1.4 sans-serif}
.leaflet-container .leaflet-tooltip-top:before{content:"";position:absolute;top:100%;left:50%;margin-left:-6px;border:6px solid transparent;border-top-color:#fff}
.leaflet-container .leaflet-tooltip-bottom:before{content:"";position:absolute;bottom:100%;left:50%;margin-left:-6px;border:6px solid transparent;border-bottom-color:#fff}
.leaflet-container .leaflet-tooltip-left:before{content:"";position:absolute;top:50%;left:100%;margin-top:-6px;border:6px solid transparent;border-left-color:#fff}
.leaflet-container .leaflet-tooltip-right:before{content:"";position:absolute;top:50%;right:100%;margin-top:-6px;border:6px solid transparent;border-right-color:#fff}
.leaflet-container .leaflet-fade-anim .leaflet-popup,.leaflet-container .leaflet-fade-anim .leaflet-tooltip{opacity:0;transition:opacity .2s linear}
.leaflet-container .leaflet-fade-anim .leaflet-map-pane .leaflet-popup,.leaflet-container .leaflet-fade-anim .leaflet-map-pane .leaflet-tooltip{opacity:1}
.leaflet-container .leaflet-oldie .leaflet-popup-content-wrapper{zoom:1}

/* MY99 / BURAQUEST-consistent map controls and visit pin separation, 2026-11-16 */
/* The white outline is outside the category-coloured visited pin, including its tip. */
.my99-pin.is-visited::before{box-shadow:0 0 0 2px #fff}
/* The location action matches BURAQUEST's white 44px crosshair control. */
.leaflet-container .my99-location-control{margin-top:15px;margin-right:15px}
.my99-location-button{appearance:none;-webkit-appearance:none;width:44px;height:44px;padding:0;border:1px solid #d0ded8;border-radius:10px;background:#fff;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 15px rgba(41,79,58,.13);cursor:pointer;touch-action:manipulation}
.my99-location-button:hover{background:#f3f8f7}
.my99-location-button:focus-visible{outline:3px solid #4692c5;outline-offset:2px}
.my99-location-button:disabled{opacity:.7;cursor:wait}
.my99-location-button svg{width:22px;height:22px;stroke:#315f65;stroke-width:1.8;fill:none;stroke-linecap:round;stroke-linejoin:round}
.my99-location-button.is-loading svg{animation:my99-locating 1s linear infinite}
@keyframes my99-locating{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.my99-location-button.is-loading svg{animation:none}}
/* Zoom controls on the bottom-right; keep the attribution on the opposite corner. */
.leaflet-container .leaflet-bottom.leaflet-right .leaflet-control-zoom{margin-right:15px;margin-bottom:15px}
.leaflet-container .leaflet-control-zoom{border:1px solid #d0ded8;border-radius:10px;overflow:hidden;box-shadow:0 4px 15px rgba(41,79,58,.13)}
.leaflet-container .leaflet-control-zoom a{width:40px;height:40px;line-height:40px;background:#fff;color:#315f65;font-size:23px}
.leaflet-container .leaflet-control-zoom a:first-child{border-radius:9px 9px 0 0}
.leaflet-container .leaflet-control-zoom a:last-child{border-radius:0 0 9px 9px}
/* Your device position: blue dot with an opaque white border and soft halo. */
.leaflet-container .my99-user-position-icon{border:0;background:transparent}
.my99-user-position-dot{position:absolute;left:3px;top:3px;width:18px;height:18px;display:block;border-radius:50%;background:#2485d6;border:3px solid #fff;box-shadow:0 0 0 3px rgba(36,133,214,.18),0 2px 8px rgba(14,61,113,.35)}
