/*
Theme Name: pistolfly
Theme URI: https://pistolfly.jp/weblog/
Description: Twenty Fourteen の子テーマ。このサイト固有のカスタマイズをまとめている。
Author: Dai Endo
Template: twentyfourteen
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pistolfly
*/

/*
 * 以下は管理画面の「追加CSS」(DBのcustom_css投稿)にあったものを移設したもの。
 * 追加CSSはwp_headの最後に出力されていたが、このファイルは通常のテーマCSSとして
 * 親のstyle.cssの後に読み込まれる。両者の間に優先順位の衝突は無い
 * (同一セレクタに同一プロパティを指定している箇所が親テーマ側と一切ない)。
 */

/* メイリオ斜体のため */
@font-face {
  font-family: Meiryo;
  src: local('Meiryo'), local('メイリオ');
}

@font-face {
  font-family: "Yu Gothic";
  src: local("Yu Gothic Light");
  font-weight: 100;
}
@font-face {
  font-family: "Yu Gothic";
  src: local("Yu Gothic Light");
  font-weight: 200;
}
@font-face {
  font-family: "Yu Gothic";
  src: local("Yu Gothic Regular");
  font-weight: 300;
}
@font-face {
  font-family: "Yu Gothic";
  src: local("Yu Gothic Medium");
  font-weight: 400;
}
@font-face {
  font-family: "Yu Gothic";
  src: local("Yu Gothic Bold");
  font-weight: bold;
}

html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic Pro","ヒラギノ角ゴ Pro W3", "Noto Sans JP", "Yu Gothic", "Meiryo", "メイリオ", sans-serif;
  text-transform: none !important;
}

button, input, optgroup, select, textarea {
  font-family: inherit;
}

pre {
  border:solid 1px #888888;
  background-color:#EFEFEF;
  overflow:auto;
  padding:10px;
  font-family: Menlo, Monaco, "Cascadia Mono", Consolas, 'Courier New', Courier, monospace !important;
	text-shadow: none;
}

pre > span {
  font-family: Menlo, Monaco, "Cascadia Mono", Consolas, 'Courier New', Courier, monospace !important;
}

pre.command-line {
  border-left:none;
  border-right:none;
  background-color:#333;
  color:#eee;
  padding:10px;
  white-space: pre;
}

pre.prettyprint {
  padding:10px !important;
  white-space: pre;
}

pre.url {
  background-color:#fff;
  color:#006;
}
pre.url code {
  font-family: Verdana;
}

kbd {
  font-family: Menlo, Monaco, "Cascadia Mono", Consolas, Menlo, 'Courier New', Courier, monospace !important;
  background-color: #eee;
  border-radius: 3px;
  border: 1px solid #b4b4b4;
  box-shadow:
    0 1px 1px rgba(0, 0, 0, 0.2),
    0 2px 0 0 rgba(255, 255, 255, 0.7) inset;
  color: #333;
  display: inline-block;
  font-size: 0.85em;
  font-weight: 700;
  line-height: 1;
  padding: 2px 4px;
  white-space: nowrap;
}

.ad {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.ad ins {
  background-color: transparent;
}

#content .ad {
  margin-top: 1em;
  max-width: 100%;
  overflow: hidden;
}

.share_buttons {
  margin-top:10px;
}
.share_buttons iframe {
  margin-bottom: 0;
}
.share_button {
  vertical-align: top;
  line-height: 0;
  display: inline-block;
  margin-bottom: 8px;
  margin-right: 5px;
}

.site-header .ad {
  text-align:right;
  padding-right:10px;
  margin-top:-40px;
  margin-bottom:0;
}
.site-header .ad img {
  height: auto;
  margin-bottom:0;
  width: auto;
  max-width: 100%;
}
@media screen and (max-width: 750px) {
  .site-header .ad {
    margin-top: auto;
  }
	
	.share_buttons.is_not_single {
    display: none;
  }
}

.hatena-bookmark-button-wrapper {
}
.hatena-bookmark-widget ul {
  margin:0 !important;
}
.hatena-bookmark-widget ul li {
  list-style:none;
}

.tweet_button {
}

.widget_recent_entries ul li, .widget_recent_comments ul li {
  margin-bottom: 8px;
  line-height: 1.6 !important;
}
ul.access_ranking {
  list-style: none !important;
  margin: 0;
}
ul.access_ranking li {
  margin-bottom: 8px;
  margin-left: 0 !important;
  line-height: 1.6 !important;
}

.entry-content ol.access_ranking li {
  margin-bottom:1em;
  margin-left: 0;
  line-height: 1.6;
}
.entry-content ol.access_ranking li a {
  text-decoration: none;
}
@media screen and (max-width: 750px) {
  .entry-content ol.access_ranking {
    padding-left: 10px;
    padding-right:10px;
  }
}

.hatena-bookmark-widget-title a:hover {
  color:#ffffff !important;
}

.alert {
  background: url("/images/icons/error.png") 8px 12px no-repeat;
  background-color: #fff3cd;
  border: 1px solid #ffeeba;
  border-radius: 3px;
  margin-bottom: 20px;
  padding: 10px 4px 10px 34px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}
.alert, .alert h4 {
  color: #856404;
}
.alert-block {
  padding-bottom: 14px;
  padding-top: 14px;
}

#page_top_btn {
  background: #24890D;
  border-radius: 5px;
  color: #ffffff;
  padding: 10px 20px;
  position: fixed;
  bottom: 20px;
  right: 20px;
  font-size: 80%;
  z-index: 100;
}
#page_top_btn:hover{
  background: #41a62a;
}

.entry-title {
  word-wrap: break-word;
  word-break: break-word;
  font-weight: 400;
}

.author-profile .avatar {
  margin-bottom: 0.5em;
}

.comment-reply-title,
.comments-title {
  word-wrap: break-word;
}

ins.adsbygoogle {
  background: transparent;
}

.entry-content li {
	margin-top: 0.8em;
}

.entry-content .google-auto-placed {
	margin-top: 1.5em;
	margin-bottom: 1.5em;
}

.path:lang(ja) {
  font-family: "MS Gothic", Meiryo, monospace !important;
}
