@charset "UTF-8";
/*
 * Group B: pages that use styles-site.css with an older structure. Linked only below 920px;
 * see assets/mobile-pages.json. Group A has its own file, mobile.css, and is not affected.
 * Do not put overflow-x:hidden on html or body. Check with tools/check_mobile.mjs.
 */

html, body {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* ---- Fixed sizes from the old HTML ---- */
img, iframe, embed, object, video, textarea, input {
  max-width: 100%;
}
img {
  height: auto;
}
.entry img {
  max-width: calc(100% - 5px);
}
/* A percentage max-width inside an auto-layout table squeezes media to a few pixels. */
table img {
  max-width: none !important;
}

/* ---- Reading size ---- */
.entry, .content-wapper {
  word-wrap: break-word;
  overflow-wrap: anywhere;
  overflow-x: clip;
}
.entry {
  font-size: 16px;
  line-height: 1.7;
}
.entry-content, .entry-content-entry {
  padding-right: 8px;
  padding-left: 8px;
  /* kadomaru.png is a 580px frame that cannot scale. */
  background-image: none;
}
#content {
  text-align: left;
}
.content-wapper {
  font-size: 14px;
  line-height: 1.7;
}
.entry-header, .entry-header-entry {
  padding-right: 8px;
  background-image: none;
  font-size: 16px;
  line-height: 1.4;
}
.entry-footer {
  margin: 0;
  padding: 0 8px 6px;
  font-size: 12px;
}
.date {
  margin-top: 16px;
  font-size: 13px;
}
blockquote {
  margin: 12px 0 0;
  padding: 8px;
  font-size: 15px;
}

/* ---- Ranking pages: one table in #box ---- */
#box {
  /* Full-width spaces at a line end hang past the box. check_mobile.mjs reports real cuts. */
  overflow-x: clip;
}
#box > table {
  width: 100%;
  font-size: 14px !important;
}
#box > table td[width] {
  width: auto;
}

/* ---- Older banner: same fit as mobile.css ---- */
.layout-two-column-left #banner, #banner {
  position: relative;
  width: auto;
  height: auto;
  padding-top: 55.56%; /* 900x500 */
  background-position: center top;
  background-size: contain;
}
#banner h1 span {
  font-size: 11px;
}
#banner > a, #banner > div {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: auto !important;
  height: auto !important;
}
#banner > a img, #banner > div img {
  display: block;
  width: 100%;
  height: 100%;
}
#header ul {
  padding: 3px 8px;
}

/* ---- Kanon pages ---- */
.layout-two-column-left #content {
  float: none;
  width: auto;
  margin: 0 8px;
}
/* The frame points at /left-side.html, which does not exist. It only shows the 404 page. */
#left-side {
  display: none;
}
#box > div[style*="text-align:right"] ul {
  padding: 4px 8px;
  line-height: 2.2;
}
.top_list {
  display: inline-block;
  padding: 0 4px;
  list-style: none;
}
