.contents_bg {
	position: relative;
}
.contents_bg::before{
	position: fixed;
	content: "";
	background: url("images/left_cat.png") no-repeat;
	width: 472px;
	height: 864px;
	right: 0;
	bottom: 0;
	z-index: -1;
	opacity: 0.5;
}
.contents_bg::after{
	position: fixed;
	content: "";
	background: url("images/right_dog.png") no-repeat right center;
	width: 433px;
	height: 869px;
	left: 0;
	bottom: 0;
	z-index: -1;
	opacity: 0.5;
}

:is(.blog,.single-post,.archive,.category) .contents_bg:before{
  content: "";
  height: 100%;
  display: block;
  position: absolute;
  background: var(--bg-color);
  top: 0;
  width: calc((100% - 1200px) / 2);
  right: 0;
}


.contents {
  width: 1200px;
  margin: auto;
  padding: 50px 20px 56px;
  box-sizing: border-box;
}

.wrapper {
  position: relative;
  width: 1200px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin: auto;
  z-index: 2;
}

main img {
  max-width: 100%;
  height: auto;
}

.wrapper main {
  width: 100%;
  padding: 30px 0;
}
:is(.blog,.single-post,.archive,.category):not(.tax-cate_menu,.tax-cate_disease,.tax-cate_symptom,.tax-cate_case) .wrapper main{
  width: 68%;
}

/*--------------------box--------------------*/
.box1 {
  width: 100%;
  margin: auto;
  box-sizing: border-box;
}

section:first-child .box1 {
  padding-top: 0;
}

/*--------------------text--------------------*/
.text {
  position: relative;
  margin: 0 0 80px;
}

.text p {
  margin-bottom: 1em;
}

.text p:last-child {
  margin-bottom: 0;
}

.textarea p {
  font-size: 16px;
  margin-bottom: 22px;
}

.textarea p:last-child {
  margin-bottom: 0;
}

/*--------------------下層ページのレイアウト--------------------*/
.body_single,
.sec_doctor,
.sec_clinic,
.price_wrap,
.faq_wrap,
.sec_access,
.access_route,
.sec_recruit,
.sec_freearea_up,
.sec_freearea_under,
.medical_list li,
.clinic_facilities {
  position: relative;
  margin: 0 0 120px;
}

.body_single p {
  margin-bottom: 1em;
}

.sec_medical .text {
  margin-bottom: 0;
}
.sec_freearea_under:last-of-type{
	margin: 0;
}
/*--------------------サイドバー--------------------*/
.side_area {
  width: 28%;
  padding: 50px 2%;
  z-index: 3;
  background: var(--bg-color);
}

.side_box, .side_bannar {
  margin-bottom: 40px;
}

.side_area .btn01 a {
  width: 100%;
  color: #fff !important;
}

.side_bannar ul li {
  margin-bottom: 10px;
  text-align: center;
}

.side_bannar ul li a:hover {
  opacity: 0.8;
}

.side_area .side_title {
  font-size: 110%;
  font-weight: bold;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: solid 2px var(--main-color);
  text-align: left;
  line-height: 1.6;
}

.side_area .side_title i {
  margin-right: 12px;
  vertical-align: middle;
  color: var(--main-color);
}

.side_area li a {
  color: var(--text-color);
}
.side_area ul.children li.cat-item a{
  padding-left: 1em;
}
.side_area ul.children li.cat-item a::before{
  content: "－";
}
.side_area li a:hover {
  color: var(--main-color) !important;
}

.op_sidefreearea p a {
  display: block;
}

/*==================================================================================================================================

  *ブログ

==================================================================================================================================*/
.blog_box {
  border-top: 4px solid var(--main-color);
  /*記事ボックスの上の色*/
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 50px;
  padding-bottom: 10px;
  background-color: #fff;
}

.blog_tit {
  font-size: 22px;
  color: var(--text-color);
  padding: 0 20px;
}

.blog_content {
  margin: 20px 25px;
}

