@charset "UTF-8";
/* The sponsor block's logos (inc/sponsors.php; TOP, 新豊洲, 芝公園): after the role's label, white boxes of one size in
   rows, each logo contained in its box (wide marks, square marks and banners alike). top.css keeps styling the labels
   and the 主催 line; #contents makes these win over its #sponsor li / li img rules (the label's 28px under 980px stays). */
#contents #sponsor li.sponsor__row {
  display: flex;
  align-items: flex-start;
  text-indent: 0;
  padding-left: 0;
}
/* The label level with the first row of boxes: (box height - label height) / 2. */
#contents #sponsor li.sponsor__row > img {
  flex: 0 0 auto;
  margin: 14px 10px 0 0;
}
/* The labels in one column with 主催's, which top.css's hanging indent (#sponsor li: padding-left + text-indent) puts
   8px in on the TOP above 980px (56px - 48px) and at the li's edge elsewhere: keep this in step with those rules.
   The query is the exact complement of top.css's (max-width: 980px), so no zoomed width falls between the two. */
@media not all and (max-width: 980px) {
  #contents.top #sponsor li.sponsor__row {
    padding-left: 8px;
  }
}
#contents #sponsor .sponsor__logos {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
}
#contents #sponsor .sponsor__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 176px;
  height: 64px;
  padding: 10px 12px;
  background: #fff;
  border-radius: 4px;
}
#contents #sponsor .sponsor__logo img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
}
@media (max-width: 980px) {
  #contents #sponsor li.sponsor__row > img {
    margin-top: 18px;
  }
}
@media (max-width: 678px) {
  #contents #sponsor .sponsor__logos {
    display: grid;
    flex: 1 1 auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  #contents #sponsor .sponsor__logo {
    width: auto;
    height: 56px;
    padding: 8px 10px;
  }
  #contents #sponsor li.sponsor__row > img {
    margin-top: 14px;
  }
}
