@charset "UTF-8";
html,
body {
  font-family: "Source Sans Pro", Helvetica, Roboto, Arial, sans-serif;
  font-size: 16px;
  background-color: #eee; }

header {
  width: 30%;
  min-width: 300px;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  background-color: #1f1815;
  background-attachment: fixed;
  background-image: url("../images/sidebar_background.jpg");
  background-position: bottom left;
  background-repeat: no-repeat;
  background-size: auto 100%;
  color: #ccc;
  text-align: right;
  overflow: scroll;
  transition: height 0.3s; }
  header a {
    text-decoration: none; }
  header #logo,
  header #menu {
    margin: 2rem; }
  header #logo {
    border: none; }
    header #logo img {
      border-radius: 10px; }
    header #logo .name,
    header #logo #open-menu-button {
      display: none; }
    header #logo #open-menu-button {
      cursor: pointer; }
  header #menu {
    display: block;
    padding-right: 0.5rem;
    margin-bottom: 6rem;
    position: relative; }
    header #menu li {
      font-size: 1.4rem;
      line-height: 2.5rem; }
      header #menu li a {
        transition: color 0.4s; }
        header #menu li a, header #menu li a:visited {
          color: #666; }
        header #menu li a:hover {
          color: #000; }
      header #menu li.active a {
        color: #000; }
      header #menu li .second-menu {
        margin-bottom: 1rem; }
        header #menu li .second-menu li {
          font-size: 1.1rem;
          line-height: 1.5rem; }
      header #menu li#close-menu-button {
        display: none;
        cursor: pointer; }

