figure.wp-block-table.is-style-pb-ranking-table,
figure.wp-block-table.pb-ranking-table-native {
  --pbrn-accent: #e93645;
  --pbrn-accent-dark: #b91f2d;
  --pbrn-accent-strong: #991824;
  --pbrn-accent-soft: #ffedef;
  --pbrn-ink: #202124;
  --pbrn-muted: #5f6368;
  --pbrn-line: #cfd4da;
  --pbrn-head: #292d32;
  --pbrn-top: #f6f7f8;
  border: 2px solid #bcc2c8;
  border-radius: 10px;
  border-top: 5px solid var(--pbrn-accent);
  color: var(--pbrn-ink);
  font-family: inherit;
  margin: 1.5rem 0 0.65rem;
  max-width: 100%;
  display: block;
  overflow-x: auto !important;
  overscroll-behavior-x: contain;
  position: relative;
  -webkit-overflow-scrolling: touch;
}

figure.wp-block-table.is-style-pb-ranking-table,
figure.wp-block-table.is-style-pb-ranking-table *,
figure.wp-block-table.pb-ranking-table-native,
figure.wp-block-table.pb-ranking-table-native * {
  box-sizing: border-box;
}

figure.wp-block-table.is-style-pb-ranking-table:focus-visible,
figure.wp-block-table.pb-ranking-table-native:focus-visible {
  outline: 3px solid rgb(233 54 69 / 28%);
  outline-offset: 3px;
}

figure.wp-block-table.is-style-pb-ranking-table table,
figure.wp-block-table.pb-ranking-table-native table {
  background: #fff;
  border: 0 !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  color: var(--pbrn-ink);
  font-size: 14px;
  line-height: 1.55;
  margin: 0 !important;
  min-width: var(--table-width, 940px);
  max-width: none !important;
  table-layout: fixed;
  width: var(--table-width, 940px) !important;
}

figure.wp-block-table.is-style-pb-ranking-table th,
figure.wp-block-table.is-style-pb-ranking-table td,
figure.wp-block-table.pb-ranking-table-native th,
figure.wp-block-table.pb-ranking-table-native td {
  background: #fff;
  border: 0 !important;
  border-bottom: 1px solid var(--pbrn-line) !important;
  border-right: 1px solid var(--pbrn-line) !important;
  color: var(--pbrn-ink);
  font-variant-numeric: tabular-nums;
  min-width: 96px;
  overflow-wrap: break-word;
  padding: 15px 13px !important;
  vertical-align: middle;
  word-break: normal;
}

figure.wp-block-table.is-style-pb-ranking-table tr > :last-child,
figure.wp-block-table.pb-ranking-table-native tr > :last-child {
  border-right: 0 !important;
}

figure.wp-block-table.is-style-pb-ranking-table tbody tr:last-child > *,
figure.wp-block-table.pb-ranking-table-native tbody tr:last-child > * {
  border-bottom: 0 !important;
}

figure.wp-block-table.is-style-pb-ranking-table thead th,
figure.wp-block-table.pb-ranking-table-native thead th {
  background: var(--pbrn-head) !important;
  border-bottom: 2px solid #17191c !important;
  border-right-color: #4a4f55 !important;
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
}

figure.wp-block-table.is-style-pb-ranking-table thead th:first-child,
figure.wp-block-table.is-style-pb-ranking-table tbody tr > :first-child,
figure.wp-block-table.pb-ranking-table-native thead th:first-child,
figure.wp-block-table.pb-ranking-table-native tbody tr > :first-child {
  left: 0;
  min-width: 174px;
  position: sticky;
  text-align: left !important;
  width: 174px;
  z-index: 2;
}

figure.wp-block-table.is-style-pb-ranking-table thead th:first-child,
figure.wp-block-table.pb-ranking-table-native thead th:first-child {
  z-index: 4;
}

figure.wp-block-table.is-style-pb-ranking-table tbody,
figure.wp-block-table.pb-ranking-table-native tbody {
  counter-reset: pbrn-rank;
}

figure.wp-block-table.is-style-pb-ranking-table tbody tr > :first-child,
figure.wp-block-table.pb-ranking-table-native tbody tr > :first-child {
  counter-increment: pbrn-rank;
  font-size: 15px;
  font-weight: 700;
  overflow-wrap: normal;
  word-break: keep-all;
}

