/*
Theme Name: Ginpen
Theme URI: https://ginpen.com/
Author: Takanashi Ginpei
Author URI: https://ginpen.com/
Description: For ginpen.com.
Version: 2.0
License: MIT License
License URI: https://www.opensource.org/licenses/mit-license.php
Tags: white, two-columns, flexible-width
*/

/*
The MIT License

Copyright (c) 2011 Takanashi Ginpei

Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or
sell copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following
conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
*/
body {
  margin-top: 30px;
  min-width: 800px;
}
body,
p {
  font-family:"游ゴシック","Helvetica Neue",Helvetica,Arial,sans-serif;
  font-size: 12px;
}
input, button, select, textarea {
  font-family: inherit;
}
table {
  border: solid 1px #ccc;
  margin: 0 0 9px 25px;
}
table th,
table td {
  border: solid 1px #ccc;
  padding: 4px;
}
table th {
  background-color: #ececec;
  box-shadow: 1px 1px 2px #fff inset;
}
code {
  border-style: none;
  color: inherit;
  font-size: 90%;
}
strong {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
label {
  display: inline;
}

.well {
  padding: 4px;
}
.well .well {
  background-color: #fcfcfc;
}

#global_header {
  background-color: #006;
  font-size: 12px;
  height: 18px;
  left: 0;
  line-height: 1.5em;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1;
}
#global_header,
#global_header #site_logo,
#global_header a {
  color: #fff;
}
#global_header #site_logo,
#global_header a {
  font-size: 1em;
  line-height: 1.5em;
}
#global_header a {
  text-decoration: none;
}
#global_header a:hover {
  text-decoration: underline;
}
#global_header h1 {
  display: block;
  font-weight: normal;
  margin: 0;
  opacity: 0;
  -ms-transition: opacity .3s;
  -o-transition: opacity .3s;
  -moz-transition: opacity .3s;
  -webkit-transition: opacity .3s;
  transition: opacity .3s;
}
#global_header #site_logo {
  float: left;
  margin-left: 1em;
}
#global_header #global_header-info {
  float: right;
  padding-right: 1em;
}
#global_header #global_header-info .item {
  background-color: #006;
  display: inline-block;
  margin-left: .5em;
  position: relative;
  vertical-align: top;
  z-index: 1;
}
#global_header #global_header-info .item,
#global_header #global_header-info .item .subject,
#global_header #global_header-info .item .content {
  background-color: #006;
}
#global_header #global_header-info .item .subject {
  border-color: transparent;
  border-style: none solid none;
  border-width: 1px;
  cursor: default;
  padding: 0 .5em;
}
#global_header #global_header-info .item .content {
  box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  height: 0;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  right: 1px;
  -moz-transition: opacity .2s linear;
  -webkit-transition: opacity .2s linear;
  transition: opacity .2s;
  width: 0;
}
#global_header #global_header-info .item .content a {
  display: block;
  padding: .2em .5em;
  white-space: nowrap;
}
#global_header #global_header-info .item.active .subject,
#global_header #global_header-info .item:hover .subject {
  border-color: #99c;
  border-style: solid solid none;
  border-width: 1px;
  margin-bottom: -1px;
  position: relative;
  z-index: 1;
}
#global_header #global_header-info .item.active .content,
#global_header #global_header-info .item:hover .content {
  border-top: solid 1px #99c;
  height: auto;
  opacity: 1;
  padding-top: .8em;
  min-width: 100%;
  width: auto;
}
#global_header #searchform {
  margin: 0;
  padding-left: 10px;
  width: 280px;
}
#global_header #searchform label {
  display: none;
}
#global_header #searchsubmit  {
  position: relative;
  top: -4px;
}

#top {
  margin: 0 30px 30px;
}
a#site-title {
  background-color: #036;
  border-radius: 5px;
  box-shadow: 3px 3px 5px rgba(0,0,0,.5);
  color: #fff;
  display: inline-block;
  margin: 0;
  outline: dashed #99f 1px;
  outline-offset: -5px;
  padding: 5px;
  position: fixed;
  text-align: center;
  text-decoration: none;
  -ms-transform: rotate(-5deg);
  -o-transform: rotate(-5deg);
  -moz-transform: rotate(-5deg);
  -webkit-transform: rotate(-5deg);
  transform: rotate(-5deg);
  -ms-transform-origin: 0 0;
  -o-transform-origin: 0 0;
  -moz-transform-origin: 0 0;
  -webkit-transform-origin: 0 0;
  transform-origin: 0 0;
  z-index: 1;
}
a#site-title.animate {
  -ms-transition: -ms-transform .3s, left .3s, top .3s, opacity .3s;
  -o-transition: -o-transform .3s, left .3s, top .3s, opacity .3s;
  -moz-transition: -moz-transform .3s, left .3s, top .3s, opacity .3s;
  -webkit-transition: -webkit-transform .3s, left .3s, top .3s, opacity .3s;
  transition: transform .3s, left .3s, top .3s, opacity .3s;
}
a#site-title:hover {
  outline-color: #ccf;

  -moz-transform: rotate(-6deg);
  -webkit-transform: rotate(-6deg);
}
#site-title h1 {
  color: #fff;
  font-family: Slackey;
  font-size: 36px;
  margin: 5px;
}
#site-title h2 {
  font-size: 1em;
  font-weight: normal;
  line-height: 1.5em;
}
#about > * {
  display: inline;
  margin-right: 1em;
}
#about h1 {
  font-size: 1em;
  line-height: 1em;
}
#about p {
  font-family: Georgia, "Bitstream Charter", serif;
}
#top .links-row {
  margin: 0 5%;
  width: auto;
}
#top .links-col {
  margin: 0;
}
#top .links {
  height: 100px;
  margin: 0;
  overflow: auto;
}
#top .links img {
  margin: 4px;
}
#top .links a {
  line-height: 20px;
}
#top ul.links {
  list-style-type: none;
  margin: 0;
}
#top .links-col ul li {
  text-indent: -20px;
  margin-left: 20px;
}

