html,
body
{
  margin: 10px;
  padding: 0px;
  font-family: sans-serif;
}

@media screen and (max-width: 640px)
{
  html,
  body
  {
    margin: 0;
  }
}

pre,
code
{
  background-color: #FAFAFA;
  color: #000;
  border: 1px solid #DDD;
}

pre
{
  overflow: auto;
  overflow-y: hidden;
  padding: 20px;
  line-height: 120%;
}

@media screen and (max-width: 640px)
{
  pre
  {
    padding: 5px;
  }
}

pre code
{
  border-width: 0;
}

header
{
  display: block; /* for IE < 9. */
  position: relative;
  margin: 0px;
  padding: 0px;
}

header div.title
{
  background: url(/asset?u=https%3A%2F%2Fgroonga.org%2Fimages%2Flogo.png) no-repeat top left;
  margin: 20px;
  margin-right: 360px;
}

@media screen and (max-width: 640px)
{
  header div.title
  {
    margin: 0;
    margin-top: 5px;
    margint-left: 5px;
  }
}

header div.title a,
header div.title a:link,
header div.title a:visited
{
  text-decoration: none;
}

header div.title a
{
  display: block;
  height:65px;
  border:1px solid #FFF;
  color:#666;
  font-size:small;
  margin-bottom:40px;
}

@media screen and (max-width: 640px)
{
  header div.title a
  {
    height: auto;
    margin-bottom: 5px;
  }
}

header div.title span
{
}

header div.title span.project,
header div.title span.separator
{
  display: none;
}

header div.title span.description
{
  display: block;
  padding: 0;
  margin:35px 0 0 240px;
}

@media screen and (max-width: 640px)
{
  header div.title span.description
  {
    margin-top: 75px;
    margin-bottom: 0;
    margin-left: 5px;
    margin-right: 5px;
  }
}

/*===nav===*/

header nav
{
  display: block; /* for IE < 9. */
  color: #AAA;
  background:#333;
  border-top: 1px solid #BBB;
  border-bottom: 1px solid #DDD;
}

header nav ul
{
  padding: 0;
  line-height: 36px;
  margin: 0;
}

header nav li
{
  display: inline;
  margin-left:20px;
}

header nav li form
{
  display: inline;
}

@media screen and (max-width: 640px)
{
  header nav ul
  {
    padding-top: 5px;
    padding-bottom: 5px;
    padding-left: 5px;
    padding-right: 5px;
    line-height: 1.5em;
  }

  header nav li
  {
    margin-left: 0;
  }
}

header nav a,
header nav a:link,
header nav a:visited,
header nav a:active,
header nav a:hover
{
  color: #AAA;
  padding-right: 3px;
  text-decoration: none;
}

header nav a:hover
{
  color:#FFF;
  text-decoration: underline;
}

header div.facebook-buttons
{
  position: absolute;
  top: 0px;
  right: 0px;
  border: #3b5a9a 3px solid;
  background-color: white;

  -moz-border-radius: 5px;
  -webkit-border-radius: 5px;
  border-radius: 5px;

  padding-top: 10px;
  padding-left: 10px;
  width: 320px;
  height: 90px;
}

@media screen and (max-width: 640px)
{
  header div.facebook-buttons
  {
    display: none;
  }
}

header div.other-language-links
{
  position: absolute;
  top: 5px;
  right: 360px;
  font-size:small;
  /* width: 50px; */
}

@media screen and (max-width: 640px)
{
  header div.other-language-links
  {
    right: 5px;
  }
}

header div.other-language-links ul,
header div.other-language-links li
{
  display: inline;
  padding: 0;
  margin: 0;
}

header div.other-language-links a img
{
  border-style: none;
}

div#body
{
  position: relative;
}

div#body h1
{
  margin-left: 30px;
}

@media screen and (max-width: 640px)
{
  div#body h1
  {
    margin: 5px;
  }
}

div#content
{
  background-color: #FAFAFA;
  border:1px solid #DDD;
  padding: 10px;
  margin-top: 10px;
  margin-left: 10px;
  margin-right: 230px;
  margin-bottom: 10px;
}

@media screen and (max-width: 640px)
{
  div#content
  {
    padding: 0;
    margin: 0;
  }
}