figure.wp-block-table.is-style-pb-ranking-table tbody tr > :first-child::before,
figure.wp-block-table.pb-ranking-table-native tbody tr > :first-child::before {
  color: #555b61;
  content: counter(pbrn-rank) "位";
  display: block;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 5px;
}

figure.wp-block-table.is-style-pb-ranking-table tbody tr:nth-child(-n + 3) > :first-child::before,
figure.wp-block-table.pb-ranking-table-native tbody tr:nth-child(-n + 3) > :first-child::before {
  align-items: center;
  background: #555b61;
  border-radius: 4px;
  color: #fff;
  display: inline-flex;
  font-size: 11px;
  line-height: 1;
  margin-bottom: 7px;
  min-height: 21px;
  padding: 4px 7px;
}

figure.wp-block-table.is-style-pb-ranking-table tbody tr:first-child > *,
figure.wp-block-table.pb-ranking-table-native tbody tr:first-child > * {
  background: var(--pbrn-accent-soft) !important;
  border-bottom: 2px solid #ed98a1 !important;
  border-right-color: #ebc4c8 !important;
  padding-bottom: 17px !important;
  padding-top: 17px !important;
}

figure.wp-block-table.is-style-pb-ranking-table tbody tr:first-child > :first-child,
figure.wp-block-table.pb-ranking-table-native tbody tr:first-child > :first-child {
  box-shadow: inset 5px 0 0 var(--pbrn-accent);
}

figure.wp-block-table.is-style-pb-ranking-table tbody tr:first-child > :first-child::before,
figure.wp-block-table.pb-ranking-table-native tbody tr:first-child > :first-child::before {
  background: var(--pbrn-accent-dark);
  font-size: 12px;
  min-height: 22px;
}

figure.wp-block-table.is-style-pb-ranking-table tbody tr:nth-child(2) > *,
figure.wp-block-table.is-style-pb-ranking-table tbody tr:nth-child(3) > *,
figure.wp-block-table.pb-ranking-table-native tbody tr:nth-child(2) > *,
figure.wp-block-table.pb-ranking-table-native tbody tr:nth-child(3) > * {
  background: var(--pbrn-top) !important;
}

figure.wp-block-table.is-style-pb-ranking-table tbody tr:nth-child(4) > *,
figure.wp-block-table.pb-ranking-table-native tbody tr:nth-child(4) > * {
  border-top: 3px solid #aeb4ba !important;
}

figure.wp-block-table.is-style-pb-ranking-table tbody tr:nth-child(-n + 3) > :first-child img,
figure.wp-block-table.pb-ranking-table-native tbody tr:nth-child(-n + 3) > :first-child img {
  display: block;
  height: auto;
  margin: 0 0 7px;
  max-height: 32px;
  max-width: 112px;
  object-fit: contain;
  object-position: left center;
  width: auto;
}

figure.wp-block-table.is-style-pb-ranking-table tbody tr:nth-child(-n + 3) > :first-child img + br,
figure.wp-block-table.pb-ranking-table-native tbody tr:nth-child(-n + 3) > :first-child img + br {
  display: none;
}

figure.wp-block-table.is-style-pb-ranking-table tbody tr:first-child > :first-child a,
figure.wp-block-table.pb-ranking-table-native tbody tr:first-child > :first-child a {
  background: var(--pbrn-accent-dark);
  border-radius: 6px;
  color: #fff !important;
  display: inline-block;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  padding: 7px 9px;
  text-decoration: none !important;
}

figure.wp-block-table.is-style-pb-ranking-table tbody tr:first-child > :first-child a:hover,
figure.wp-block-table.pb-ranking-table-native tbody tr:first-child > :first-child a:hover {
  background: var(--pbrn-accent-strong);
  color: #fff !important;
}

figure.wp-block-table.is-style-pb-ranking-table tbody tr:first-child > td:nth-child(n + 2):nth-child(-n + 5),
figure.wp-block-table.pb-ranking-table-native tbody tr:first-child > td:nth-child(n + 2):nth-child(-n + 5) {
  color: var(--pbrn-accent-dark);
  font-size: 16px;
  font-weight: 700;
}