#main {
  margin: 0 auto;
  max-width: 800px;
}

#main .nav:after {
  clear: both;
  content: "";
  display: block;
}
#main .nav .well {
  width: 40%;
}
#main .post-neighbers a {
  display: block;
  padding: 5px 10px;
}
#main .nav .prev {
  float: left;
  text-align: left;
}
#main .nav .next {
  float: right;
  text-align: right;
}

#main article {
  margin: 50px 0;
}
#main article::after {
  background-image: url("img/guruguru.png");
  content: '';
  display: block;
  height: 28px;
  margin: 100px auto;
  width: 33px;
}
#main article:last-of-type::after {
  display: none;
}
#main article h1 {
  border: solid 10px #000;
  -moz-border-image: url("img/fukidashi-border.gif") 10;
  -webkit-border-image: url("img/fukidashi-border.gif") 10;
  border-image: url("img/fukidashi-border.gif") 10;
  margin: 0 80px;
  min-height: 2em;
  padding: 10px;
}
#main article h1 a {
  color: inherit;
}
#main article h1:before {
  background-image: url("img/fukidashi-char.gif");
  content: "";
  display: block;
  height: 78px;
  float: left;
  margin-left: -72px;
  width: 60px;
}
#main .addthis_toolbox {
  height: 30px;
  margin: 10px 0 0 10px;
}
#main .article-status {
  padding: 10px;
  margin: 10px 10px;
}
#main .article-status > * {
  display: inline;
}
#main .article-status > *::after {
  content: "|";
  color: #ccc;
  margin: .5em;
  text-shadow: 1px 1px 0 #fff;
}
#main .article-status > *:last-child::after {
  display: none;
}
#main .article-body {
  border: solid 10px #000;
  -moz-border-image: url("img/fukidashi-border.gif") 10;
  -webkit-border-image: url("img/fukidashi-border.gif") 10;
  border-image: url("img/fukidashi-border.gif") 10;
  border-width: 10px;
  padding: 10px 20px;
  margin: 10px 0;
}
.single #main .article-body::after {
  background-image: url("img/fukidashi-char-bottom.gif");
  background-repeat: no-repeat;
  content: "";
  color: #999;
  display: block;
  float: left;
  height: 38px;
  padding-left: 60px;
  padding-top: 40px;
  width: 0px;
}
#main .article-body h2 {
  background-color: #fff;
  border: solid 1px #ccc;
  border-radius: 5px;
  box-shadow: 0 0 5px rgba(0,0,0,.1);
  clear: both;
  font-size: 3em;
  margin: 1.5em 0 1em;
  padding: 10px;
  text-shadow: 0 0 5px rgba(0,0,0,.3);
}
#main .article-body h3 {
  background-image: url("img/guruguru.png");
  background-repeat: no-repeat;
  font-size: 2em;
  margin: 1em 0 1em;
  padding-left: 40px;
}
#main .article-body h2,
#main .article-body h3,
#main .article-body p {
  font-family: Georgia, "Bitstream Charter", serif;
}
#main .article-body p {
  font-size: 16px;
  line-height: 2em;
}

#main .article-body .article-translate-src {
  opacity: 0.3;
  margin-right: 10%;
  transition: opacity 0.5s;
}
#main .article-body .article-translate-src,
#main .article-body .article-translate-src * {
  font-size: 10px;
}
#main .article-body .article-translate-src:hover {
  opacity: 1;
}
#main .article-body .article-translate-dest {
  margin-left: 10%;
}

#main .article-body .pagination a {
  border-style: none;
  float: none;
  padding: 0;
}
#main .article-body .pagination .page {
  border: 1px solid #ddd;
  line-height: 34px;
  padding: 0 14px;
}

