/* Shared, scoped town navigation and explicit local saving. */
.town-page { margin: 0; color: #193c46; background: #f5f7f5; font: 16px/1.8 system-ui, -apple-system, "Noto Sans JP", sans-serif; }
.town-page * { box-sizing: border-box; }
.town-page [hidden] { display: none !important; }
.town-page a { color: #09685e; text-underline-offset: 4px; }
.town-page h1, .town-page h2, .town-page h3 { line-height: 1.5; color: #173d44; }
.town-page h1 { font-size: clamp(1.8rem, 4vw, 2.7rem); letter-spacing: .02em; margin: 6px 0 12px; }
.town-page h2 { font-size: 1.25rem; margin: 28px 0 14px; }
.town-page h3 { font-size: 1.15rem; margin: 6px 0 10px; }
.town-page p { margin: 10px 0; }
.town-header { max-width: 1200px; margin: auto; padding: 24px 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.town-brand { display: inline-flex; align-items: center; gap: 10px; color: #1460b4 !important; text-decoration: none; font-size: 25px; font-weight: 800; }
.town-header nav { display: flex; gap: 8px 20px; flex-wrap: wrap; }
.town-header nav a { padding: 8px 0; text-decoration: none; font-size: .9rem; font-weight: 600; }
.town-main { max-width: 1160px; margin: 8px auto 64px; padding: 12px 28px; }
.town-intro { border-top: 3px solid #14756c; padding-top: 28px; }
.town-lead { max-width: 780px; font-size: 1.1rem; }
.town-eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .06em; color: #557269; margin: 0 !important; }
.town-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 24px 0; }
.town-card { display: flex; flex-direction: column; min-width: 0; padding: 24px; background: #fff; border: 1px solid #d8e2dc; border-radius: 18px; box-shadow: 0 3px 12px #183e2b05; overflow-wrap: anywhere; }
.town-card h3 a, .town-gateway h2 a { color: #173d44; text-decoration: none; }
.town-card h3 a:hover, .town-gateway h2 a:hover { color: #09685e; text-decoration: underline; }
.town-card .mc-actions { margin-top: auto; padding-top: 16px; border-top: 1px solid #edf1ee; gap: 8px; }
.town-card .mc-actions a { font-size: .88rem; }
.town-gateway { padding: 32px 24px; border-top: 4px solid #82a59c; }
.town-gateway h2 { font-size: 1.9rem; margin: 14px 0 8px; }
.town-count strong { font-size: 1.7rem; letter-spacing: .02em; }
.town-address { color: #536e76; font-size: .86rem; }
.town-description { font-size: .93rem; line-height: 1.9; }
.town-note { color: #566d73; font-size: .8rem; }
.town-card .town-note { margin: 16px 0; }
.town-panel { padding: 24px 28px; background: #eaf1ec; border-radius: 18px; margin: 32px 0; }
.town-panel h2 { margin-top: 0; }
.town-button, .mc-actions button, .town-page button { cursor: pointer; font: inherit; line-height: 1.5; border: 1px solid #a4bcb5; border-radius: 9px; min-height: 44px; padding: 10px 15px; color: #135c55; background: #fff; text-decoration: none; }
.town-page .town-button { display: inline-flex; align-items: center; justify-content: center; background: #126c61; border-color: #126c61; color: #fff; font-weight: 650; }
.town-page .town-button.secondary { color: #135c55; background: #fff; border-color: #a4bcb5; }
.mc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 18px 0 8px; }
.mc-actions a { display: inline-flex; align-items: center; min-height: 44px; }
.mc-actions button[aria-pressed="true"] { background: #e0efe9; border-color: #227568; color: #135a50; }
.mc-actions button:hover, .town-page button:hover { box-shadow: 0 0 0 2px #5f9f8b33; }
.town-tabs { display: flex; gap: 12px; border-bottom: 1px solid #bdcfc6; margin: 28px 0; }
.town-tabs a { padding: 12px; text-decoration: none; font-weight: 650; border-bottom: 3px solid transparent; }
.town-tabs a[aria-current] { border-color: #137267; color: #17483f; }
.town-chips { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0; }
.town-chips a { border: 1px solid #bacdc3; border-radius: 24px; min-height: 44px; display: inline-flex; align-items: center; padding: 8px 18px; background: #fff; text-decoration: none; }
.town-chips a[aria-current] { color: #fff; background: #126c61; border-color: #126c61; }
.town-details { border-bottom: 1px solid #d0ddd5; padding: 12px 0; margin: 16px 0; }
.town-details summary { cursor: pointer; min-height: 44px; padding: 8px 0; }
.town-category-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; padding: 0; }
.town-category-list li a { display: flex; align-items: center; gap: 12px; justify-content: space-between; min-height: 52px; padding: 12px 4px; border-bottom: 1px solid #d6e1db; text-decoration: none; }
.town-category-list li span { white-space: nowrap; font-size: .8rem; color: #526e69; }
.town-result-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 24px; }
.town-result-heading h2 { margin-bottom: 0; }
.town-result-heading p { font-size: .9rem; }
.town-pagination { display: flex; justify-content: center; align-items: center; gap: 20px; margin: 32px 0; }
.town-notice { border-left: 3px solid #af9251; background: #faf4e7; padding: 14px 18px; font-size: .9rem; }
.town-selected { padding: 10px 0; }
.town-selected a { margin-left: 14px; }
.town-search { margin: 28px 0; max-width: 600px; }
.town-search label { font-weight: 600; }
.town-search > div { display: flex; gap: 10px; margin-top: 8px; }
.town-search input { min-width: 0; flex: 1; font: inherit; color: #173d44; background: #fff; padding: 12px; border: 1px solid #9cb8ac; border-radius: 9px; }
.town-footer { max-width: 1104px; margin: auto; display: flex; flex-wrap: wrap; gap: 10px 28px; padding: 26px 28px 42px; border-top: 1px solid #bdcfc6; }
.town-footer a { min-height: 44px; padding: 8px 0; font-size: .87rem; }
.town-skip { position: absolute; left: 10px; top: -80px; background: #fff; padding: 10px; z-index: 100; }
.town-skip:focus { top: 10px; }
.town-page :focus-visible, .mc-actions :focus-visible { outline: 3px solid #d7a34b; outline-offset: 4px; }
.mc-visit-status { position: fixed; bottom: 84px; left: 50%; transform: translateX(-50%); max-width: min(90vw, 560px); z-index: 10000; border-radius: 10px; background: #173e38; color: #fff; font: 14px/1.6 system-ui, sans-serif; padding: 12px 18px; box-shadow: 0 4px 20px #0002; }
.mc-visit-status:empty { display: none; }
.mc-share-fallback { display: block; width: 100%; padding: 8px; font: 14px system-ui; }
#mindcity-market .mc-profile-actions { padding: 8px 0 12px; margin: 0; border-bottom: 1px solid #dfe6df; }
#mindcity-market .mc-profile-actions > a { padding: 10px 15px; border-radius: 9px; border: 1px solid #a4bcb5; color: #135c55; background: #fff; text-decoration: none; }
#mindcity-market .mc-profile-actions .mc-official { background: #126c61; color: #fff; border-color: #126c61; }
#mindcity-market .mc-search-actions { margin: 0 0 14px; padding: 8px 12px; border-radius: 12px; background: #ffffffed; }
#mindcity-market .mc-search-actions a { color: #135c55; font-size: .88rem; }
#mindcity-market .mc-search-actions button { font-size: .85rem; }
#mindcity-market .market-filters select:focus-visible, #mindcity-market .filter-toggle:focus-visible { outline: 3px solid #d7a34b; outline-offset: 3px; }
@media (max-width: 900px) {
  .town-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .town-header { align-items: flex-start; }
  .town-header nav { justify-content: flex-end; gap: 2px 16px; }
}
@media (max-width: 600px) {
  .town-header { padding: 18px 18px 8px; flex-direction: column; gap: 8px; }
  .town-header nav { justify-content: flex-start; gap: 4px 16px; }
  .town-header nav a { font-size: .82rem; min-height: 44px; display: flex; align-items: center; }
  .town-main { padding: 0 18px; margin-top: 8px; }
  .town-intro { padding-top: 22px; }
  .town-intro .town-eyebrow { display: none; }
  .town-tabs { margin: 18px 0; }
  .town-page h2 { margin-top: 22px; }
  .town-grid, .town-category-list { grid-template-columns: minmax(0, 1fr); }
  .town-grid { gap: 16px; margin: 18px 0; }
  .town-card, .town-panel { padding: 22px; }
  .town-result-heading { display: block; }
  .town-pagination { gap: 12px; font-size: .85rem; }
  .town-tabs { gap: 4px; font-size: .9rem; }
  .town-chips { gap: 8px; }
  .town-chips a { font-size: .85rem; padding: 8px 14px; }
  #mindcity-market .mc-profile-actions { gap: 8px; }
  #mindcity-market .mc-profile-actions button, #mindcity-market .mc-profile-actions a { font-size: .86rem; padding: 10px 12px; }
}
