/*
Theme Name:  TDI
*/ 

.wp_post:after {
	content: ".";
  display: block;
  clear: both;
  height: 0;
  visibility: hidden;
}
.wp_post {
  display: block;
  text-align: left;
}
.wp_post * {
  max-width: 100%;
}
.wp_post p {
  margin: 1em 0;
  font-size: 18px;
}
@media screen and (max-width: 750px){
  .wp_post p {
    font-size: 16px;
  }
}
.wp_post strong { font-weight: bold; }
.wp_post em { font-style: italic; }
.wp_post pre {
  background-color: #eee;
  border: 1px solid #ccc;
  padding: 7px;
  overflow: auto;
  white-space: pre-wrap;
  word-wrap: break-word;
  font-size: 18px;
}
.wp_post blockquote {
  background: none repeat scroll 0 0 rgba(245, 245, 245, 0.8);
  border: 1px solid #FFFFFF;
  margin: 1em 0;
  padding: 20px 55px;
  position: relative;
  font-size: 18px;
}
.wp_post blockquote:before {
  color: #C8C8C8;
  content: "“";
  font-family: serif;
  font-size: 600%;
  left: 0;
  line-height: 1em;
  position: absolute;
  top: 0;
}
.wp_post blockquote:after {
  color: #C8C8C8;
  content: "”";
  font-family: serif;
  font-size: 600%;
  line-height: 0;
  position: absolute;
  right: 0;
  bottom: -16px;
}
.wp_post h1 {
  font-size: 26px;
  font-weight: bold;
  line-height: 1.3em;
  margin-top: 2em;
  margin-bottom: 1em;
  padding-top: 10px;
  padding-bottom: 10px;
  border-bottom: 2px solid #3F58A4;
  border-top: 2px solid #3F58A4;
  clear: both;
}
.wp_post h2 {
  font-size: 24px;
  font-weight: bold;
  line-height: 1.3em;
  margin-top: 2em;
  margin-bottom: 1em;
  padding-top: 10px;
  padding-bottom: 10px;
  border-bottom: 2px solid #3F58A4;
  border-top: 2px solid #3F58A4;
  clear: both;
}
.wsp-pages-title {
  margin-top: 0 !important;
}
.wp_post h3 {
  font-size: 20px;
  font-weight: bold;
  line-height: 1.3em;
  margin-top: 2em;
  margin-bottom: 1em;
  border-left: 5px solid #3F58A4;
  padding-left: 6px;
  clear: both;
}
.wp_post h4 {
  font-size: 18px;
  font-weight: bold;
  line-height: 1.3em;
  margin-top: 2em;
  margin-bottom: 1em;
  border-bottom: 1px solid #3F58A4;
  padding-bottom: 5px;
  clear: both;
}
.wp_post h5 {
  font-size: 16px;
  font-weight: bold;
  line-height: 1.3em;
  margin-top: 2em;
  margin-bottom: 1em;
  clear: both;
}
.wp_post h6 {
  font-size: 16px;
  font-weight: bold;
  line-height: 1.3em;
  margin-top: 2em;
  margin-bottom: 1em;
  clear: both;
}

.wp_post table {
	width: 100%;
  margin-bottom: 2em;
  border-collapse: collapse;
  border-spacing: 0;
}
.wp_post table th {
	background-color: #eee;
	padding: 8px;
  border: 1px solid #AAAAAA;
  font-size: 16px;
}
.wp_post table td {
	padding: 8px;
  border: 1px solid #AAAAAA;
  font-size: 16px;
}
.wp_post ul {
	list-style: disc;
	padding-left: 1.2em;
	margin-bottom: 1em;
}
.wp_post ol {
	list-style: decimal;
	padding-left: 1.2em;
	margin-bottom: 1em;
}
.wp_post ul li,
.wp_post ol li {
  margin: 10px 0;
  font-size: 16px;
}
.wp_post a:not(.telLink) {
	text-decoration: underline;
	color: #003CFF;
}
.wp_post a:hover {
	color: #FF0004;
}
.wp_post dt {
  font-weight: bold;
  margin-bottom: 10px;
  font-size: 16px;
}
.wp_post dd {
  margin-bottom: 20px;
  font-size: 16px;
}
/* img */
.wp_post img {
	vertical-align: middle;
  height: auto;
  max-width: 100%;
}
.wp_post img[class*="wp-image-"],
.wp_post img[class*="attachment-"],
.wp_post img.pict {
	margin: 1em 1em 2em 0;
	vertical-align: bottom;
}
.wp_post img.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}
.wp_post img.alignright {
	padding: 4px;
	margin: 0 0 2em 1em;
	display: inline;
  vertical-align: top;
  float: right;
}
.wp_post img.alignleft {
	padding: 4px;
	margin: 0 1em 2em 0;
	display: inline;
  vertical-align: top;
  float: left;
}

/*Pagenation*/
.pageNation {
	text-align: center;
	margin: 0 auto;
}
.pageNation ul {
    margin: 0;
}
.pageNation li {
	font-size: 16px;
	margin-right: 6px;
	display: inline-block;
	color: #242537;
	text-align: center;
	background-color: #eeeeee;
	border-radius: 4px;
  overflow: hidden;
  line-height: 40px;
  width: 40px;
}
.pageNation li.prev,
.pageNation li.next {
  width: 70px;
}
.pageNation li.active {
	color: #fff;
	background-color: #242537;
}
.pageNation li a {
	display: block;
	line-height: 40px;
  width: 100%;
  text-decoration: none;
  color: inherit;
}
.pageNation li a:hover {
	text-decoration: none;
	color: #fff;
	background-color: #b92f24;
}
.wp-pagenavi {
  margin-top: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.wp-pagenavi .current,
.wp-pagenavi .page {
  min-width: 46px;
  height: 46px;
  margin: 0 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 600;
  font-family: 'Josefin Sans', sans-serif;
}
.wp-pagenavi .page {
  color: inherit;
  text-decoration: none;
}
.wp-pagenavi .current {
  background-color: #3F58A4;
  color: #fff;
}
.nextpostslink {
  text-indent: -9999px;
  margin-left: 60px;
  background: url(assets/img/arrow_right_black.svg) no-repeat center/contain;
  width: 14px;
  height: 14px;
}
.previouspostslink {
  text-indent: -9999px;
  margin-right: 60px;
  background: url(assets/img/arrow_right_black.svg) no-repeat center/contain;
  width: 14px;
  height: 14px;
  transform: rotate(180deg);
}

.nextPostBg {
	text-align: right;
}
.nextPostBg p {
	display: inline-block;
	margin-left: 3px;
}
.nextPostBg p a {
	padding: 4px 10px;
	display: block;
	color: #fff;
	background-color: #7b7b7b;
	text-decoration: none;
}
.nextPostBg p a:hover {
	color: #7b7b7b;
	background-color: #fff;
	border: #7b7b7b 1px solid;
	padding: 3px 9px;
	text-decoration: none;
}

.wpcf7-list-item.first {
  margin-left: 0;
}



/*********************************
404
*********************************/
.error404 h2 {
	font-size: 30px;
	color: #FF0004;
	text-align: center;
	padding: 160px 0 60px;
}
.error404 p {
	font-size: 20px;
	text-align: center;
	padding-bottom: 100px;
}

/*********************************
ログイン画面
*********************************/
.login h1 a {
  background-size: 84px;
  width: 84px;
  height: 84px;
}