#main article .comments-wrapper {
  margin-left: 100px;
}
#main article .comments-wrapper ul {
  list-style-type: none;
}
#main article .comment {
  background-color: #fcfcfc;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 4px;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);
  margin: 4px;
  padding: 4px;
}
#main article .comments-wrapper .children {
  list-style-type: none;
  margin-bottom: 0;
}
#main article .comments-wrapper #respond {
  border-top: double 3px #eee;
  margin-top: 20px;
  padding-top: 20px;
}
#main article .comments-wrapper #commentform textarea {
  width: 90%;
}
#main article footer .addthis {
  margin-left: 90px;
}

#root-footer {
  border-top: dashed 1px #ccc;
  margin-top: 100px;
  padding: 10px;
}

.figure {
  margin: 15px;
  text-align: center;
}
.figure a {
  background-color: #eee;
  display: inline-block;
  padding: 10px;
}
.figcaption {
  display: block;
  margin-top: 10px;
}

.alignright {
  float: right;
}
.addthis_button_facebook_like iframe {
  width: 130px !important;
}

.jsfiddle {
  border: solid 1px #ccc;
  border-radius: 4px;
  box-shadow: 1px 1px 4px rgba(0,0,0,.1);
  margin: 0 auto 9px;
  overflow: hidden;
  width: 90%;
}
figure {
  background-color: #f9f9f9;
  padding: 1em;
  text-align: center;
}
figure.aside-right {
  float: right;
  margin: 0 0 1em 1em;
}
img.bordered {
  border-radius: 4px;
  box-shadow:
    -1px -1px 0 #ccc,
     1px -1px 0 #ccc,
     1px  1px 0 #ccc,
    -1px  1px 0 #ccc,
    0 0 8px #ccc;
}
img.bordered.alignright {
  margin: 0 0 8px 8px;
}
figure img {
  max-width: 100%;
}
figure.aside-right img {
  max-width: 300px;
}
figcaption {
  margin: .5em;
}

/* fix confliction of highlighter vs bootstrap */
.syntaxhighlighter .container::before,
.syntaxhighlighter .container::after {
  display: none;
}

/**
 * customize syntax highlighter
 */

html .syntaxhighlighter table td.gutter .line:first-child,
html .syntaxhighlighter table td.code .line:first-child {
	padding-top: 0.5em !important;
}

html .syntaxhighlighter table td.gutter .line:last-child,
html .syntaxhighlighter table td.code .line:last-child {
	padding-bottom: 0.5em !important;
}

/*
body {
  -ms-animation-duration: .1s;
  -ms-animation-name: viberate;
  -ms-animation-iteration-count: 50;
  -moz-animation-duration: .1s;
  -moz-animation-name: viberate;
  -moz-animation-iteration-count: 50;
  -o-animation-duration: .1s;
  -o-animation-name: viberate;
  -o-animation-iteration-count: 50;
  -webkit-animation-duration: .1s;
  -webkit-animation-name: viberate;
  -webkit-animation-iteration-count: 50;
  animation-duration: .1s;
  animation-name: viberate;
  animation-iteration-count: 50;
}
@-ms-keyframes viberate {
  0% { -webkit-transform: translate(1px, 1px); }
  25% { -webkit-transform: translate(-1px, 1px); }
  50% { -webkit-transform: translate(-1px, -1px); }
  100% { -webkit-transform: translate(1px, -1px); }
}
@-moz-keyframes viberate {
  0% { -webkit-transform: translate(1px, 1px); }
  25% { -webkit-transform: translate(-1px, 1px); }
  50% { -webkit-transform: translate(-1px, -1px); }
  100% { -webkit-transform: translate(1px, -1px); }
}
@-o-keyframes viberate {
  0% { -webkit-transform: translate(1px, 1px); }
  25% { -webkit-transform: translate(-1px, 1px); }
  50% { -webkit-transform: translate(-1px, -1px); }
  100% { -webkit-transform: translate(1px, -1px); }
}
@-webkit-keyframes viberate {
  0% { -webkit-transform: translate(1px, 1px); }
  25% { -webkit-transform: translate(-1px, 1px); }
  50% { -webkit-transform: translate(-1px, -1px); }
  100% { -webkit-transform: translate(1px, -1px); }
}
@keyframes viberate {
  0% { -webkit-transform: translate(1px, 1px); }
  25% { -webkit-transform: translate(-1px, 1px); }
  50% { -webkit-transform: translate(-1px, -1px); }
  100% { -webkit-transform: translate(1px, -1px); }
}
*/

.for-mobile {
  display: none;
}
@media screen and (max-width:640px){
  body {
    min-width:0
  }
  .for-mobile {
    display: block;
  }
  #global_header {
    position: absolute;
  }
  #main {
    margin-left: 0;
    margin-right: 0;
  }
  #main article h1 {
    font-size: 1.5em;
    margin-left: 55px;
    margin-right: 0;
  }
}

.notice-sslLink {
  background-color: #ffe;
  border: 1px solid #990;
  border-radius: 4px;
  margin: 2em 10px;
  padding: 3em;
}
