:root {
  --md-primary-fg-color: #2a579a;
  --md-primary-bg-color: #fff;
  --md-footer-bg-color: rgba(0, 0, 0, 0.87);
  --md-footer-fg-color: #fff;
  --md-footer-fg-color--lighter: hsla(0, 0%, 100%, 0.3);
  --md-footer-fg-color--light: hsla(0, 0%, 100%, 0.7);
}

.md-header,
.md-header-nav {
  background-color: #2a579a !important;
  color: #fff !important;
}
/* 検索窓は文字色が黒のため背景を白に固定して可読性を確保する */
.md-search__button,
.md-search__button:hover,
.md-search__button:focus {
  background-color: #fff !important;
  color: #000 !important;
}
.md-main .md-typeset a,
.md-nav__link--active {
  color: #2a579a !important;
}
/* Zensical modern テーマは本文リンクに下線を付与するが、
   従来(Material)の下線なしの意匠を引き継ぐ */
.md-main .md-typeset a {
  text-decoration: none;
}
.md-main .md-typeset a:hover,
.md-main .md-typeset a:active,
.md-main .md-typeset a:focus,
.md-nav__link--active:hover,
.md-nav__link--activ:active,
.md-nav__link--activ:focus,
.md-nav__link:hover,
.md-nav__link:active,
.md-nav__link:focus {
  color: #eb7471 !important;
}
@media only screen and (max-width: 76.1875em) {
  .md-sidebar .md-sidebar__inner > .md-nav--primary > .md-nav__title {
    background-color: #2a579a !important;
    padding: 3rem 0.8rem 0.2rem;
  }
  .md-logo {
    margin-bottom: 1rem;
    display: block;
    left: 0.2rem;
    margin: 0.2rem;
    padding: 0.4rem;
    position: absolute;
    right: 0.2rem;
    top: 0.2rem;
  }
  .md-logo img {
    max-width: none !important;
    width: 125px !important;
    height: auto !important;
  }
  .md-nav--primary .md-nav__title[for="__drawer"] {
    color: var(--md-primary-bg-color);
  }
  nav.md-nav.md-nav--primary {
    margin-bottom: auto !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}
  .md-logo {
    margin: 0 0.2rem;
    padding: 0.1rem;
  }
  html {
    overflow-y: scroll;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
  }
  body {
    font-size: 0.9rem;
    line-height: 1.5em;
    margin: auto;
  }
  .md-nav__title {
    color: #364e96;
    font-size: 1.4em;
    padding-bottom: 1em;
  }
  .md-typeset h1,
  .md-typeset h2,
  .md-typeset h3,
  .md-typeset h4,
  .md-typeset h5 {
    color: #000;
    text-transform: none !important;
    line-height: inherit;
  }
  .md-typeset h1 {
    width: 96%;
    margin: 0.2em auto;
    font-size: 2.2em;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-align: center;
    color: #000000;
    border: solid 3px #364e96;
    padding: 0.2em;
    border-radius: 0.5em;
  }
  .md-typeset h2 {
    font-size: 2em;
    font-weight: 700;
    background: linear-gradient(transparent 50%, rgba(42, 87, 154, 0.2) 100%);
    border-bottom: solid 3px rgba(42, 87, 154, 1);
    padding-left: 0.5rem;
  }
  .md-typeset h3 {
    font-size: 1.6em;
    font-weight: 600;
    background: linear-gradient(transparent 60%, rgba(42, 87, 154, 0.2) 100%);
    border-bottom: solid 2px rgba(42, 87, 154, 1);
    padding-left: 1rem;
  }
  .md-typeset h4 {
    font-size: 1.4em;
    font-weight: 500;
    background: linear-gradient(transparent 70%, rgba(42, 87, 154, 0.2) 100%);
    border-bottom: solid 1px rgba(42, 87, 154, 1);
    padding-left: 1rem;
  }
  .md-typeset h5 {
    font-size: 1.1em;
    font-weight: 400;
    background: linear-gradient(transparent 80%, rgba(42, 87, 154, 0.2) 100%);
    border-bottom: dashed 1px rgba(42, 87, 154, 1);
    padding-left: 0.5rem;
    margin-left: 1rem;
    margin-right: 3rem;
  }
  .md-typeset p {
    margin: 1em;
  }
  .md-typeset ul,
  .md-typeset ol {
    margin-left: 1em;
  }
  dt {
    font-weight: 700;
  }
  .md-typeset .codehilite {
    margin: 1rem 2rem;
  }
  .md-typeset pre {
    border: solid 1px #ccc;
  }
  .md-typeset .codehilitetable {
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    border-radius: 0;
  }
  .md-typeset .codehilitetable .linenodiv {
    background-color: #222 !important;
  }
  .md-typeset .codehilitetable .linenodiv pre {
    background-color: #222 !important;
    color: #aaa;
    margin: 0;
  }
  .md-typeset .codehilitetable .md-clipboard:before {
    color: rgba(240, 240, 240, 0.8);
  }
  .md-typeset .codehilitetable .md-clipboard:hover:before {
    color: rgba(102, 217, 224, 1);
  }
  .md-typeset .highlight .hll {
    margin: 0;
    padding: 0;
  }
  div.md-typeset__table {
    width: 95%;
    max-width: 95%;
    margin-bottom: 0.1rem;
  }
  .md-typeset .md-typeset__table table {
    width: 100%;
    max-width: 100%;
    margin-left: 1rem;
    margin-bottom: 0.1rem;
    border: solid 1px #ccc;
  }
  .md-typeset table:not([class]) {
    display: table;
  }
  .md-typeset table:not([class]) td {
    padding: 0.5rem;
    border: dotted 1px #ccc;
    width: auto;
  }
  .md-typeset table:not([class]) th {
    padding: 0.5rem;
    border-left: dotted 1px #999;
    width: auto;
  }
  div.force-table-widthdown .md-typeset__table {
    width: auto;
  }
  div.force-table-widthfull .md-typeset__table {
    width: 100%;
    padding: 0;
    margin-top: 2rem;
  }
  @media print {
    .md-sidebar--primary,
    .md-sidebar--secondary {
      :none;
    }
    .md-content {
      -left: 0;
    }
  }
