/* Partner marks (home #works, company #partners).
   Official artwork only, shown as supplied: no recolouring and no reduced opacity, because the
   owners' rules only allow their own reversed versions on a dark ground. Sources: /logos/SOURCES.md.
   文部科学省 is set as type: no original artwork for the ministry's symbol has been supplied. */
.rw-logo { --logo-s: 1; display: flex; align-items: center; }
.rw-logo img { display: block; width: auto; max-width: 100%; height: calc(var(--logo-h) * var(--logo-s)); object-fit: contain; object-position: left center; }
.rw-logo-waseda { --logo-h: 40px; }
.rw-logo-aliexpress { --logo-h: 26px; }
.rw-logo-bytedance { --logo-h: 20px; }
.rw-logo-tvtokyo { --logo-h: 24px; }
.rw-logo-mext > span { color: #f7f5f2; font: 400 calc(19px * var(--logo-s))/1 "Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif; letter-spacing: .16em; white-space: nowrap; }

/* The row may run past the 760px copy measure so the five marks sit on one line on wide screens. */
.site-page .rw-logo-row { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 30px 46px; width: max-content; max-width: 88vw; margin: 40px 0 0; padding: 30px 0; border-block: 1px solid var(--line); }
@media (max-width: 760px) {
  .site-page .rw-logo-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0; width: auto; max-width: none; padding: 0; border-top: 0; }
  .site-page .rw-logo-row > li { --logo-s: .86; min-height: 76px; padding: 0 16px; border-top: 1px solid var(--line); }
  .site-page .rw-logo-row > li:first-child { padding-left: 0; }
  .site-page .rw-logo-row > .rw-logo-waseda { grid-column: 1 / -1; }
  .site-page .rw-logo-row > li:nth-child(2n+2) { padding-left: 0; }
  .site-page .rw-logo-row > li:nth-child(2n+3) { border-left: 1px solid var(--line); }
}