footer {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 150;
  line-height: 1.7rem;
  font-size: 0.9rem;
  color: #ccc; }
  footer .copyright {
    margin: 1rem 0 0 0; }
  footer a {
    transition: color 0.4s, border 0.4s; }
    footer a, footer a:visited {
      color: #ccc;
      text-decoration: none;
      border-bottom: 1px solid #ccc; }
    footer a:hover {
      color: #fff;
      border-bottom: 1px solid #fff; }
  footer #footer-menu,
  footer h5 {
    display: none; }

article {
  max-width: 54em;
  padding: 3em;
  margin-left: 30%;
  color: #6f6f6f; }
  article h1 {
    font-size: 2.5rem;
    font-weight: 600;
    color: #dd7916;
    margin: 1rem 0 0.5rem; }
  article h2 {
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
    padding: 0 0 0 2.5rem;
    color: #00602a;
    background: url("../images/leaf.png") left center no-repeat;
    background-size: 2rem; }
  article h3 {
    font-size: 1.5rem;
    padding: 1rem 0; }
    article h3 .subtitle {
      font-size: 1.2rem;
      padding-left: 0.5rem; }
    article h3.hasSubtitle {
      padding-bottom: 0; }
  article h4 {
    font-size: 1.4rem;
    padding: 0.5rem 0; }
  article section#back_to_top {
    font-size: 1rem;
    text-align: right;
    margin: 3rem 0 1rem; }
  article img {
    width: 100%;
    box-sizing: border-box;
    border: 5px solid #dfdfdf;
    border-radius: 5px;
    margin: 1rem 0; }
    article img.logo {
      height: 6rem;
      width: auto;
      border: none;
      float: right; }
  article span.highlight {
    color: #0070c0; }
  article p,
  article ul,
  article ol {
    font-size: 1.2rem;
    line-height: 2rem;
    padding: 0 0 1rem; }
    article p ul,
    article p ol,
    article ul ul,
    article ul ol,
    article ol ul,
    article ol ol {
      padding: 0 0 1rem; }
  article p.tag {
    font-size: 1.2rem;
    font-weight: 600; }
  article p.subtitle {
    font-weight: bold;
    font-style: italic; }
  article dl {
    padding: 0 0 1rem;
    font-size: 1.2rem; }
    article dl dt {
      font-weight: bold;
      margin: 0 0 0.5rem; }
    article dl dd {
      margin: 0 0 1.5rem;
      line-height: 1.7rem; }
  article blockquote {
    margin-top: 3rem;
    padding: 0 1rem;
    border-left: 1px solid #6f6f6f; }
    article blockquote.dateRemark {
      margin-top: -1rem;
      margin-bottom: 2.5rem; }
  article ul,
  article ol {
    padding: 0 0 1rem 1.5rem; }
    article ul li,
    article ol li {
      padding: 0 0 0 1rem; }
    article ul.strong li,
    article ol.strong li {
      font-weight: bold; }
  article ul {
    list-style: disc; }
    article ul ul {
      list-style: circle; }
  article ol {
    list-style: decimal; }
    article ol.procedure {
      list-style: upper-roman;
      font-size: 1.7rem; }
  article a {
    text-decoration: none;
    transition: color 0.4s; }
    article a, article a:visited {
      color: #4d76bf; }
    article a:hover {
      color: #3d5d96; }
    article a.dateRemark_zh {
      margin-left: -1rem; }
    article a.dateRemark {
      margin-left: -0.2rem; }
  article .book_item {
    margin-bottom: 0.5rem;
    padding: 1rem;
    display: block;
    border-radius: 5px; }
    article .book_item:nth-child(even) {
      background-color: #e9e9e9; }
    article .book_item > span {
      display: inline-block; }
      article .book_item > span.thumbnail {
        width: 30%;
        vertical-align: top;
        margin-right: 1rem; }
      article .book_item > span.info {
        width: 60%;
        vertical-align: top; }
  article .flexible-container {
    position: relative;
    padding-bottom: 56.25%;
    padding-top: 30px;
    height: 0;
    overflow: hidden; }
    article .flexible-container iframe,
    article .flexible-container object,
    article .flexible-container embed {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%; }

@media screen and (max-width: 1024px) {
  html,
  body {
    font-size: 14px; }
  header {
    position: fixed;
    width: 100%;
    height: 4rem;
    background: rgba(0, 96, 42, 0.9);
    text-align: left;
    color: #dfdfdf;
    font-size: 1.5rem;
    z-index: 150;
    overflow: auto; }
    header #logo {
      height: 4rem;
      width: 70%;
      line-height: 4rem;
      z-index: 150;
      margin: 0 2rem; }
      header #logo img {
        display: none; }
      header #logo .name,
      header #logo #open-menu-button {
        display: inline-block; }
      header #logo #open-menu-button {
        position: fixed;
        right: 2rem;
        color: #dfdfdf; }
    header #menu {
      position: fixed;
      width: 100%;
      height: 100%;
      display: block;
      z-index: 200;
      background: rgba(250, 250, 250, 0.8);
      display: none;
      overflow: scroll;
      text-align: center;
      padding: 1rem 0 0;
      margin: 0; }
      header #menu li#close-menu-button {
        display: inline-block;
        position: fixed;
        right: 1rem;
        top: 4rem;
        font-size: 1.2rem; }
        header #menu li#close-menu-button a {
          color: #f66; }
  article {
    position: relative;
    max-width: 80%;
    width: 80%;
    padding: 2rem 0;
    margin: 4rem auto 0;
    z-index: 100; }
    article .book_item {
      margin-bottom: 0.5rem;
      display: block; }
      article .book_item > span {
        display: inline-block; }
        article .book_item > span.info {
          width: 90%;
          vertical-align: top; }
  footer {
    position: relative;
    max-width: 80%;
    width: 80%;
    padding: 1rem 0;
    margin: 0 auto;
    left: 0;
    bottom: 0;
    z-index: 100;
    border-top: 1px dotted #999;
    color: #999;
    font-size: 1rem; }
    footer a, footer a:visited {
      color: #999;
      border-bottom: 1px solid #999; }
    footer a:hover {
      color: #666;
      border-bottom: 1px solid #666; }
    footer #footer-menu {
      display: block;
      margin: 1rem 0; }
      footer #footer-menu a, footer #footer-menu a:visited {
        border: none; }
      footer #footer-menu li {
        margin: 0 0 1rem 0; }
      footer #footer-menu .second-menu {
        margin: 0 0 0 0.1rem; }
        footer #footer-menu .second-menu li {
          display: inline-block;
          margin: 0 0.5rem; }
          footer #footer-menu .second-menu li::before {
            content: "»"; }
      footer #footer-menu #close-menu-button {
        display: none; } }

@media screen and (max-width: 640px) {
  html,
  body {
    font-size: 13px; } }