div#content h2,
div#content h3,
div#content h4,
div#content h5,
div#content h6
{
  margin: 0;
  padding-bottom: 10px;
  position: relative;
  border-bottom: 3px solid #FAFAFA;
  font-weight: bold;
}

div#content h2
{
  color: white;
  background: #005fb0 url(/asset?u=https%3A%2F%2Fgroonga.org%2Fimages%2Fnavigation-bar.png) top left repeat-x;
  font-weight: bold;
  padding: 10px;
  padding-left:30px;
  margin: 0;
}

@media screen and (max-width: 640px)
{
  div#content h2
  {
    padding: 10px;
  }
}

div#content section#related-projects h3
{
  color: white;
  background: #005fb0 url(/asset?u=https%3A%2F%2Fgroonga.org%2Fimages%2Fnavigation-bar.png) top left repeat-x;
  font-weight: bold;
  padding: 10px;
  padding-left:30px;
  margin: 0;
}

div#content h3
{
  font-weight: bold;
  padding: 10px 10px 0 10px;
  margin: 0;
}

div#content h4,
div#content h5,
div#content h6
{
}

div#content a.amazon-detail
{
  display: block;
  padding: 20px;
  background-color: white;
  border: 1px solid #005fb0;
  -moz-border-radius: 10px;
  -webkit-border-radius: 10px;
  border-radius: 10px;
}

div#content a.amazon-detail span.amazon-detail span
{
  display: block;
}

div#content a.amazon-detail img.amazon-detail
{
  float: left;
  padding-right: 15px;
}

div#content section,
div#content div.post
{
  padding-left: 20px;
  padding-right: 20px;
  padding-top: 10px;
  padding-bottom: 10px;
}

@media screen and (max-width: 640px)
{
  div#content section,
  div#content div.post
  {
    padding: 0 5px;
  }
}

div#content div#posts
{
  background-color: white;
}

div#content div.post
{
  margin-bottom: 5em;
}

@media screen and (max-width: 640px)
{
  div#content div.post
  {
    margin: 0;
  }
}

div#content div.post p
{
  line-height: 150%;
}

div#content div.post span.date
{
  display: block;
  text-align: right;
}

div#content div.post div.social-widgets
{
  text-align: right;
}

div#content div.post table
{
  margin-left: auto;
  margin-right: auto;
  border-top: 1px solid #005fb0;
}

div#content div.post table th,
div#content div.post table td
{
  border-bottom: 1px solid #005fb0;
  padding: 5px;
  margin: 0 5px;
}

div#content div.post img
{
  max-width: 90%;
  display: block;
  margin: 0 auto;
  padding: 0.5em;
  border: 1px solid #aaa;
}

div#content section#menu table
{
  margin-top: 3em;
  margin-left: auto;
  margin-right: auto;
  border-collapse: collapse;
  border-spacing: 0;
}

div#content section#menu table th,
div#content section#menu table td
{
  border: 1px solid #005fb0;
  padding: 5px;
  margin: 0;
}

div#content section#menu table td ul
{
  padding-left: 1em;
  margin: 0;
}

div#content section#menu table td.note
{
  text-align: center;
  font-weight: bold;
}

div#sidebar
{
  position: absolute;
  top: 0;
  right: 0;
  width: 220px;
  height: auto;
  font-size: 90%;
  background-color: white;
  overflow: auto;
}

@media screen and (max-width: 640px)
{
  div#sidebar
  {
    display: none;
  }
}

div#sidebar h2
{
  font-size: small;
  color: #fff;
  background: #005fb0 url(/asset?u=https%3A%2F%2Fgroonga.org%2Fimages%2Fsidebar-header-background.png) left top repeat-x;
  margin: 0 0 10px 0;
  padding: 7px 0 7px 10px;
  font-weight: bold;
}

div#sidebar ul
{
  list-style: none;
  margin: 0;
  padding: 0;
  margin-top: 10px;
  margin-bottom: 10px;
  margin-right: 20px;
}

div#sidebar ul li
{
  margin-top: 5px;
  margin-bottom: 5px;
}

div#sidebar ul li:before
{
  content: ">> ";
  color: #005fb0;
}

