/*
Theme Name: EngineerSimple
Author: Yo
Author URI: https://engineeershareinfo.com
Description: Simple theme for an engineer
*/

/*--------------------------------------------------------------
1.0 - Reset
--------------------------------------------------------------*/
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 {
	border: 0;
	font-family: inherit;
	font-size: 100%;
	font-style: inherit;
	font-weight: inherit;
	margin: 0;
	outline: 0;
	padding: 0;
	vertical-align: baseline;
}
html {
	font-size: 62.5%; 
	overflow-y: scroll; /* Keeps page centered in all browsers regardless of content height */
	-webkit-text-size-adjust: 100%; /* Prevents iOS text size adjust after orientation change, without disabling user zoom */
	-ms-text-size-adjust: 100%;
}
*,
*:before,
*:after { /* apply a natural box layout model to all elements; see http://www.paulirish.com/2012/box-sizing-border-box-ftw/ */
	-webkit-box-sizing: border-box; /* Not needed for modern webkit but still used by Blackberry Browser 7.0; 
	-moz-box-sizing:		border-box;
	box-sizing:				 border-box;
}
body {
	background: #fff;
}
article,
aside,
details,
figcaption,
figure,
footer,
header,
main,
nav,
section {
	display: block;
}
ol, ul {
	list-style: none;
}
table { /* tables still need 'cellspacing="0"' in the markup */
	border-collapse: separate;
	border-spacing: 0;
}
caption, th, td {
	font-weight: normal;
	text-align: left;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: "";
}
blockquote, q {
	quotes: "" "";
}
a:focus {
	outline: thin dotted;
}
a:hover,
a:active {
	outline: 0;
}
a img {
	border: 0;
}

/*--------------------------------------------------------------
2.0 Typography
--------------------------------------------------------------*/

/*--------------------------------------------------------------
2.1 Global
--------------------------------------------------------------*/
body,
button,
input,
select,
textarea {
	background: #fff;
	color: #222222;
	font-family: Arial, YuGothic, "Yu Gothic", "ヒラギノ角ゴ Pro", "Hiragino Kaku Gothic Pro", "メイリオ", "Meiryo", sans-serif;
    font-weight: 300;
	font-size: 16px;
	font-size: 1.6rem;
	line-height: 1.8;
}

/*--------------------------------------------------------------
2.2 Headings
--------------------------------------------------------------*/
h1, h2, h3, h4, h5, h6 {
	clear: both;
	color: #0a070f;
	line-height: 1.6;
}
h1, h3 {
	margin-top: 15px;
	margin-bottom: 12px;
}
h2 {
	margin-top: 5px;
	margin-bottom: 12px;
}

h4 {
	margin-top: 10.5px;
	margin-bottom: 10.5px;
}

/* more than tablet  */
@media screen and (min-width: 641px) {
h1 {
	font-size: 24px;
	font-size: 2.4rem;
    font-weight:bold;
}
h2 {
	font-size: 24px;
	font-size: 2.4rem;
    font-weight: bold;
}
}

/* large smartPhone */
@media screen and (min-width: 361px) and (max-width: 640px) {
h1{	
    font-size: 18px;
	font-size: 1.8rem;
    font-weight:bold;
}
h2 {
	font-size: 22px;
	font-size: 2.2rem;
    font-weight: bold;
}
}
  
/* smartPhone */
@media screen and (max-width: 360px) {
h1{	
    font-size: 16px;
	font-size: 1.6rem;
    font-weight:bold;
}
h2 {
	font-size: 20px;
	font-size: 2.0rem;
    font-weight: bold;
}
}

h3 {
	font-size: 20px;
	font-size: 2.0rem;
    padding: 0.25em .75em;
	border-top: 1.5px solid #222222;
	border-bottom: 1.5px solid #222222;
    font-weight: bold;
    text-align: center;
}