figure.wp-block-table.is-style-pb-ranking-table tbody tr:first-child > td .has-swl-deep-01-color,
figure.wp-block-table.pb-ranking-table-native tbody tr:first-child > td .has-swl-deep-01-color {
  align-items: center;
  background: #fff;
  border: 1px solid #dc7f89;
  border-left: 4px solid var(--pbrn-accent);
  border-radius: 5px;
  color: var(--pbrn-accent-dark) !important;
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  justify-content: center;
  line-height: 1.4;
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
  padding: 7px 5px;
  text-wrap: pretty;
  white-space: normal;
  width: 100%;
}

figure.wp-block-table.is-style-pb-ranking-table tbody tr:first-child > td:has(.has-swl-deep-01-color),
figure.wp-block-table.pb-ranking-table-native tbody tr:first-child > td:has(.has-swl-deep-01-color) {
  padding-left: 8px !important;
  padding-right: 8px !important;
}

figure.wp-block-table.is-style-pb-ranking-table a:focus-visible,
figure.wp-block-table.pb-ranking-table-native a:focus-visible {
  border-radius: 3px;
  outline: 3px solid rgb(233 54 69 / 28%);
  outline-offset: 3px;
}

figure.wp-block-table.is-style-pb-ranking-table figcaption,
figure.wp-block-table.pb-ranking-table-native figcaption {
  color: var(--pbrn-muted);
  font-size: 11px;
  line-height: 1.65;
  margin: 0;
  min-width: min(640px, 100%);
  padding: 9px 2px 0;
  position: sticky;
  left: 0;
  text-align: left;
}

@media (max-width: 959px) {
  figure.wp-block-table.is-style-pb-ranking-table table,
  figure.wp-block-table.pb-ranking-table-native table {
    font-size: 13px;
  }

  figure.wp-block-table.is-style-pb-ranking-table th,
  figure.wp-block-table.is-style-pb-ranking-table td,
  figure.wp-block-table.pb-ranking-table-native th,
  figure.wp-block-table.pb-ranking-table-native td {
    padding: 13px 11px !important;
  }

  figure.wp-block-table.is-style-pb-ranking-table thead th:first-child,
  figure.wp-block-table.is-style-pb-ranking-table tbody tr > :first-child,
  figure.wp-block-table.pb-ranking-table-native thead th:first-child,
  figure.wp-block-table.pb-ranking-table-native tbody tr > :first-child {
    box-shadow: 9px 0 14px -12px rgb(32 33 36 / 70%);
    min-width: 148px;
    width: 148px;
  }

  figure.wp-block-table.is-style-pb-ranking-table tbody tr:first-child > :first-child,
  figure.wp-block-table.pb-ranking-table-native tbody tr:first-child > :first-child {
    box-shadow: inset 5px 0 0 var(--pbrn-accent), 9px 0 14px -12px rgb(32 33 36 / 70%);
  }
}

@media (max-width: 599px) {
  figure.wp-block-table.is-style-pb-ranking-table,
  figure.wp-block-table.pb-ranking-table-native {
    border-radius: 8px;
  }

  figure.wp-block-table.is-style-pb-ranking-table thead th:first-child,
  figure.wp-block-table.is-style-pb-ranking-table tbody tr > :first-child,
  figure.wp-block-table.pb-ranking-table-native thead th:first-child,
  figure.wp-block-table.pb-ranking-table-native tbody tr > :first-child {
    min-width: 136px;
    width: 136px;
  }

  figure.wp-block-table.is-style-pb-ranking-table tbody tr > :first-child,
  figure.wp-block-table.pb-ranking-table-native tbody tr > :first-child {
    font-size: 14px;
  }

  figure.wp-block-table.is-style-pb-ranking-table tbody tr:nth-child(-n + 3) > :first-child img,
  figure.wp-block-table.pb-ranking-table-native tbody tr:nth-child(-n + 3) > :first-child img {
    max-height: 30px;
    max-width: 104px;
  }

  figure.wp-block-table.is-style-pb-ranking-table tbody tr:first-child > :first-child a,
  figure.wp-block-table.pb-ranking-table-native tbody tr:first-child > :first-child a {
    font-size: 14px;
    padding: 7px 8px;
  }

  figure.wp-block-table.is-style-pb-ranking-table tbody tr:first-child > td .has-swl-deep-01-color,
  figure.wp-block-table.pb-ranking-table-native tbody tr:first-child > td .has-swl-deep-01-color {
    font-size: 13px;
    padding: 6px 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  figure.wp-block-table.is-style-pb-ranking-table,
  figure.wp-block-table.pb-ranking-table-native {
    scroll-behavior: auto;
  }
}