div#sidebar ul ul
{
  margin-left: 20px;
  list-style: square;
}

div#sidebar ul ul li:before
{
  content: "> ";
  font-weight: bold;
  color: #2fa52f;
}

div#sidebar ul li a.amazon-detail img
{
  display: block;
  margin-left: auto;
  margin-right: auto;
}

div#sidebar span.date
{
  display: block;
  padding-left: 2em;
}

div#top-page-content
{
  position: relative;
  padding-left: 60px;
  padding-right: 60px;
  padding-top: 20px;
  padding-bottom: 20px;
}

div#top-page-content div.notices
{
  width: 90%;
  margin-left: auto;
  margin-right: auto;
}

div#top-page-content div.notices section
{
  width: 40%;
  padding: 10px;
  margin: 10px;
  border: #DDD 2px solid;
  background-color: white;
}

div#top-page-content div.notices section#about
{
  float: left;
}

div#top-page-content div.notices section#latest
{
  float: right;
}

@media screen and (max-width: 640px)
{
  div#top-page-content
  {
    padding: 0;
  }

  div#top-page-content div.notices
  {
    width: auto;
  }

  div#top-page-content div.notices section
  {
    width: auto;
    margin: 5px 0;
  }

  div#top-page-content div.notices section#about,
  div#top-page-content div.notices section#latest
  {
    float: none;
  }
}

div#top-page-content div.notices section:hover
{
  -moz-opacity: 1;
  opacity: 1;
}

div#top-page-content div.notices section h2
{
  padding: 0;
  margin: 0;
  text-align: center;
}

div#top-page-content section#latest-posts
{
  display: block;
  clear: both;
  padding-top: 10px;
}

div#top-page-content section#latest-posts ul.posts,
div#top-page-content section#latest-posts ul.posts li
{
  margin: 0;
  padding: 0;
}

div#top-page-content section#latest-posts ul.posts
{
  margin-top: 10px;
  margin-left: 20px;
}

div#top-page-content p.detail-link
{
  padding-top: 5px;
  text-align: center;
}

div#top-page-content p.detail-link a
{
  color: white;
  text-decoration: none;
  font-size: 20px;
  padding: 10px;
  padding-left: 40px;
  background: #38a3ef no-repeat 8px 9px;
  border: 1px solid #004ec7;
  -moz-border-radius: 5px;
  -webkit-border-radius: 5px;
  border-radius: 5px;
  margin-top: 5px;
  display: inline-block;
}

div#top-page-content p.detail-link a:hover
{
  text-decoration: underline;
}

div#top-page-content p.detail-link a.characteristic
{
  background-image: url(/asset?u=https%3A%2F%2Fgroonga.org%2Fimages%2Fcharacteristic.png);
}

div#top-page-content p.detail-link a.install
{
  background-image: url(/asset?u=https%3A%2F%2Fgroonga.org%2Fimages%2Finstall.png);
}

div#top-page-content p.detail-link a.source
{
  background-image: url(/asset?u=https%3A%2F%2Fgroonga.org%2Fimages%2Fsource.png);
}

div.note
{
  margin: 1em;
  padding-left: 1em;
  padding-right: 1em;
  border: 1px solid #ac9;
  background-color: #eeffcc;
}

figure img
{
  display: block;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

footer
{
  clear: both;
  display: block; /* for IE < 9. */
  border-top:1px solid#DDD;
}

footer p,
footer address
{
  text-align: center;
}

@media screen and (max-width: 640px)
{
  footer p
  {
    margin-left: 5px;
    margin-right: 5px;
  }
}

footer address
{
  padding-top: 5px;
}

#myautocomplete {
  padding-left: 8px;
}

#support .company {
  display: flex;
  flex-direction: row;
  margin: 1em 0;
}

#support .company > .logo {
  padding: 1em;
  width: 280px;
}

#support .company > .description {
  flex: auto;
}

#support .company > .description .link {
  color: white;
  text-decoration: none;
  display: inline-block;
  padding: 10px;
  background: #38a3ef no-repeat 8px 9px;
  border: 1px solid #004ec7;
  border-radius: 5px;
}

#support aside {
  font-size: 0.8em;
  padding-right: 10px;
  text-align: right;
}