h4 {
	font-size: 18px;
	font-size: 1.8rem;
    border-bottom: 3px solid #efefef;
    font-weight: bold;
}
h5 { /* not used */
	font-size: 12px;
	font-size: 1.2rem;
    font-weight: bold;
	margin-top:5px;
	margin-bottom:5px;
}
h6 { /* Top page title for post */
	font-size: 16px;
	font-size: 1.6rem;
    margin-top: 0px;
	margin-bottom: 15px;
}

/*--------------------------------------------------------------
2.3 Paragraph
--------------------------------------------------------------*/
p {
	margin-bottom: 1.6em;
}
p:last-child {
	margin-bottom: 0;
}

/*--------------------------------------------------------------
2.4 General
--------------------------------------------------------------*/
::selection {
	background-color: #444;
	color: #fff;
}
b, strong {
	font-weight: bold;
}
dfn, cite, em, i {
	font-style: italic;
}
code, kbd, tt, var {
	background: #fafafa;
	border: 1px dashed #eee;
	font: 15px Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
}
abbr, acronym {
	border-bottom: 1px dotted #eee;
	cursor: help;
}
sup,
sub {
	font-size: 75%;
	height: 0;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}
sup {
	bottom: 1ex;
}
sub {
	top: .5ex;
}
small {
	font-size: 75%;
}
big {
	font-size: 125%;
}
cite {
	font-size: 12px;
	font-style: normal;
	text-transform: uppercase;
}
address {
	font-style: italic;
	margin: 0 0 1.5em;
}


/*--------------------------------------------------------------
2.5 Blockquote
--------------------------------------------------------------*/
blockquote {
    position: relative;
    padding: 30px 15px 8px 15px;
	margin-bottom: 15px;
    box-sizing: border-box;
    font-style: italic;
    background: #f7f7f7;
    color: #000;
}

blockquote:before{
    display: inline-block;
    position: absolute;
    top: 13px;
    left: 15px;
    vertical-align: middle;
    content: "\f10d";
    font-family: 'Font Awesome\ 5 Free';
    color: #cfcfcf;
    font-size: 28px;
    line-height: 1;
}

blockquote p {
    padding: 0;
    margin: 10px 0px;
    line-height: 1.7;
}

blockquote cite {
    display: block;
    text-align: right;
    color: #888888;
    font-size: 0.9em;
}
/*--------------------------------------------------------------
3.0 Elements
--------------------------------------------------------------*/

/*--------------------------------------------------------------
3.1 Links
--------------------------------------------------------------*/
a,
a:visited {
	color: #474747;
	text-decoration: none;
}
a:hover,
a:focus,
a:active {
	color: black;
    text-decoration: underline;
}

.content a {
    color: #072bf7;
    text-decoration: underline;
}


/*--------------------------------------------------------------
3.3 List
--------------------------------------------------------------*/
ul, ol {
	margin: 0 0 1.5em 3em;
}
ul {
	list-style: disc;
}
ul ul {
	list-style: circle;
}
ul ul ul {
	list-style: square;
}
ol {
	list-style: decimal;
}
ol ol {
	list-style: upper-alpha;
}
ol ol ol {
	list-style: lower-roman;
}
ol ol ol ol {
	list-style: lower-alpha;
}
li > ul,
li > ol {
	margin-bottom: 0;
	margin-left: 1.5em;
}

/*--------------------------------------------------------------
3.4 Table
--------------------------------------------------------------*/
table {
	margin: 0 0 1.5em;
	width: 100%;
}
th {
	border-bottom: 1px solid #eee;
	font-weight: bold;
}
td {
	border-bottom: 1px solid #eee;
	padding: 5px 0;
}

/*--------------------------------------------------------------
3.5 Image
--------------------------------------------------------------*/
img {
	height: auto; /* Make sure images are scaled correctly. */
	max-width: 100%; /* Adhere to container width. */
	vertical-align: middle;
}

