@charset "utf-8";

/*
Theme Name: J.Okawa WEB
Theme URI: http://jun-okawa.com/
Author: Jun Okawa (jirjir17)
Author URI: http://jun-okawa.com/
Description: This is my theme.
Version: 2.0.0
*/

/* 基本 */
body {
  /* 新ゴはエックスサーバーのWEBフォントなので外すときは削除 */
  font-family: '新ゴ R', 'メイリオ', 'Hiragino Kaku Gothic Pro', sans-serif !important;
  margin: 10px 5px;
  padding-top: 50px;
}

b {
	/* 新ゴはエックスサーバーのWEBフォントなので外すときは削除 */
	font-family: '新ゴ B';
}

a {
  text-decoration: none;
  color: #0c8bcd;
}

a:hover {
  text-decoration: underline;
  color: #ff0000;
}

img {
  max-width: 100%;
}

img.twitter {
	background-color: #55acee;
	border-radius: 3px;
}

a img {
  border: none;
}

a.exp {
  text-decoration: none;
  background-color: #ffffff;
  color: #000000;
}

/* ヘッダ */
div#headerleft {
  margin-bottom: 5px;
}

div#headerleft h1 {
  font-size: 170%;
  margin: 0;
}

div#headerleft h1 a {
  text-decoration: none;
  color: #000000;
}

div#headerleft p#desc {
  font-size: 100%;
  /* 新ゴはエックスサーバーのWEBフォントなので外すときは削除 */
  font-family: '新ゴ B';
  /* font-weight: bold; */
  color: #999999;
  margin: 0 0 5px;
}

img.header {
  width: 100%;
  margin-bottom: 20px;
}

/* ナビゲーションバー */
.sitename{
    margin:15px 0 15px;
}
.sitename a{
    font-size: 160%;
    color: inherit;
}
 
i{
    font-size: 130%;
    color: inherit;
}

.navbar {
  margin-bottom: 10px;
}
 
.navbar a {
	/* 新ゴはエックスサーバーのWEBフォントなので外すときは削除 */
	font-family: '新ゴ B';
    /* font-weight: bold; */
    /*
    text-align: center;
    border-left: 1px solid rgba(255, 255, 255, .75);
    border-right: 1px solid rgba(0, 0, 0, .1);
    */
}

.navbar a:hover {
	text-decoration: none;
}

/*
.navbar .nav li:last-child a {
    border-right: 0;
    border-radius: 0 3px 3px 0;
}
*/

.navbar-toggler:focus {
	box-shadow: 0 0 0 0;
}

/* フッタ */
div#footer {
  border-top: solid 1px #aaaaaa;
  padding: 6px 0;
  clear: both;
}

div#footer p {
  font-size: 95%;
  font-style: normal;
  font-family: Verdana, sans-serif;
  margin: 0
}

/* コンテンツ */
div#content {
  font-size: 100%;
}

p.title {
	/* 新ゴはエックスサーバーのWEBフォントなので外すときは削除 */
	font-family: '新ゴ B';
	/* font-weight: bold; */
	color: #585858;
	margin: 0 0 10px;
	padding: 0 30px 0 10px;
}

p.pagenation {
  font-size: 100%;
  overflow: hidden;
}

span.oldpage {
  float: left;
}

span.newpage {
  float: right;
}

/* 記事 */
div.post {
  margin-bottom: 30px;
  overflow: hidden;
  font-size: 100%;
  line-height: 1.6;
}

div.post .posttitle {
  vertical-align: middle;
}

div.post section.postdate a {
	text-decoration: none;
	background-color: #ffffff;
	color: #000000;
}

div.post .emdate {
	font-size: 150%;
	/* 新ゴはエックスサーバーのWEBフォントなので外すときは削除 */
	font-family: '新ゴ B';
	/* font-weight: bold; */
}

div.post .caption {
  margin: 1em 0em 1em 0em;
  padding: 0.2em 0.5em;
  border-style: solid;
  border-width: 0px 0px 0px 15px;
  border-color: #0091D2;
}

div.post h2 {
	border-top: solid 1px #aaaaaa;
	border-bottom: solid 1px #aaaaaa;
	line-height: 110%;
	font-size: 130%;
	/* 新ゴはエックスサーバーのWEBフォントなので外すときは削除 */
	font-family: '新ゴ B';
	/* font-weight: bold; */
	padding: 10px 10px;
	margin: 0px;
	margin-bottom: 5px;
}

div.post h2 a {
  text-decoration: none;
  color: #000000;
}

div.post p.category {
	font-size: 95%;
	color: #555555;
	margin: 15px 0px !important;
}

div.post blockquote{
  font-size: 100%;
  background-color: #ededed;  /*背景色*/
  padding: 5px 5px 5px 5px;  /*パディング幅（上・右・下・左）*/
  border: #bbbbbb 1px solid;  /*まわりの枠（色・太さ・スタイル）*/
  border-left: #bbbbbb 5px solid;  /*左の枠（色・太さ・スタイル）*/
  margin: 3px 10px 3px 10px;  /*マージン幅（上・右・下・左）*/
}

/* 記事内の画像 */

div.post img.postimg {
	clear: both;
	float: right;
	margin-left: 20px;
	margin-bottom: 15px;
	max-width: 40%;
	max-height: 250px;
	width: auto;
	height: auto;
}

