@charset "UTF-8";
/*
 * Group C: clannad_anime/, which has its own stylesheet. Linked only below 920px;
 * see assets/mobile-pages.json. Never link this from clannad_anime/left-side.html: PC pages
 * load it in a 210px iframe, where this media query would match.
 * 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%;
}

/* ---- One column ---- */
.layout-two-column-left #box {
  width: auto;
}
.layout-two-column-left #content {
  float: none;
  width: auto;
  margin: 0 8px;
}
.layout-two-column-left #links-left-box {
  float: none;
  width: auto;
  margin: 16px 8px 0;
}
#content, #links-left-box {
  word-wrap: break-word;
  overflow-wrap: anywhere;
  overflow-x: clip;
}

/* ---- 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);
}
table img {
  max-width: none !important;
}
hr {
  box-sizing: border-box;
  max-width: 100%;
}

/* ---- Banner: the whole 800x250 image fits the width ---- */
#banner {
  position: relative;
  height: auto;
  padding-top: 31.25%;
  background-position: center top;
  background-size: contain;
}
#banner > a, #banner > h1 > a {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}
#banner > a img, #banner > h1 > a img {
  display: block;
  width: 100%;
  height: 100%;
}
/* Monthly archive template: a white text link instead of toplink.gif. It would sit on the
   illustration, so it moves under the image and turns dark. */
#banner-inner h1 {
  padding: 4px 8px;
  line-height: 1.4;
}
#banner-inner h1 a:link, #banner-inner h1 a:visited {
  color: #444;
  font-size: 14px;
}
#alpha, #beta {
  padding: 0 8px;
  text-align: left;
}

/* ---- Reading size ---- */
#content {
  font-size: 14px;
  line-height: 1.7;
}
.entry {
  font-size: 16px;
  line-height: 1.7;
}
.entry h3 {
  font-size: 16px;
  line-height: 1.5;
}
.entry-footer {
  padding: 0 8px;
  font-size: 12px;
}
.side, .sidetitle {
  font-size: 14px;
}
blockquote {
  margin: 12px 0 0;
  padding: 8px;
  font-size: 15px;
}

/* ---- Menu ---- */
#menu {
  display: flex;
  flex-wrap: wrap;
  width: auto;
  height: auto;
  margin: 0;
}
#menu li {
  float: none;
  width: 50%;
  height: auto;
}
#menu a {
  display: block;
  box-sizing: border-box;
  height: auto;
  min-height: 44px;
  padding: 11px 4px;
  line-height: 1.5;
}

/* ---- The 210px frame moves under the article at full width ---- */
#left-side {
  position: static;
  width: auto;
  margin: 16px 8px 0;
  overflow: visible;
}
/* left-side.html cannot get its own mobile CSS. Its document needs 480px at 280px wide
   and less at wider sizes, and the frame does not scroll. */
#left-side iframe {
  display: block;
  width: 100%;
  height: 490px;
}