.blog_content p {
  margin-bottom: 1em;
}

.blog_box .btn01 a {
  display: table;
  margin: 10px 0 10px auto;
}

/*----------見出し----------*/
.blog_box h2.blog_tit {
  border-bottom: none;
  padding: 66px 20px 0;
}

.blog_box h2.blog_tit:after {
  display: none;
}

/*----------日付・カテゴリ----------*/
.blog_class li {
  display: inline-block;
  margin-right: 15px;
}

.blog_class {
  margin-bottom: 10px;
}

.blog_class i {
  display: inline-block;
  font-family: "Font Awesome 5 Free";
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin-right: 5px;
  color: var(--main-color);
}

.blog_class li a {
  color: var(--text-color);
}

.blog_class li a:hover {
  color: var(--main-color);
}

/*----------ページャー----------*/
.pager {
  display: block;
  font-size: 15px;
  padding: 9px 8px;
  margin: 0 auto;
  border-radius: 3px;
  text-align: center !important;
  font-weight: bold;
}

.pager:after {
  display: block;
  content: "";
  clear: both;
}

.current {
  background: var(--main-color);
  color: #fff;
  padding: 8px 12px;
  display: inline-block;
  border-radius: 16px;
  margin: 5px 5px 8px;
  line-height: 1;
}

.pager a {
  display: inline-block;
  text-decoration: none;
  padding: 8px 12px;
  margin: 5px 6px 8px 5px;
  border-radius: 50%;
  transition: all 0.2s linear;
  background: var(--border-color);
  color: var(--main-color);
  line-height: 1;
}

.pager a:hover {
  background: var(--main-color);
  color: #fff;
}

.pager a:active {
  box-shadow: 1px 1px 3px -1px rgba(0, 0, 0, 0.55);
}

/*--------------------ブログ エディター用--------------------*/
.alignleft {
  display: inline;
  float: left;
}

.alignright {
  display: inline;
  float: right;
}

.aligncenter {
  display: block;
  margin-right: auto;
  margin-left: auto;
}

blockquote.alignleft,
.wp-caption.alignleft,
img.alignleft {
  margin: 0.4em 1.6em 1.6em 0;
}

blockquote.alignright,
.wp-caption.alignright,
img.alignright {
  margin: 0.4em 0 1.6em 1.6em;
}

blockquote.aligncenter,
.wp-caption.aligncenter,
img.aligncenter {
  clear: both;
  margin-top: 0.4em;
  margin-bottom: 1.6em;
}

.wp-caption.alignleft,
.wp-caption.alignright,
.wp-caption.aligncenter {
  margin-bottom: 1.2em;
}

/*整形済みテキスト*/
.blog_content > div pre {
  font-weight: 400;
  margin-top: 20px;
  padding: 20px;
  background-color: var(--bg-color);
  color: #7F7F7F;
  overflow: auto;
}

/*引用*/
.blog_content > div blockquote {
  position: relative;
  color: #3F3F3F;
  margin-top: 20px;
  padding: 20px 20px 20px 70px;
  background-color: var(--bg-color);
}

.blog_content > div blockquote::before {
  position: absolute;
  top: 20px;
  left: 20px;
  font-family: "icomoon";
  content: "\e909";
  font-size: 3rem;
  color: #D9D9D9;
}

.blog_content > div blockquote *:first-child {
  margin-top: 0;
}

/*ライン*/
.blog_content > div hr {
  margin-top: 40px;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.blog_content > div *:first-child {
  margin-top: 0;
}

.blog_content iframe {
  margin-left: auto;
  margin-right: auto;
  display: block;
}

/*サムネイル*/
.thumbnail {
  display: block;
  position: relative;
  float: left;
  margin: 0 15px 0 0;
  text-align: center;
}

.thumbnail img {
  -o-object-fit: cover;
     object-fit: cover;
  max-width: 100%;
  max-height: unset;
  width: 150px;
  height: 150px;
}