:root {
  --ink: #282725;
  --muted: #6d6b66;
  --line: #dedbd5;
  --paper: #f8f7f4;
  --accent: #b4482b;
  --focus: #785642;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font: 14px/1.65 -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-underline-offset: 3px; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, .table-scroll:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
button:disabled { cursor: default; color: #99958e; background: #efede9; border-color: #dedbd5; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.45; }
h2 { margin-bottom: 18px; font-size: 20px; font-weight: 650; }
small { font-size: 12px; }
.header {
  width: min(1240px, calc(100% - 64px));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}
.logo { text-decoration: none; font-size: 21px; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
.logo .beta, .beta { margin-left: 7px; color: var(--muted); font-size: 12px; font-weight: 400; vertical-align: middle; }
.header nav { display: flex; gap: 24px; align-items: center; }
.header-action {
  padding: 6px 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 13px;
}
.header-action:hover { color: var(--ink); text-decoration: underline; }
.header-action.active { color: var(--accent); }
.count-badge { min-width: 18px; padding: 0 3px; color: var(--ink); font-size: 12px; font-variant-numeric: tabular-nums; }
main { width: min(1240px, calc(100% - 64px)); margin: 0 auto; }
.directory-header {
  padding: 32px 0 25px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.directory-header h1 { margin: 0 0 7px; font-size: 27px; font-weight: 650; letter-spacing: -.025em; }
.directory-header p { margin: 0; max-width: 700px; color: var(--muted); font-size: 14px; }
.dataset-note { color: var(--muted); font-size: 12px; line-height: 1.75; text-align: right; white-space: pre-line; flex-shrink: 0; }
.workspace { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 30px; align-items: start; }
.search-panel { position: sticky; top: 20px; max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); overflow-y: auto; padding: 18px; border: 1px solid var(--line); background: var(--paper); border-radius: 2px; min-width: 0; }
.search-panel h2 { margin: 0 0 14px; font-size: 16px; font-weight: 650; }
.search-panel > .reset-button { margin-top: 16px; }
.sidebar-note { margin: 16px 0 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.search-top { display: flex; flex-direction: column; gap: 10px; }
.search-input { display: flex; flex-direction: column; align-items: stretch; gap: 5px; padding: 0; border: 0; background: none; }
.search-input > span { color: var(--muted); font-size: 12px; }
.search-input svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--muted); }
.search-input input { width: 100%; min-width: 0; height: 39px; padding: 8px 9px; border: 1px solid #c9c5bd; border-radius: 2px; background: #fff; font-size: 14px; }
.search-input:focus-within { outline: none; }
.search-input input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.search-input input::placeholder { color: #8a877f; }
.wish-button {
  min-height: 40px;
  padding: 8px 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border: 1px solid #bbb6ac;
  background: #fff;
  border-radius: 2px;
  font-size: 13px;
  color: var(--ink);
}
.wish-button:hover, .secondary-button:hover { background: #f0eeea; }
.search-panel > .wish-button { width: 100%; margin-top: 10px; }
.wish-count { color: var(--accent); font-weight: 650; font-variant-numeric: tabular-nums; }
.search-instruction { margin: 0; color: var(--muted); font-size: 12px; }
.search-top .wish-button { border-color: var(--accent); color: var(--accent); font-weight: 600; }
.combination-examples { margin: 17px 0; color: var(--muted); font-size: 12px; }
.combination-examples summary { cursor: pointer; }
#combinationExamples { display: flex; flex-direction: column; gap: 9px; margin-top: 12px; }
#combinationExamples button { padding: 0; border: 0; background: none; text-align: left; color: var(--ink); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.result-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 14px; }
.result-scope { color: var(--muted); font-size: 12px; margin: -3px 0 14px; }
footer nav { display: flex; gap: 14px; }
.quick-shops { display: flex; flex-wrap: wrap; gap: 6px; margin: 19px 0 21px; }
.quick-shops > span { width: 100%; margin-bottom: 2px; color: var(--muted); font-size: 12px; }
.quick-shops button { border: 1px solid #d0ccc3; background: #fff; color: var(--ink); padding: 5px 8px; border-radius: 2px; font-size: 12px; }
.quick-shops button.active { color: var(--accent); border-color: var(--accent); font-weight: 600; }
.filter-row { display: flex; flex-direction: column; gap: 15px; }
.district-filter, .prefecture-filter, .operator-filter, .type-filter { display: flex; flex-direction: column; gap: 5px; color: var(--muted); font-size: 12px; }
.filter-row label > span { font-size: 12px; }
.filter-row select, .comparison-controls > select, .match-mode select {
  min-width: 0;
  width: 100%;
  min-height: 37px;
  border: 1px solid #c9c5bd;
  border-radius: 2px;
  padding: 7px 26px 7px 9px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
}
.reset-button { padding: 0; border: 0; background: none; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; font-size: 12px; }
.reset-button:hover { color: var(--ink); }
.filter-row > .reset-button { align-self: flex-end; margin-top: 2px; }
.active-wishes { margin-top: 17px; padding-top: 17px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.wish-chip { border: 1px solid #d5c5bb; background: #fff; color: var(--accent); padding: 4px 7px; border-radius: 2px; font-size: 12px; text-align: left; overflow-wrap: anywhere; }
.wish-chip span { margin-left: 8px; }
.match-mode { width: 100%; margin-top: 9px; display: flex; flex-direction: column; gap: 5px; color: var(--muted); font-size: 12px; }
.match-mode select { font-size: 12px; }
.result-panel { min-width: 0; }
.results-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 0 0 13px; }
.results-meta p { margin: 0; color: var(--muted); font-size: 12px; }
.results-meta p:first-child { color: var(--ink); font-size: 14px; }
.results-meta strong { margin-right: 4px; font-weight: 650; font-variant-numeric: tabular-nums; }
.facility-grid { display: flex; flex-direction: column; min-width: 0; border-bottom: 1px solid var(--line); }
.facility-list-heading, .facility-row { display: grid; grid-template-columns: 32px minmax(200px, 1fr) minmax(230px, 1.4fr) auto; gap: 15px; align-items: start; }
.facility-list-heading { padding: 10px 12px; background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.facility-row { padding: 20px 12px 20px 9px; border-top: 1px solid var(--line); border-left: 3px solid transparent; background: #fff; }
.facility-row:first-child { border-top: 0; }
.facility-row.selected { border-left-color: var(--accent); background: #fdfaf8; }
.facility-row:hover { background: #faf9f6; }
.facility-row.selected:hover { background: #fcf7f3; }
.row-select { display: flex; justify-content: center; align-items: center; padding-top: 5px; min-height: 24px; }
.row-select input, input[type="checkbox"] { accent-color: var(--accent); width: 16px; height: 16px; margin: 0; flex-shrink: 0; }
.row-select label { cursor: pointer; }
.row-main, .row-shops { min-width: 0; }
.row-main h3 { margin: 0 0 5px; font-size: 16px; font-weight: 650; overflow-wrap: anywhere; }
.row-main h3 button { padding: 0; border: 0; background: none; color: var(--ink); font: inherit; line-height: inherit; text-align: left; overflow-wrap: anywhere; }
.row-main h3 button:hover { text-decoration: underline; text-underline-offset: 3px; }
.row-location, .row-kind { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.75; }
.row-kind { display: flex; flex-wrap: wrap; gap: 3px 9px; margin-top: 3px; }
.row-detail-button { border: 0; background: none; padding: 0; margin-top: 7px; color: var(--muted); font-size: 12px; text-align: left; text-decoration: underline; text-underline-offset: 3px; }
.row-detail-button:hover { color: var(--ink); }
.row-shops { display: flex; flex-wrap: wrap; align-content: start; gap: 5px 10px; padding-top: 2px; }
.row-shops .shop-tags { margin: 0; }
.shop-tags { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 11px; }
.shop-tag { max-width: 100%; padding: 0; background: none; border: 0; color: #595750; font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.shop-tag.wanted { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.row-shops .shop-tag:not(:last-child)::after { content: " /"; margin-left: 8px; color: #bab5ad; font-weight: 400; text-decoration: none; }
.row-shops small, .row-shops p { color: var(--muted); font-size: 12px; }
.row-shops p { width: 100%; margin: 5px 0 0; }
.row-shop-meta { width: 100%; display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 12px; margin-top: 4px; }
.row-shop-meta .row-detail-button { margin-top: 0; }
.row-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; min-width: 73px; }
.row-actions a { color: var(--muted); font-size: 12px; white-space: nowrap; }
.row-actions a:hover { color: var(--ink); }
.save-button { border: 0; background: none; color: #77736c; padding: 0; font-size: 12px; line-height: 1.5; min-height: 28px; text-decoration: underline; text-underline-offset: 3px; }
.save-button.saved { color: var(--accent); }
.partial-pill { color: var(--muted); font-size: 12px; border-bottom: 1px dotted #aaa59b; }
.operator-badge { color: var(--muted); font-size: 12px; }
.match-result { font-size: 12px; color: var(--accent); }
.source-link { font-size: 12px; }
.coverage-note { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin: 18px 0 0; font-size: 12px; color: var(--muted); line-height: 1.8; }
.coverage-note button { padding: 0; background: none; border: 0; color: var(--ink); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.info-circle { display: none; }
.coverage-panel { margin: 0 0 12px; padding: 9px 0 12px; border-bottom: 1px solid var(--line); }
.coverage-panel summary { cursor: pointer; font-size: 12px; font-weight: 500; line-height: 1.65; white-space: nowrap; }
.coverage-panel summary > span { margin-left: 8px; color: var(--muted); }
.coverage-panel > p, .coverage-panel details > p { margin: 10px 0 17px; color: var(--muted); font-size: 12px; }
.coverage-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 26px; margin-top: 19px; }
.coverage-district { min-width: 0; }
.coverage-district h3 { margin: 0 0 8px; font-size: 13px; font-weight: 600; }
.coverage-prefectures { display: flex; flex-wrap: wrap; gap: 5px; }
.prefecture-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 29px; border: 1px solid var(--line); border-radius: 0; background: #fff; padding: 3px 6px; color: #5a5751; font-size: 12px; }
.prefecture-chip span { color: #8a847b; font-size: 11px; font-variant-numeric: tabular-nums; }
.prefecture-chip.active { color: var(--accent); border-color: var(--accent); }
.prefecture-chip.active span { color: var(--accent); }
.prefecture-chip.empty { color: #a29c91; }
.comparison { padding: 35px 0 28px; scroll-margin-top: 24px; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.section-title h2 { margin: 0; }
.section-kicker { display: none; }
.comparison-summary { display: flex; flex-wrap: wrap; gap: 14px 30px; margin: 0 0 24px; padding: 0 0 19px; border-bottom: 1px solid var(--line); }
.summary-item { display: flex; align-items: baseline; gap: 9px; }
.summary-item strong { font-size: 20px; line-height: 1.3; font-weight: 650; font-variant-numeric: tabular-nums; }
.summary-item span { color: var(--muted); font-size: 13px; }
.summary-item small { display: block; font-size: 12px; color: #8a847c; }
.comparison-controls { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; margin-bottom: 15px; }
.comparison-controls > select { width: auto; min-width: 165px; max-width: 100%; font-size: 12px; }
.view-filter { display: flex; flex-wrap: wrap; gap: 3px; }
.view-filter button { padding: 7px 10px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: none; color: var(--muted); font-size: 13px; }
.view-filter button.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.table-scroll { width: 100%; overflow: auto; border: 1px solid var(--line); }
.table-scroll table { width: 100%; min-width: 660px; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.table-scroll th, .table-scroll td { padding: 13px 18px; border-right: 1px solid #eeeae3; border-bottom: 1px solid var(--line); text-align: center; font-size: 14px; vertical-align: middle; }
.table-scroll tr > :last-child { border-right: 0; }
.table-scroll tbody tr:last-child > * { border-bottom: 0; }
.table-scroll thead th { background: var(--paper); font-size: 13px; font-weight: 600; text-align: center; }
.table-scroll th:first-child { width: 29%; text-align: left; position: sticky; left: 0; z-index: 1; background: #fff; border-right: 1px solid var(--line); }
.table-scroll thead th:first-child { background: var(--paper); }
.table-scroll tbody th { font-weight: 500; }
.table-scroll th small { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; font-weight: 400; }
.table-scroll th a { text-decoration: none; }
.table-scroll th a:hover { text-decoration: underline; }
.table-scroll tbody tr:hover > * { background: #faf9f6; }
.present { color: var(--ink); font-size: 14px; font-weight: 550; }
.absent { color: #817b72; font-size: 12px; }
.unknown { color: #81796e; font-size: 12px; }
.table-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 13px 0 7px; font-size: 12px; color: var(--muted); }
.table-legend .absent, .table-legend .unknown { margin-left: 13px; }
.table-legend .present, .table-legend .absent { font-size: 12px; }
.table-note { margin: 0; color: var(--muted); font-size: 12px; }
.no-rows { padding: 28px 20px !important; color: var(--muted); text-align: center !important; font-size: 13px !important; }
.empty-state { padding: 45px 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); text-align: center; }
.empty-state > span { display: none; }
.empty-state h3 { margin: 0 0 8px; font-size: 17px; font-weight: 600; }
.empty-state p { margin: 0 0 18px; color: var(--muted); font-size: 13px; }
.primary-button { display: inline-flex; justify-content: center; align-items: center; gap: 10px; padding: 9px 17px; min-height: 39px; border: 1px solid var(--ink); border-radius: 2px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 550; text-decoration: none; }
.primary-button:hover:not(:disabled) { background: #44413a; border-color: #44413a; }
.secondary-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 12px; min-height: 37px; border: 1px solid #c7c1b7; border-radius: 2px; background: #fff; color: var(--ink); font-size: 12px; text-decoration: none; }
.compare-dock { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); width: min(1180px, calc(100% - 48px)); border: 1px solid #a9a298; border-radius: 3px; background: #fff; z-index: 20; }
.dock-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 13px 17px; }
.dock-selection { display: flex; align-items: center; gap: 17px; min-width: 0; flex: 1; }
.dock-label { color: var(--muted); font-size: 12px; white-space: nowrap; }
.dock-label b { margin: 0 3px 0 6px; color: var(--ink); font-weight: 600; }
#dockNames { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; min-width: 0; }
.dock-chip { max-width: 205px; padding: 4px 7px; border: 1px solid var(--line); border-radius: 2px; background: #fff; color: var(--ink); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock-chip span { margin-left: 9px; color: var(--muted); }
.dock-actions { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
dialog { width: min(640px, calc(100% - 36px)); max-height: 86vh; padding: 26px; border: 1px solid #bcb5aa; border-radius: 3px; background: #fff; color: var(--ink); overflow: auto; }
dialog::backdrop { background: rgba(27, 25, 22, .34); }
body:has(dialog[open]) { overflow: hidden; }
.dialog-heading { display: flex; justify-content: space-between; align-items: start; gap: 17px; margin-bottom: 11px; }
.dialog-heading h2 { margin: 0; font-size: 21px; font-weight: 650; }
.icon-button { width: 30px; height: 30px; flex-shrink: 0; border: 0; background: none; color: var(--muted); padding: 0; font-size: 24px; line-height: 1; }
.dialog-description { margin: 0 0 18px; color: var(--muted); font-size: 13px; }
.dialog-search input { width: 100%; padding: 10px 11px; border: 1px solid #c9c2b7; border-radius: 2px; background: #fff; font-size: 14px; }
.shop-choices { max-height: 45vh; overflow-y: auto; padding: 18px 0 5px; }
.shop-category { margin-bottom: 22px; }
.shop-category h3 { margin: 0 0 7px; padding-bottom: 5px; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 13px; font-weight: 600; }
.shop-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
.shop-option { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 3px 8px; padding: 7px 0; color: var(--ink); font-size: 13px; cursor: pointer; overflow-wrap: anywhere; }
.shop-option input { margin-top: 3px; }
.shop-option small { color: var(--muted); font-size: 12px; }
.shop-option:has(input:checked) { color: var(--accent); font-weight: 600; }
.dialog-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 11px; padding-top: 18px; border-top: 1px solid var(--line); }
.dialog-bottom .primary-button > span { font-variant-numeric: tabular-nums; font-weight: 400; }
.about-content { font-size: 14px; line-height: 1.9; color: #58554e; }
.about-content h3 { margin: 23px 0 9px; color: var(--ink); font-size: 15px; font-weight: 600; }
.about-content dl { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 8px 16px; margin: 20px 0; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 13px; }
.about-content dt { color: var(--muted); }
.about-content dd { margin: 0; }
.source-list { display: flex; flex-direction: column; gap: 13px; }
.source-list a { font-size: 13px; }
.source-list small { display: block; color: var(--muted); font-size: 12px; }
.privacy-note { margin: 24px 0 0; padding-top: 17px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.detail-location { margin: 0 0 23px; color: var(--muted); font-size: 13px; }
.detail-category { margin: 0 0 20px; }
.detail-category h3 { margin: 0 0 7px; color: var(--ink); font-size: 13px; font-weight: 600; }
.detail-category .shop-tag { font-size: 14px; }
.detail-note { margin: 23px 0 0; color: var(--muted); font-size: 12px; line-height: 1.9; }
.detail-links { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 24px; }
.toast { position: fixed; left: 50%; bottom: 102px; transform: translateX(-50%); z-index: 100; max-width: calc(100% - 32px); padding: 10px 16px; border: 1px solid #514a40; border-radius: 2px; background: var(--ink); color: #fff; font-size: 13px; text-align: center; }
footer { width: min(1240px, calc(100% - 64px)); margin: 32px auto 0; padding: 22px 0 115px; border-top: 1px solid var(--line); display: flex; align-items: baseline; gap: 20px; color: var(--muted); font-size: 12px; }
.footer-logo { color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.footer-logo span { margin-left: 5px; color: var(--muted); font-size: 12px; font-weight: 400; }
footer p { margin: 0; font-size: 12px; }
footer > span { margin-left: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 1000px) {
  .header, main, footer { width: calc(100% - 44px); }
  .workspace { grid-template-columns: 225px minmax(0, 1fr); gap: 22px; }
  .search-panel { padding: 15px; }
  .facility-list-heading, .facility-row { grid-template-columns: 28px minmax(145px, 1fr) minmax(155px, 1.15fr) 66px; gap: 11px; }
  .row-main h3 { font-size: 15px; }
  .row-actions { min-width: 0; }
  .row-actions a { font-size: 12px; }
  .results-meta { flex-wrap: wrap; gap: 4px; }
  .dock-selection { display: block; }
  .dock-label { display: block; margin-bottom: 5px; }
}
@media (max-width: 760px) {
  .header, main, footer { width: calc(100% - 32px); }
  .header { min-height: 64px; gap: 15px; }
  .logo { font-size: 19px; }
  .header nav { gap: 12px; }
  .header-action { font-size: 12px; }
  .about-action { display: none; }
  .directory-header { padding: 25px 0 20px; display: block; }
  .directory-header h1 { font-size: 23px; margin-bottom: 7px; }
  .directory-header p { font-size: 13px; line-height: 1.75; }
  .dataset-note { margin-top: 9px; display: block; text-align: left; font-size: 11px; white-space: normal; }
  .workspace { display: block; }
  .search-panel { position: static; top: auto; max-height: none; overflow: visible; padding: 15px; margin-bottom: 24px; }
  .search-top { display: flex; flex-direction: column; gap: 7px; }
  .search-input { padding: 0; }
  .search-input input { font-size: 14px; }
  .wish-button { min-height: 39px; padding: 7px 9px; font-size: 12px; }
  .quick-shops { margin: 14px 0 16px; gap: 6px; }
  .quick-shops > span { margin: 0 5px 0 0; width: auto; align-self: center; font-size: 12px; }
  .quick-shops button { font-size: 12px; min-height: 31px; }
  .filter-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .filter-row > .search-input { grid-column: 1 / -1; }
  .filter-row select { font-size: 13px; min-height: 38px; padding-left: 8px; padding-right: 20px; }
  .filter-row > .reset-button { grid-column: 1 / -1; justify-self: end; }
  .active-wishes { margin-top: 15px; padding-top: 15px; }
  .match-mode { flex-direction: row; align-items: center; gap: 9px; }
  .match-mode select { width: auto; flex: 1; max-width: 220px; }
  .results-meta { margin-bottom: 0; padding-bottom: 11px; gap: 4px 12px; }
  .results-meta p { font-size: 11px; }
  .results-meta p:first-child { font-size: 14px; }
  .facility-list-heading { display: none; }
  .facility-grid { border-top: 1px solid var(--line); }
  .facility-row { grid-template-columns: 28px minmax(0, 1fr); gap: 8px 11px; padding: 17px 5px 17px 3px; }
  .row-select { grid-column: 1; grid-row: 1; }
  .row-main { grid-column: 2; grid-row: 1; }
  .row-main h3 { margin-bottom: 4px; font-size: 16px; }
  .row-location, .row-kind { font-size: 12px; }
  .row-shops { grid-column: 2; grid-row: 2; padding-top: 2px; }
  .row-actions { grid-column: 2; grid-row: 3; flex-direction: row; justify-content: flex-start; align-items: center; gap: 18px; margin-top: 1px; }
  .save-button { font-size: 12px; min-height: 29px; }
  .row-detail-button { font-size: 12px; }
  .shop-tag { font-size: 12px; }
  .coverage-note { font-size: 11px; line-height: 1.85; }
  .coverage-note button { font-size: 12px; }
  .coverage-panel { margin: 0 0 12px; padding: 0 0 12px; }
  .coverage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
  .coverage-district h3 { font-size: 13px; }
  .prefecture-chip { font-size: 12px; min-height: 31px; }
  .section-title { gap: 12px; align-items: start; }
  .section-title h2 { font-size: 19px; }
  .comparison { padding: 28px 0 22px; }
  .comparison-summary { gap: 13px 20px; padding-bottom: 16px; margin-bottom: 17px; }
  .summary-item { gap: 7px; }
  .summary-item strong { font-size: 18px; }
  .summary-item span { font-size: 12px; }
  .summary-item small { font-size: 11px; }
  .comparison-controls { gap: 12px; }
  .view-filter { gap: 1px; }
  .view-filter button { font-size: 12px; padding: 6px 7px; }
  .comparison-controls > select { min-height: 35px; font-size: 12px; margin-left: auto; }
  .table-scroll table { min-width: 610px; }
  .table-scroll th, .table-scroll td { padding: 12px; font-size: 13px; }
  .table-scroll thead th { font-size: 12px; }
  .table-scroll th small { font-size: 11px; }
  .table-legend, .table-note { font-size: 11px; }
  .compare-dock { bottom: 9px; width: calc(100% - 20px); }
  .dock-inner { display: block; padding: 11px 12px; }
  .dock-selection { display: flex; gap: 10px; align-items: center; }
  .dock-label { margin: 0; font-size: 11px; }
  #dockNames { flex: 1; flex-wrap: nowrap; overflow-x: auto; }
  .dock-chip { flex-shrink: 0; max-width: 170px; font-size: 11px; padding: 3px 6px; }
  .dock-actions { justify-content: space-between; margin-top: 10px; gap: 15px; }
  .dock-actions .primary-button { min-height: 37px; flex: 1; max-width: 220px; font-size: 12px; }
  .toast { bottom: 122px; font-size: 12px; width: max-content; max-width: calc(100% - 28px); }
  dialog { padding: 21px 19px; width: calc(100% - 28px); max-height: 88vh; }
  .dialog-heading h2 { font-size: 20px; }
  .shop-options { grid-template-columns: 1fr; }
  .shop-option { font-size: 14px; }
  .shop-option small { font-size: 12px; }
  .shop-choices { max-height: 44vh; }
  .dialog-bottom { gap: 12px; padding-top: 16px; }
  .dialog-bottom .primary-button { font-size: 13px; }
  .about-content { font-size: 13px; }
  .about-content dl { grid-template-columns: 70px minmax(0, 1fr); gap: 7px 12px; font-size: 12px; }
  .detail-location { font-size: 13px; }
  .detail-category .shop-tag { font-size: 13px; }
  .detail-note { font-size: 12px; }
  .empty-state { padding: 30px 16px; }
  .empty-state h3 { font-size: 16px; }
  .empty-state p { font-size: 12px; }
  footer { margin-top: 25px; padding: 20px 0 145px; flex-wrap: wrap; gap: 8px 18px; font-size: 11px; }
  footer p { display: none; }
  footer > span { font-size: 11px; margin-left: 0; }
}
@media (max-width: 430px) {
  .search-top { grid-template-columns: 1fr; }
  .wish-button { justify-content: flex-start; }
  .quick-shops > span { width: 100%; }
  .header-action { gap: 4px; font-size: 12px; }
  .count-badge { padding: 0; }
  .directory-header h1 { font-size: 22px; }
  .coverage-grid { gap: 18px 12px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.nav-label-short{display:none}.advanced-filters{margin-top:0;padding-top:8px;border-top:1px solid var(--line)}.advanced-filters summary{cursor:pointer;font-size:12px;color:var(--muted);padding:5px 0}.advanced-filters summary span{color:var(--accent);margin-left:5px}.advanced-fields{display:flex;flex-direction:column;gap:15px;padding-top:12px}.detail-operator{font-size:12px;color:var(--muted);margin-bottom:5px}.shop-tag{font-size:13px}.table-scroll th.wanted{color:var(--accent)}
@media(max-width:760px){.nav-label-full{display:none}.nav-label-short{display:inline}.header nav{gap:14px}.header-action{white-space:nowrap}.advanced-filters{grid-column:1 / -1}.advanced-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.sidebar-note{margin-top:12px;padding-top:12px}.shop-tag{font-size:13px}}