@media (max-width: 767px) {
	div.post img.postimg {
		display: block;
		float: none;
		width: 100%;
		height: auto;
		max-width: 100%;
		max-height: 100%;
		margin-left: 0px;
	}
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.alignleft {
  display: left;
  margin-left: 10px;
  margin-right: 10px;
}

.alignright {
  display: right;
  margin-left: 10px;
  margin-right: 10px;
}

.wp-caption {
  border: solid 1px #aaaaaa;
  text-align: center;
  padding-top: 5px;
}

/* サイドバー */
div#sidebar ul {
  margin: 0;
  padding: 0;
  list-style-type: none;
}

/* WP4.2以降に表示されるタイトルを非表示にする */
div#sidebar label.screen-reader-text {
	display: none;
}

div#sidebar .widget {
  margin-bottom: 20px;
}

div#sidebar h2 {
  font-size: 100%;
  color: #ffffff;
  background-color: #aaaaaa;
  border-radius: 3px;
  padding: 2px 10px;
  margin: 0;
}

div#sidebar li li {
  font-size: 80%;
  border-bottom: dotted 1px #aaaaaa;
  margin: 0;
}

div#sidebar li li a {
  text-decoration: none;
  color: #000000;
  display: block;
  padding: 5px 10px;
}

div#sidebar li li a:hover {
  background-color: #a9effc;
  color: #000000;
}

/* ギャラリー */
.gallery-item {
  width: 33%;
  float: left;
  margin-top: 0;
  text-align: center;
}

.gallery img {
  border: solid 1px #aaaaaa;
  padding: 5px;
}

.gallery a:hover img {
  background-color: #c4f254;
}

.gallery dd {
  margin: 0;
  font-size: 80%;
}

.gallery br+br {
  display: none;
}

/* 画像の個別ページ */
.attachment div#content {
  width: 100%;
  float: none;
}

.attachment p.photo {
  text-align: center;
}

/* 検索フォーム */
#searchform, #searchform div {
  display: inline;
}

#searchform label {
  display: none;
}

#s {
  border: solid 1px #aaaaaa;
  border-radius: 5px;
  padding: 3px 8px;
}

#s:hover, #s:focus {
  background-color: #eeeeee;
}

#searchsubmit {
  background-color: #666666;
  border-radius: 5px;
  color: #ffffff;
  border: solid 1px #aaaaaa;
  padding: 2px 8px;
  margin-right: 10px;
}

#searchsubmit:hover {
  background-color: #aaaaaa;
}

div.gad {
	margin-top: 35px;
	margin-bottom: 35px;
}

div.post .empha-red {
	/* 新ゴはエックスサーバーのWEBフォントなので外すときは削除 */
	font-family: '新ゴ B';
	/* font-weight: bold; */
	color: #fa8072;
}

div.post .empha-green {
	/* 新ゴはエックスサーバーのWEBフォントなので外すときは削除 */
	font-family: '新ゴ B';
	/* font-weight: bold; */
	color: #339900;
}

div.post .refer {
	font-size: smaller;
	font-style: italic;
}

/* スマホ向け微調整 */
.row {
	margin-left: -5px !important;
	margin-right: -5px !important;
}

/* TOPに戻るボタン */
#page-top{
    position:fixed;
    right:16px;
    bottom:16px;
    display: none;
}
 
#page-top a{
    color:#fff;
    padding:10px;
    text-decoration:none;
    display:block;
    cursor:pointer;
    text-align:center;
    background:#888;
    line-height:100%;
    border-radius: 5px;
    -webkit-border-radius: 5px;
     -moz-border-radius: 5px; 
}
 
#page-top a:hover{
    background:#8b8b8b;
    -webkit-transition:all 0.3s;
    -moz-transition:all 0.3s;
    transition:all 0.3s;
}

/* パンくず */
#breadcrumb {
	margin-bottom: 20px;
	color: #777;
	font-size: 12px;
}

div#breadcrumb div {
	display: inline;
}

#breadcrumb span.sp {
	margin: 0 10px;
}

#breadcrumb a {
	text-decoration: none;
	color: #777;
}

span.weekday {
	color: #000000;
}

span.saturday {
	color: #0000ff;
}

span.sunday {
	color: #ff0000;
}

/* ダークモード */
@media (prefers-color-scheme: dark) {
	body {
		color: #ffffff;
		background-color: #222222;
	}
	
	p.title {
		color: #9c9c9c;
	}
	
	a {
		color: #22b3f4;
	}
	
	a:hover {
		color: #e3494f;
	}
	
	a[name] {
	  color: #ffffff;
	}
	
	a[name]:hover {
	  color: #ffffff;
	}
	
	a.exp {
	  text-decoration: none;
	  background-color: #222222;
	  color: #ffffff;
	}
	
	.navbar {
		background-color: #222222;
		border-color: #080808;
	}
	
	/*
	.navbar-nav>.active>a {
		color: #ffffff !important;
		background-color: #080808 !important;
	}
	*/
	
	div#headerleft h1 a {
		color: #ffffff;
	}
	
	div.post p.category {
		color: #aaaaaa;
	}
	
	div.post blockquote{
		color: #000000;
	}
	
	div#sidebar h2 {
		background-color: #777777;
	}
	
	div#sidebar li li a {
		color: #ffffff;
	}
	
	div#sidebar input,select {
		color: #000000;
	}
	
	input#searchsubmit {
		color: #ffffff !important;
	}
	
	#breadcrumb {
		color: #aaa;
	}
	
	#breadcrumb a {
		color: #aaa;
	}
	
	span.weekday {
		color: #ffffff;
	}

	span.saturday {
		color: #0091d2;
	}

	span.sunday {
		color: #ff2222;
	}
}