/* Brand list pages of the design renewal (#96: /brand; #97: prefecture, base and vendor lists; reused by the search list and the rankings, #100: also the vendor list).
   Page composition follows docs/design/system/examples/pages.css; shared controls live in /css/umeshu/umeshu.css. */
.brand-list-page { padding-block: 28px 76px; }
.brand-list-heading { margin-block: 38px 30px; }
.brand-list-heading p { margin-top: 16px; }
.brand-list-results { margin-top: 40px; }
.brand-list-results-title { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 30px; }
.brand-list-results-title h2 { font-size: 24px; }
.brand-list-pagination { margin-top: 40px; }
/* #97: a way back to the other prefectures / bases on the top page, and the vendor's own details above its list. */
.brand-list-more { margin-top: 12px; font-size: var(--ume-text-sm); }
.brand-list-vendor-name { overflow-wrap: anywhere; }
.brand-list-vendor-info { max-width: 640px; margin-top: 24px; }
.brand-list-empty p { word-break: auto-phrase; }
/* Prefecture hero: a large silhouette on a quiet tinted surface; other list headings stay unchanged. */
.brand-prefecture-hero { padding: 0 18px 20px; margin-bottom: 0; border-bottom: 1px solid var(--ume-color-link); }
.brand-list-heading--shape { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); column-gap: 40px; align-items: center; min-height: 280px; }
.brand-prefecture-hero-copy { min-width: 0; }
.brand-prefecture-hero .brand-prefecture-eyebrow { margin: 0 0 14px; font-size: var(--ume-text-lg); font-weight: var(--ume-weight-bold); color: var(--ume-color-link); }
.brand-prefecture-hero .brand-list-more { margin-top: 22px; font-size: var(--ume-text-base); }
.brand-prefecture-art { display: flex; align-items: center; justify-content: flex-start; gap: 22px; min-width: 0; }
/* Narrow silhouettes leave more room inside the frame; bring their leaders closer. */
.brand-prefecture-art--balanced { --prefecture-label-offset: -24px; --prefecture-small-label-offset: -8px; }
.brand-prefecture-art--narrow { --prefecture-label-offset: -54px; --prefecture-small-label-offset: -14px; }
.brand-prefecture-art--slender { --prefecture-label-offset: -64px; --prefecture-small-label-offset: -18px; }
.brand-prefecture-art--niigata { --prefecture-label-offset: -24px; --prefecture-small-label-offset: -8px; }
.brand-prefecture-art--wakayama { --prefecture-label-offset: -44px; --prefecture-small-label-offset: -12px; }
.brand-prefecture-art--okinawa { --prefecture-label-offset: -54px; --prefecture-small-label-offset: -18px; }
.brand-prefecture-art--tokyo, .brand-prefecture-art--hokkaido, .brand-prefecture-art--niigata,
.brand-prefecture-art--wakayama, .brand-prefecture-art--okinawa { --prefecture-tablet-label-y: -62px; }
.brand-prefecture-map { position: relative; display: grid; place-items: center; width: 320px; height: 260px; flex: 0 1 320px; }
.brand-prefecture-map::before { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: var(--ume-color-soft); }
.brand-list-prefecture-shape { position: relative; width: 85%; height: 220px; object-fit: contain; }
.brand-prefecture-label { position: relative; flex: none; white-space: nowrap; margin-left: var(--prefecture-label-offset, 12px); transform: translateY(-56px); color: var(--ume-color-link); font-size: 18px; letter-spacing: .2em; }
/* A fine horizontal leader bends down toward the eastern edge of the map. */
.brand-prefecture-label::before, .brand-prefecture-label::after { content: ""; position: absolute; top: calc(100% + 3px); border-top: 1px solid currentColor; }
.brand-prefecture-label::before { left: -18px; width: 54px; }
.brand-prefecture-label::after { right: calc(100% + 18px); width: 42px; transform: rotate(-40deg); transform-origin: right center; }
.brand-list-shape-credit { margin-top: 10px; padding-inline: 14px; font-size: var(--ume-text-xs); line-height: 1.8; color: var(--ume-color-muted); }
.brand-list-shape-credit a { color: inherit; text-decoration: underline; }

/* Entries with a photo: ume-entry-list rows plus a fixed thumbnail column. */
.brand-list-item { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 24px; align-items: start; }
.brand-list-photo { display: flex; align-items: center; justify-content: center; width: 112px; height: 112px; overflow: hidden; background: var(--ume-color-photo); border-radius: var(--ume-radius-control); }
.brand-list-photo img { width: 100%; height: 100%; object-fit: contain; }
.brand-list-no-photo { font-size: var(--ume-text-xs); color: var(--ume-color-muted); }
.brand-list-body { min-width: 0; }
.brand-list-title { display: inline-block; max-width: 100%; overflow-wrap: anywhere; }
.brand-list-tags { overflow-wrap: anywhere; }
.brand-list-tags span { color: var(--ume-color-muted); }
.brand-list-counts { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 8px; font-size: var(--ume-text-xs); color: var(--ume-color-muted); }
.brand-list-count-value { margin-inline: 2px; color: var(--ume-color-text); }
.brand-list-count--sorted, .brand-list-count--sorted .brand-list-count-value { color: var(--ume-color-text); font-weight: var(--ume-weight-bold); }