/*--------------------------------------------------------------
3.6 HTML5 Elements
--------------------------------------------------------------*/
figure {
	margin: 0;
}
embed,
iframe,
object {
	max-width: 100%; /* Make sure embeds and iframes fit their containers */
}
audio,
canvas,
video {
	display: inline-block;
	max-width: 100%;
}

/*--------------------------------------------------------------
X.X .title Elements
--------------------------------------------------------------*/
.title {
    text-align: center;
    padding: 5px 10px 0px 10px;
}

/*--------------------------------------------------------------
X.X .box3 Elements
--------------------------------------------------------------*/
.box3 {
    max-width: 1050px;
    margin: 5px;
    margin-left:auto;
    margin-right:auto;
    font-size: .9em;
    overflow: auto;
    text-align: center; /* block要素すべてを中央揃え */
    }
    .box3 .posts {
    max-width: 320px;          /* 横幅を固定して */
    display: inline-block; /* インラインブロック化 */
    vertical-align: top;   /* 上端を揃える */
    margin: 3px 2px;
    padding: 10px ;
    border: #fff;
    background-color: #fff;
    text-align: left; /* 文章は左寄せ */
}

.date-cat {
    font-family:Futura;
	margin: -23px 7px;
    color: white;
    text-shadow: 1px 1px 1px rgb(127, 127, 127);
}

/*--------------------------------------------------------------
X.X .thumbnail-image Elements in Top-page
--------------------------------------------------------------*/
.thumbnail-image img {
   border-radius: 7px;
}

/*--------------------------------------------------------------
X.X .category (Category list)
--------------------------------------------------------------*/
@media screen and (min-width: 641px) {
.category{
    margin-left:auto;
    margin-right:auto;
    text-align: center;
	max-width:660px;
}
}
@media screen and (max-width: 640px) {
.category{
    margin-left:auto;
    margin-right:auto;
    text-align: center;
	max-width:370px;
}
}

.top-category {
  margin: 0;
  padding: 0px 5px 2px 5px;
  list-style: none;
}

.top-category li {
      margin:0px 1px 3px 1px;
      padding: 0px 4px 0px 4px;
   	  font-size: 14px;
      display: inline-block;
      border-bottom: 1px solid #cccccc;
}

/* use FontAwesome */
.cat-item:before {
  font-family: 'Font Awesome\ 5 Free';
  margin-right:3px;
}

/*Blog*/
.cat-item-8:before { content: " \f044";}
/*Book*/
.cat-item-9:before { content: " \f02d";}
/*英語*/
.cat-item-4:before { content: " \f1ab";}
/*View*/
.cat-item-10:before { content: " \f075";}
/*iPhoneiPadMac*/
.cat-item-14:before { content: " \f3cd";}
/*Less is More*/
.cat-item-15:before { content: " \f146";}
/*Money*/
.cat-item-16:before { content: " \f201";}
/*その他*/
.cat-item-17:before { content: " \f0b0";}
/*Cafe*/
.cat-item-18:before { content: " \f0f4";}
/*設計技術*/
.cat-item-19:before { content: " \f19d";}
/*Fashion*/
.cat-item-20:before { content: " \f21d";}
/*music*/
.cat-item-21:before { content: " \f001";}
/*Camera*/
.cat-item-23:before { content: " \f030";}
/*Life*/
.cat-item-24:before { content: " \f0ac";}
/*Goods*/
.cat-item-25:before { content: " \f06b";}
/*Travel*/
.cat-item-26:before { content: " \f072";}
/*--------------------------------------------------------------
X.X pagination Elements
--------------------------------------------------------------*/
.pagination h2.screen-reader-text { display: none; }

