:root{--ink:#203b34;--muted:#74817c;--green:#176b5a;--line:#e4eae5}*{box-sizing:border-box}body{margin:0;background:#f9faf7;color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,'Hiragino Kaku Gothic ProN','Noto Sans JP',sans-serif;font-size:14px}button,input{font:inherit}button,a,input{outline-offset:4px}button{cursor:pointer;background:white;border:1px solid var(--line);border-radius:8px;color:var(--ink);padding:10px 13px}button:hover{background:#edf4ee}a{color:var(--green)}header{height:84px;display:flex;align-items:center;padding:0 32px;border-bottom:1px solid var(--line);gap:24px;background:#fff}.brand{display:flex;gap:13px;align-items:center;color:var(--ink);text-decoration:none;font-size:21px;font-weight:750;letter-spacing:.04em}.brand small{display:block;font-size:9px;letter-spacing:.21em;margin-top:5px;color:var(--muted)}.brand-icon{width:42px;height:42px;border-radius:14px;background:var(--green);color:#fff;display:grid;place-items:center;font-size:29px}.header-note{font-size:12px;color:var(--muted);margin-left:auto}header button{font-size:12px;border:0}main{display:grid;grid-template-columns:365px 1fr;height:calc(100dvh - 84px)}aside{display:flex;flex-direction:column;min-height:0;border-right:1px solid var(--line);background:#fff;z-index:500}.intro{padding:26px 26px 18px}.eyebrow{color:var(--green);font-size:10px;letter-spacing:.17em;font-weight:700}h1{font-size:27px;line-height:1.55;margin:12px 0 8px;letter-spacing:.05em}.intro p{font-size:12px;color:var(--muted);line-height:1.8;margin:0}.search{margin:0 24px 20px;display:flex;align-items:center;background:#f5f7f3;border:1px solid var(--line);border-radius:9px;padding:12px;gap:8px}.search span{font-size:24px;line-height:16px}.search input{width:100%;border:0;background:transparent;min-width:0;font-size:12px;color:var(--ink)}kbd{font-size:9px;white-space:nowrap;color:#8c9790}.layer-heading{display:flex;align-items:center;padding:0 24px;gap:10px}.layer-heading h2{font-size:12px;margin:0 auto 0 0}.layer-heading button{border:0;padding:0;font-size:10px;color:var(--green)}#layers{padding:12px 24px 18px;display:grid;grid-template-columns:1fr 1fr;gap:7px;border-bottom:1px solid var(--line)}.layer{display:flex;align-items:center;gap:6px;border:1px solid var(--line);padding:9px 8px;border-radius:7px;font-size:11px;cursor:pointer}.layer:has(input:checked){background:#f3f7f3;border-color:#c6d9ce}.layer input{accent-color:var(--green);width:12px;margin:0}.dot{width:7px;height:7px;border-radius:50%;display:inline-block;flex-shrink:0}.layer small{margin-left:auto;color:var(--muted);font-size:10px}.list-head{display:flex;justify-content:space-between;align-items:center;padding:14px 24px 10px;font-size:11px}.tabs{display:flex;gap:12px}.tabs button{border:0;border-radius:0;padding:0 0 6px;font-size:11px;color:var(--muted)}.tabs .active{color:var(--green);border-bottom:2px solid var(--green)}#count{font-size:10px;color:var(--muted)}#list{overflow:auto;flex:1;min-height:90px;padding:0 16px}.card{width:100%;display:flex;align-items:start;text-align:left;border:0;border-bottom:1px solid #eef1eb;border-radius:0;padding:15px 8px;gap:11px;background:#fff}.card:hover{background:#f5f8f3}.card-icon{flex-shrink:0;width:29px;height:29px;border-radius:9px;color:#fff;display:grid;place-items:center;font-size:11px;font-weight:bold}.card strong{font-size:12px;font-weight:650;line-height:1.6;display:block}.card small{font-size:10px;color:var(--muted);line-height:1.7;display:block;margin-top:4px}.card em{font-style:normal;margin-left:auto;color:#a2b4a7;font-size:18px}.sidebar-footer{font-size:9px;color:#8a958c;padding:12px 24px;line-height:1.8;border-top:1px solid var(--line)}.map-wrap{position:relative;min-width:0}#map{height:100%;background:#e8ede3}.map-top{position:absolute;top:24px;left:24px;right:24px;display:flex;justify-content:space-between;gap:8px;z-index:500;pointer-events:none}.map-top>*{pointer-events:auto}.map-label{background:#fff;border:1px solid #dfe7dc;border-radius:9px;padding:12px 16px;box-shadow:0 4px 20px #203b3410;font-size:12px;font-weight:650}.map-label i{display:inline-block;width:7px;height:7px;background:#528b66;border-radius:50%;margin-right:8px}.map-label small{font-weight:normal;color:var(--muted);margin-left:12px;font-size:10px}.map-top button,.map-tools button{font-size:11px;box-shadow:0 4px 20px #203b3410}.map-tools{position:absolute;bottom:39px;left:24px;z-index:500}.map-note{position:absolute;bottom:17px;left:24px;z-index:500;font-size:9px;background:#ffffffdc;border-radius:4px;padding:3px 7px}.pin{border:3px solid white;box-shadow:0 2px 7px #23453155;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;color:white;font-size:10px;font-weight:700}.pin.approx{border-style:dashed}.group{display:grid;place-items:center;border:5px solid #ffffffe8;background:#2b6e5d;color:white;border-radius:50%;font-size:12px;font-weight:bold;box-shadow:0 2px 8px #223a3426}.leaflet-control-zoom{border:1px solid #dce4dc!important;border-radius:9px!important;overflow:hidden}.leaflet-bottom.leaflet-right{bottom:24px}.leaflet-control-attribution{font-size:9px!important}.leaflet-popup-content{font-family:inherit}.leaflet-popup-content h3{font-size:13px}.leaflet-popup-content p{font-size:11px}.leaflet-popup-content a{color:var(--green)}#detail{position:absolute;z-index:600;right:24px;bottom:42px;background:#fff;width:335px;max-height:65%;overflow:auto;border-radius:14px;padding:23px;box-shadow:0 8px 40px #203b3426}#detail h2{font-size:18px;line-height:1.6;margin:12px 20px 12px 0}#detail p{font-size:12px;line-height:1.8;color:#68776e}.tags{display:flex;flex-wrap:wrap;gap:5px}.tag{font-size:10px;padding:4px 7px;background:#f1f5ee;border-radius:5px;color:#4a6f5c}.close{position:absolute;right:13px;top:10px;border:0;background:transparent;font-size:24px;padding:0 6px;color:#819085}.actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:14px}.actions a,.actions button{font-size:11px;padding:10px;border-radius:7px;text-decoration:none}.primary{background:var(--green);color:white}.secondary{border:1px solid var(--line)}.position-note{font-size:10px!important;background:#f8f6ee;padding:9px;border-radius:6px}#toast{position:absolute;z-index:700;bottom:90px;left:50%;transform:translateX(-50%);background:#203b34;color:white;padding:12px 20px;border-radius:8px;font-size:12px;white-space:nowrap}.empty{font-size:12px;color:var(--muted);text-align:center;padding:30px 10px;line-height:2}dialog{border:1px solid var(--line);border-radius:16px;max-width:620px;width:calc(100% - 32px);padding:35px;color:var(--ink);max-height:85dvh}dialog::backdrop{background:#122a2455}dialog p{font-size:13px;line-height:1.9}dialog h2{font-size:22px}dialog h3{font-size:15px;margin-top:24px}.muted{color:var(--muted)}
@media(max-height:850px) and (min-width:761px){.intro{padding:18px 24px 10px}.intro h1{font-size:23px;line-height:1.4;margin:7px 0}.intro p{display:none}.search{margin-bottom:14px}#layers{padding-bottom:12px;gap:5px}.layer{padding:7px 8px}}
@media(max-width:760px){header{height:67px;padding:0 16px;gap:5px}.brand{font-size:17px;gap:9px}.brand-icon{width:35px;height:35px}.header-note{display:none}header button{margin-left:auto;font-size:10px}main{height:auto;display:flex;flex-direction:column}.map-wrap{height:55dvh;min-height:350px;order:-1}aside{border:0;overflow:visible}.intro{padding:20px 20px 12px}.intro h1{font-size:23px;display:inline-block;margin:5px 0}.intro h1 br{display:none}.intro p{display:none}.search{margin:0 20px 18px}.layer-heading{padding:0 20px}#layers{padding:12px 20px 20px;grid-template-columns:repeat(2,1fr)}#list{max-height:450px;min-height:180px}.map-top{top:14px;left:12px;right:12px}.map-label{font-size:11px;padding:10px}.map-label small{display:none}.map-top button{font-size:10px;padding:8px}.map-tools{left:12px;bottom:40px}.map-note{left:12px;max-width:80%}#detail{bottom:36px;right:12px;left:12px;width:auto;max-height:75%;padding:18px}#detail h2{font-size:16px}.sidebar-footer{font-size:10px}}
@media(max-width:400px){header{padding:0 12px}.brand{font-size:14px;white-space:nowrap;letter-spacing:0}.brand small{font-size:8px}.brand-icon{width:30px;height:34px;font-size:24px;flex-shrink:0}header button{max-width:85px;font-size:9px;padding:5px}.intro h1{font-size:21px}}
#proposal{max-width:1100px;width:calc(100% - 24px)}.proposal-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.proposal-grid label{font-size:12px;display:flex;flex-direction:column;gap:6px}.proposal-grid input{width:100%;padding:10px;border:1px solid #ccd8cf;border-radius:7px}.candidate-editor{padding:15px;margin:15px 0;border:1px solid #dde6dc;border-radius:8px}.candidate-editor button{margin:12px 5px 0 0}#comparison{overflow-x:auto}#comparison table{border-collapse:collapse;min-width:600px;width:100%}#comparison td,#comparison th{border:1px solid #dde6dc;padding:12px;max-width:250px;overflow-wrap:anywhere;text-align:left;font-size:12px}#comparison th{background:#eef4ed}@media(max-width:600px){.proposal-grid{grid-template-columns:1fr}#proposal{padding:22px}}
aside{overflow-y:auto}aside>*{flex-shrink:0}#list{flex:none;min-height:180px;max-height:450px}.intro{padding-top:20px;padding-bottom:14px}.intro h1{font-size:23px}#town-panel{margin:0 18px 20px;padding:14px;background:#f5f8f2;border:1px solid #dce5d7;border-radius:12px}.town-title{display:flex;align-items:center;justify-content:space-between;gap:8px}.town-title h2{font-size:14px;margin:0}.town-title small{font-size:10px;color:#596953}.town-title label{font-size:11px;white-space:nowrap}.town-title input{accent-color:#176b5a}.town-intro{font-size:11px;line-height:1.7;margin:9px 0;color:#56675d}.town-filter,.town-search{display:flex;gap:6px;flex-direction:column;font-size:11px;margin:10px 0}.town-filter select,.town-search input{font:inherit;width:100%;padding:9px;background:white;border:1px solid #ced9cc;border-radius:7px;color:#203b34}#town-legend{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}#town-legend button{font-size:10px;padding:7px 3px;display:flex;align-items:center;gap:4px;border-radius:5px;white-space:nowrap}#town-legend i{display:block;width:10px;height:10px;flex-shrink:0;border-radius:2px}#town-legend button[aria-pressed=true]{outline:2px solid #176b5a;background:#e5efdf}#town-count{font-size:10px;color:#56675d;margin:8px 0}#town-results{display:flex;flex-direction:column;gap:4px;font-size:11px}#town-results button{text-align:left;font-size:11px;padding:9px}.town-sources{font-size:10px;line-height:1.8}.town-sources summary{cursor:pointer;color:#176b5a}.town-popup h3{margin:7px 0;font-size:17px}.town-popup strong{font-size:12px}.town-popup p{font-size:11px;line-height:1.7;margin:9px 0}.town-popup a{font-size:11px}.map-tools{display:flex;flex-wrap:wrap;gap:5px;max-width:75%}.map-tools button{font-size:10px;padding:8px}.leaflet-popup-content{max-height:330px;overflow:auto}.map-note{font-size:10px}aside>p.muted{margin:0 24px 10px;font-size:11px}@media(max-width:760px){#town-panel{margin:0 20px 20px}.map-note{max-width:75%;bottom:8px;font-size:9px}.map-tools{bottom:50px}#town-legend{grid-template-columns:repeat(4,minmax(0,1fr))}.leaflet-popup-content{max-height:245px}aside{overflow:visible}}
#region-panel,#medical-filters{margin:0 20px 18px}#region-panel label,#medical-filters label{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:600}#region-panel select,#medical-filters select{font:inherit;width:100%;padding:10px;border:1px solid #cbd8ce;border-radius:7px;background:white;color:#203b34}#region-panel p,#medical-filters p{font-size:10px;line-height:1.7;color:#64746c;margin:7px 0}#region-panel select{font-size:15px;background:#f3f7f0}#town-legend{max-height:190px;overflow:auto}#town-legend button{white-space:normal;min-height:29px}#town-fit{font-size:10px;padding:7px;margin-bottom:8px}.hospital-pin{border-radius:5px!important;border:3px solid #203b34!important}.hospital-icon{border-radius:4px;border:2px solid #203b34}.map-label{max-width:55%}.map-label small{white-space:nowrap}.town-sources a{overflow-wrap:anywhere}@media(max-width:760px){#town-legend{max-height:160px}.map-label{max-width:55%}}

#region-panel fieldset{border:0;padding:0;margin:0}#region-panel legend{font-size:12px;font-weight:600;margin-bottom:8px}#region-choices{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}#region-panel #region-choices label{flex-direction:row;align-items:center;padding:9px 5px;border:1px solid #d5dfd6;border-radius:7px;background:#f3f7f0;cursor:pointer;gap:5px}#region-choices input{accent-color:#326d5b}.region-actions{display:flex;gap:8px;margin-top:8px}.region-actions button{padding:7px 10px;font-size:11px}.town-source-links a{display:block;margin:5px 0}#town-fit{font-size:11px}

#supermarket-filters{margin:16px 0;padding:15px;border:1px solid #e1d5c2;background:#fcf8f0;border-radius:12px}#supermarket-filters h2{font-size:15px;margin:0 0 12px}#supermarket-filters label{display:block;font-size:12px;margin:10px 0}#supermarket-filters select{display:block;width:100%;margin-top:5px;padding:9px;border:1px solid #d8d4c9;border-radius:7px;background:white;color:#253f35}#supermarket-filters p{font-size:11px;color:#6a6f66;line-height:1.7}#supermarket-filters button{padding:8px;margin:4px 2px;border:1px solid #c6b28e;border-radius:6px;background:#fff;cursor:pointer}

#drugstore-filters {
  margin: 0 18px 16px;
  padding: 14px;
  border: 1px solid #cdd9e6;
  border-radius: 12px;
  background: #f2f6fb;
}
.drugstore-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: baseline;
  justify-content: space-between;
}
.drugstore-heading h2 { margin: 0; font-size: 15px; }
#drugstore-coverage { color: #465b73; font-size: 11px; }
#drugstore-show-all {
  width: 100%;
  margin: 10px 0 8px;
  padding: 9px;
  background: #fff;
  border: 1px solid #a2b6cd;
  border-radius: 7px;
  color: #2e5079;
  font-size: 12px;
}
#drugstore-filters summary {
  cursor: pointer;
  padding: 6px 0;
  font-size: 12px;
  color: #2e5079;
}
#drugstore-filters label {
  display: block;
  margin: 10px 0 4px;
  font-size: 12px;
}
#drugstore-filters select {
  width: 100%;
  padding: 8px;
  border: 1px solid #c8d5e3;
  border-radius: 7px;
  background: #fff;
  color: #253f35;
  font: inherit;
  font-size: 12px;
}