@media (max-width: 900px) {
  .brand-list-heading--shape { grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); column-gap: 24px; }
  .brand-prefecture-art { flex-direction: column; gap: 8px; }
  .brand-prefecture-map { width: 240px; max-width: 100%; height: 200px; flex: none; }
  .brand-prefecture-map::before { width: 200px; height: 200px; }
  .brand-list-prefecture-shape { height: 180px; }
  .brand-prefecture-label { align-self: flex-end; margin-left: 0; transform: translateY(var(--prefecture-tablet-label-y, -8px)); font-size: 14px; }
  .brand-prefecture-label::after { transform: rotate(40deg); }
}

@media (max-width: 600px) {
  .brand-list-page { padding-block: 22px 48px; }
  .brand-list-heading { margin-block: 28px 24px; }
  .brand-list-results { margin-top: 32px; }
  .brand-list-results-title { margin-bottom: 22px; }
  .brand-list-results-title h2 { font-size: 21px; }
  .brand-list-item { grid-template-columns: 76px minmax(0, 1fr); gap: 16px; }
  .brand-list-photo { width: 76px; height: 76px; }
  .brand-list-counts { gap: 2px 14px; font-size: 12px; }
  .brand-list-pagination { margin-top: 32px; }
  .brand-list-vendor-info { margin-top: 18px; }
  .brand-prefecture-hero { padding: 0 0 24px; }
  .brand-list-heading--shape { grid-template-columns: minmax(0, 1fr); row-gap: 24px; }
  .brand-prefecture-hero .brand-prefecture-eyebrow { margin-bottom: 10px; font-size: 14px; }
  .brand-prefecture-hero .brand-list-more { margin-top: 16px; font-size: 14px; }
  .brand-prefecture-art { flex-direction: row; justify-content: center; gap: 16px; }
  .brand-prefecture-map { width: 210px; min-width: 0; height: 164px; flex: 0 1 210px; }
  .brand-prefecture-map::before { width: 164px; height: 164px; }
  .brand-list-prefecture-shape { height: 150px; }
  .brand-prefecture-label { align-self: center; margin-left: var(--prefecture-small-label-offset, 0px); transform: translateY(-32px); font-size: 12px; letter-spacing: .15em; }
  .brand-prefecture-label::before { left: -12px; width: 38px; }
  .brand-prefecture-label::after { right: calc(100% + 12px); width: 22px; transform: rotate(-40deg); }
  .brand-list-shape-credit { padding-inline: 0; font-size: 12px; }
}

/* #98: brand search. The form and kana links sit above the shared result block; values typed by visitors may be long. */
.brand-search-form { max-width: 720px; }
.brand-search-subheading { margin-top: 36px; font-size: var(--ume-text-lg); font-weight: var(--ume-weight-bold); }
.brand-search-kana { margin-top: 8px; }
.brand-search-status { margin-top: 32px; }
.brand-search-current { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; }
.brand-search-current p { min-width: 0; overflow-wrap: anywhere; }
.brand-search-page .brand-list-results-title h2 { min-width: 0; overflow-wrap: anywhere; }
.brand-search-more { margin-top: 64px; padding-top: 8px; border-top: 1px solid var(--ume-color-line); }
.brand-search-more-title { margin-top: 20px; font-size: var(--ume-text-base); font-weight: var(--ume-weight-bold); }

@media (max-width: 600px) {
  .brand-search-subheading { margin-top: 28px; }
  .brand-search-status { margin-top: 24px; }
  .brand-search-more { margin-top: 48px; }
}

/* #100: rankings reuse the list as an ordered list with a position column; the top three get a filled mark. */
.ranking-group { margin-top: 48px; }
.ranking-group-title { margin-bottom: 26px; }
.ranking-group-title h2 { font-size: 24px; word-break: auto-phrase; }
.ranking-group-title h2 + p { margin-top: 6px; }
.brand-list--ranked .brand-list-item { grid-template-columns: 48px 112px minmax(0, 1fr); gap: 20px; }
.brand-list-rank { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-top: 32px;
  border: 1px solid var(--ume-color-line); border-radius: 50%; color: var(--ume-color-link); font-size: 20px; font-weight: var(--ume-weight-bold); line-height: 1; }
.brand-list-rank--top { background: var(--ume-color-primary); border-color: var(--ume-color-primary); }
.brand-list-rank-unit { margin-left: 1px; font-size: 11px; }
.ranking-more { margin-top: 24px; text-align: right; }
.ranking-more a { word-break: auto-phrase; color: var(--ume-color-link); font-weight: var(--ume-weight-bold); text-decoration: underline; overflow-wrap: anywhere; }
/* #100: vendor list. Many short rows, so a compact grid of name and count instead of entry rows. */
.vendor-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); column-gap: 40px; }
.vendor-list-item { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--ume-color-line); }
.vendor-list-name { min-width: 0; color: var(--ume-color-link); font-weight: var(--ume-weight-bold); text-decoration: underline; overflow-wrap: anywhere; }
.vendor-list-count { flex: none; font-size: var(--ume-text-xs); color: var(--ume-color-muted); }
.vendor-list-count-value { margin-inline: 2px; color: var(--ume-color-text); font-weight: var(--ume-weight-bold); }

@media (max-width: 600px) {
  .ranking-group { margin-top: 36px; }
  .ranking-group-title { margin-bottom: 20px; }
  .ranking-group-title h2 { font-size: 21px; }
  .brand-list--ranked .brand-list-item { grid-template-columns: 34px 76px minmax(0, 1fr); gap: 12px; }
  .brand-list-rank { width: 34px; height: 34px; margin-top: 20px; font-size: 16px; }
  .brand-list-rank-unit { font-size: 9px; }
  .ranking-more { margin-top: 20px; }
}