.pagination a {
	padding: 2px 10px;
	display: inline-block;
	border: solid 1px #a8a8a8;
	color: #666666;
/*	background-color: #e2e2e2;*/
	font-size: 14px;
	text-decoration: none;
    border-radius:15px;
}
.pagination a:hover {
	background-color: #e8e8e8;
}
.pagination span {
	padding: 5px 10px;
	display: inline-block;
}
.pagination span.current {
}
.pagination {
	overflow: hidden;
	margin-top: 20px;
	margin-bottom: 20px;
	text-align: center;
	clear: both;
	background-color: transparent;
}

/*--------------------------------------------------------------
X.X .maincontent Elements in Single.php
--------------------------------------------------------------*/
.maincontent {
    max-width: 660px;
    margin: 5px;
    padding: 17px;
    margin-left:auto;
    margin-right:auto;
}

/*--------------------------------------------------------------
X.X .top-thumbnail Elements in Single.php
--------------------------------------------------------------*/
.top-thumbnail img{
    margin-bottom: 15px;
    border-radius:7px;
}

/*--------------------------------------------------------------
X.X .related-entries in Single.php
--------------------------------------------------------------*/
.related-entries {
    max-width: 770px;
    margin: 0px 0px 15px 0px;
	padding: 3px;
    margin-left:auto;
    margin-right:auto;
    overflow: auto;
    text-align: center; /* block要素すべてを中央揃え */
    }
@media screen and (min-width: 361px) {
    .related-entries .related-entry {
    max-width: 170px;          /* 横幅を固定して */
    display: inline-block; /* インラインブロック化 */
    vertical-align: top;   /* 上端を揃える */
    margin: 7px 3px;
    padding: 0px ;
    border: #fff;
    background-color: #fff;
    text-align: left; /* 文章は左寄せ */
}}
@media screen and (max-width: 360px) {
    .related-entries .related-entry {
    max-width: 140px;          /* 横幅を固定して */
    display: inline-block; /* インラインブロック化 */
    vertical-align: top;   /* 上端を揃える */
    margin: 7px 3px;
    padding: 0px ;
    border: #fff;
    background-color: #fff;
    text-align: left; /* 文章は左寄せ */
}}

.relatedtitle { /* for related post */
	font-size: 12px;
	font-size: 1.2rem;
    font-weight: bold;
	margin-top:2px;
	margin-bottom:5px;
}

/*--------------------------------------------------------------
X.X .Recent-entries in Single.php
--------------------------------------------------------------*/
.recent-post-date {
	font-size: 12px;
	font-size: 1.2rem;
    font-weight: bold;
    font-family:Futura;
	margin: -20px 5px;
    color: white;
    text-shadow: 1px 1px 1px rgb(127, 127, 127);
}


/*--------------------------------------------------------------
X.X Search-widget
--------------------------------------------------------------*/
.s{
    margin: 0 0 0 10px;
    height: 28px;
    width: 9em;
    transition: all .6s ease;
    border-bottom:1px solid #cccccc;
    border-right:none;
    border-left:none;
    border-top:none;
	border-radius:0px;
}
.s:focus{
    width:16em;
}
.searchsubmit { 
    vertical-align:top;
	width: 35px;
	height: 30px;
	padding: 0;
    font-family: 'Font Awesome\ 5 Free';/*虫眼鏡表示のため　headerにもリンク有り*/
	font-size: 18px;	
	border: none;
	background: transparent;
	cursor: pointer;
}

/*--------------------------------------------------------------
X.X menu-bar in footer
--------------------------------------------------------------*/
.menu-bar{
  list-style: none;
    margin-left:auto;
    margin-right:auto;
    text-align: center;
    max-width:900px;
}
.menu-bar li{
    margin: 10px 60px -5px 0px;
    padding: 2px 0px 0px 0px;
    list-style: none;
}

/*--------------------------------------------------------------
X.X .infeedads Elements in Single.php
--------------------------------------------------------------*/
.infeedads {
    max-width: 550px;
    margin: 5px;
    padding: 17px;
    margin-left:auto;
    margin-right:auto;
}