:root {
    color-scheme: light;
    --ink: #192f33;
    --muted: #516469;
    --paper: #f3f6f2;
    --line: #d4dfd8;
    --green: #125c4c;
    --a: #08664f;
    --b: #a34427;
    --c: #6146a1;
    font-family: "Noto Sans JP", "Yu Gothic UI", Meiryo, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    color: var(--ink);
    background: var(--paper);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
p { margin: 0; }
a { color: var(--green); text-underline-offset: .18em; }
button, input, select { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #ad701c; outline-offset: 3px; }
.shell { width: min(1420px, calc(100% - 48px)); margin-inline: auto; }
.masthead { color: white; background: #133d37; }
.masthead-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 60px; }
.masthead a { color: white; font-size: .84rem; white-space: nowrap; }
.campaign { font-weight: 700; font-size: .92rem; }
.campaign span { margin-left: .45rem; color: #c7dad0; font-weight: 500; font-size: .74rem; white-space: nowrap; }
.page-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem 1.3rem; padding: 25px 0 17px; }
.page-heading h1 { font-size: clamp(1.6rem, 3vw, 2.35rem); letter-spacing: .025em; margin: 0; }
.page-heading p { font-size: .86rem; color: var(--muted); }
.filters { padding: 15px 19px 18px; border: 1px solid var(--line); border-radius: 13px; background: white; }
.ticket-field { padding: 0; margin: 0 0 14px; border: 0; min-width: 0; }
.ticket-field legend, .other-filters label { font-weight: 700; font-size: .83rem; }
.ticket-options { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 5px; }
.ticket-options label { position: relative; }
.ticket-options input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.ticket-options label > span { display: flex; gap: .35rem; align-items: center; padding: 4px 10px; min-height: 36px; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; font-size: .83rem; }
.ticket-options input:checked + span { border-color: var(--green); background: #e5f1e9; font-weight: 700; }
.ticket-options input:focus-visible + span { outline: 3px solid #ad701c; outline-offset: 2px; }
.ticket { display: inline-grid; place-items: center; width: 1.48rem; height: 1.48rem; flex: 0 0 auto; border-radius: .36rem; color: white; font-size: .78rem; }
.a { --ticket-color: var(--a); }
.b { --ticket-color: var(--b); }
.c { --ticket-color: var(--c); }
.ticket { background: var(--ticket-color); }
.other-filters { display: grid; grid-template-columns: 1fr 1fr minmax(10rem, 1.55fr) auto; gap: 10px; align-items: end; }
.other-filters input, .other-filters select { display: block; width: 100%; height: 40px; min-width: 0; padding: 5px 8px; color: var(--ink); background: white; border: 1px solid #aebfb4; border-radius: 6px; margin-top: 4px; font-weight: 400; }
.button { padding: 6px 11px; border: 1px solid #b6c9be; border-radius: 6px; color: var(--green); background: white; font-size: .8rem; font-weight: 700; min-height: 34px; }
.button:hover { background: #edf6ef; }
.other-filters .button { min-height: 40px; }
.result-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 1rem; padding: 15px 0 10px; }
.result-summary { font-size: .9rem; font-weight: 700; }
.result-summary span, .approx-toggle { font-weight: 400; font-size: .79rem; color: var(--muted); }
.approx-toggle input { accent-color: var(--green); }
.workspace { display: grid; grid-template-columns: minmax(270px, 1fr) minmax(0, 2.05fr); align-items: start; gap: 14px; }
.list-panel, .map-panel { background: white; border: 1px solid var(--line); border-radius: 13px; }
.map-panel { position: sticky; top: 12px; overflow: hidden; }
.map-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; padding: 9px 12px; font-size: .88rem; font-weight: 700; }
.map-actions { display: flex; flex-wrap: wrap; gap: 6px; }
#locate[aria-disabled="true"] { cursor: progress; }
#map { height: clamp(352px, 58vh, 700px); background: #e4ecea; z-index: 0; }
.map-note, .map-status, .location-status { padding: 7px 12px; font-size: .76rem; color: var(--muted); }
.location-status:empty { padding: 0; }
.share-status { padding: 7px 12px; font-size: .8rem; color: var(--ink); }
.share-status:empty { padding: 0; }
.map-share-field { padding: 0 12px 8px; }
.map-share-field label { display: block; font-size: .8rem; }
.map-share-field input { width: 100%; padding: 5px 8px; color: var(--ink); border: 1px solid var(--line); border-radius: 6px; }
.map-status:not([hidden]) { border-bottom: 1px solid var(--line); }
.shop-list { list-style: none; margin: 0; padding: 0; }
.shop-card { padding: 13px 14px; border-bottom: 1px solid var(--line); }
.shop-card:last-child { border-bottom: 0; }
.shop-card.is-selected { background: #e8f3ec; box-shadow: inset 3px 0 var(--green); }
.shop-card h2 { display: flex; gap: 6px; align-items: flex-start; margin: 0 0 5px; font-size: .95rem; overflow-wrap: anywhere; }
.shop-meta, .shop-detail, .shop-address { overflow-wrap: anywhere; font-size: .79rem; }
.shop-meta { color: var(--muted); margin-bottom: 3px; }
.shop-detail { margin-top: 4px; color: var(--muted); }
.shop-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: .76rem; margin-top: 8px; }
.shop-actions .button { min-height: 28px; padding: 3px 7px; font-size: inherit; }
.precision { color: var(--muted); }
.more { display: block; margin: 10px auto; }
.message { padding: 14px; color: var(--muted); }
.site-note { margin-top: 20px; color: var(--muted); font-size: .85rem; }
.footer { margin-top: 18px; padding: 10px 0 25px; border-top: 1px solid var(--line); color: var(--muted); font-size: .76rem; }
.footer p + p { margin-top: 4px; }
.shop-marker { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: var(--ticket-color); color: white; border: 2px solid white; box-shadow: 0 1px 5px #24393b80; font-size: 12px; font-weight: 800; }
.shop-marker.approx { color: #233a3a; background: white; border: 2px dashed var(--ticket-color); }
.shop-cluster { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; color: white; background: #204e4c; border: 2px solid white; box-shadow: 0 1px 5px #24393b80; font-size: 12px; font-weight: 800; }
.shop-popup strong, .shop-popup span { display: block; overflow-wrap: anywhere; }
.shop-popup strong { font-size: .9rem; margin: 0 0 3px; }
.shop-popup .precision { margin-top: 4px; }
.shop-popup a { display: inline-block; margin-top: 5px; }

.shop-address-group { max-height: min(250px, 34vh); overflow: auto; margin-top: 6px; }
.shop-address-group .shop-popup { padding: 7px 5px; }
.shop-address-group .shop-popup + .shop-popup { border-top: 1px solid var(--line); }
.leaflet-popup-content .shop-pin-note { margin: 8px 0 0; color: var(--muted); }

@media (max-width: 740px) {
    .shell { width: calc(100% - 24px); }
    .masthead-inner { min-height: 49px; }
    .masthead a { font-size: .73rem; }
    .campaign { font-size: .8rem; }
    .campaign span { margin-left: .2rem; }
    .page-heading { padding-top: 18px; }
    .filters { padding: 11px; }
    .ticket-options label > span { padding: 4px 6px; font-size: .75rem; }
    .ticket-options { gap: 4px; }
    .other-filters { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .other-filters input, .other-filters select { font-size: 16px; }
    .workspace { grid-template-columns: minmax(0, 1fr); }
    .map-panel { grid-row: 1; position: static; }
    #map { height: clamp(310px, 47vh, 470px); }
}
