@charset "UTF-8";

/* ------
  - *基本設定
  - *パンくずリスト
  - *ページ内リンク
  - *ページャー
  - *書式設定
  - *タイトル
  - *メインビジュアル
  - *医院紹介
  - *医師紹介
  - *アクセス
  - *お知らせ
  - *ブログ
  - *404
------ */

/*==================================================================================================================================

  *基本設定

==================================================================================================================================*/
/* body{
  display: none;
} */

main section {
  margin-bottom: 120px;
}

/* 下層のコンテンツ幅 */
main section .inner,
#breadcrumb.inner,
.page_links .inner {
  max-width: 1100px;
}

/*==============================================
  *SP 基本設定
==============================================*/
@media screen and (max-width: 640px) {
  .inner {
    width: 100%;
    margin: auto;
    padding: 0 20px;
  }
}


/*==================================================================================================================================

  *パンくずリスト

==================================================================================================================================*/
#breadcrumb {
  margin: 30px auto!important;
}

#breadcrumb ol {
  counter-reset: unset;
  display: flex;
  flex-wrap: wrap;
  gap: 5px 0;
}

#breadcrumb ol li {
  position: relative;
  margin: 0;
  line-height: 1.5;
}

#breadcrumb ol li:not(:last-child)::after {
  content: "\f054";
  position: relative;
  top: -1px;
  padding: 0 10px;
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 70%;
}

/*==============================================
  *SP パンくずリスト
==============================================*/
@media screen and (max-width: 640px) {
  #breadcrumb {
    margin: 0 0 30px;
    font-size: 13px;
  }

  #breadcrumb ol li:not(:last-child)::after {
    padding: 0 10px;
  }
}


/*==================================================================================================================================

  *ページ内リンク

==================================================================================================================================*/
.page_links {
  margin-bottom: 80px;
}

.page_links ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
}

.page_links li {
  position: relative;
  z-index: 1;
}

.page_links li a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 10px 15px;
  background: #603c14;
  border: 1px solid #603c14;
  color: #ffffff;
  font-size: 95%;
  text-align: center;
  transition: color 0.2s , background 0.2s;
  font-family: var(--font-type);
  border-radius: 5px;
}

.page_links li a:hover {
  background: #ffffff;
  color: #603c14;
}

/* 2列 */
.twoLinks li {
  width: calc((100% / 2) - (10px / 2));
}

/* 3列 */
.threeLinks li {
  width: calc((100% / 3) - (20px / 3));
}

/*==============================================
  *SP ページ内リンク
==============================================*/
@media screen and (max-width: 640px) {
  .page_links li {
    width: 100%;
  }
}


/*==================================================================================================================================

  *ページャー

==================================================================================================================================*/
.pager {
  display: flex;
  flex-flow: wrap;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin: 30px auto 0;
  font-size: 15px;
}

.pager > * {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 35px;
  height: 34px;
  background: #d7d7d7;
  border-radius: 30px;
  color: #ffffff;
  line-height: 1;
}

.pager .current {
  background: var(--main-color);
  color: #ffffff;
}

.pager a:hover {
  background: #929292;
  color: #ffffff;
}

.pager .next,
.pager .prev {
  padding: 0 0 3px 1px;
  font-size: 150%;
}


/*==================================================================================================================================

  *書式設定

==================================================================================================================================*/
/* ----- 下層の見出しの上に余白を付ける ----- */
main:not(.front) h3:not(:first-of-type) {
  margin-top: 50px;
}
main:not(.front) h4:not(:first-of-type),
main:not(.front) h5:not(:first-of-type),
main:not(.front) h6:not(:first-of-type) {
  margin-top: 2em;
}

/* hタグの最初の要素のmarginをつけたい場合 */
h3.mtem {
  margin-top: 50px;
}

.mtem {
  margin-top: 2em;
}

.mbem {
  margin-bottom: 1em;
}

/* 段落余白 */
main .inner > *:not(h1,h2,h3,h4,h5) {
  margin-bottom: 1.5em;
}

main .inner > *:not(h1,h2,h3,h4,h5):last-child {
  margin-bottom: 0;
}

/* ----- text ----- */
.text {
  position: relative;
}

.text > *:not(:last-child) {
  margin-bottom: 1.5em;
}

.text_inner {
  position: relative;
}

.text_inner > *:not(h1,h2,h3,h4,h5,h6) {
  margin-bottom: 1.5em;
}

.text_inner > *:not(h1,h2,h3,h4,h5,h6):last-child {
  margin-bottom: 0;
}

.yellowline {
  font-weight: bold;
  text-decoration: underline;

  text-decoration-color: rgb(255, 245, 157);
  text-decoration-thickness: 0.6em;
  text-underline-offset: -0.2em;
  text-decoration-skip-ink: none;
}


/*==================================================================================================================================

  *タイトル

==================================================================================================================================*/
h2,
h3,
h4,
h5,
h6 {
  position: relative;
  z-index: 1;
  line-height: 1.75;
}

h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1.5px dashed #7b6b66;
  padding: 0 0 15px;
  margin: 0 0 20px;
  font-size: 220%;
  font-weight: 600;
  line-height: 1.4;
}

h2::before {
  display:inline-block;
  min-width: 50px;
  min-height: 50px;
  margin-right: 13px;
  background: url(../images/logo.png) no-repeat top center / contain;
  background-size: 50px;
  content:"";
}

h3 {
  /*width: fit-content;*/
  margin: 0 0 20px;
  padding: 5px 20px 5px 35px;
  font-size: 200%;
  font-weight: 600;
}

h3::before {
  content: "●";
  position: absolute;
  top: 50%;
  left: 0;
  display: block;
  transform: translateY(-50%);
  font-size: 80%;
  color: var(--main-color);
}

h4 {
  margin: 0 0 17px;
  padding: 8px 15px;
  color: #fff;
  font-size: 150%;
  background: var(--main-color);
  font-weight: 600;
}

h4 span {
  margin-right: 8px;
}

h5 {
  margin: 0 0 15px;
  font-size: 110%;
  font-weight: 600;
}

.num {
  padding: 5px 20px 5px 50px;
  margin-bottom: 10px;
}

.num::before {
  display: none;
}

.num em {
  position: absolute;
  top: 50%;
  left: 0;
  display: inline-block;
  width: 35px;
  height: 35px;
  line-height: 35px;
  font-size: 70%;
  color: #fff;
  font-style: normal;
  text-align: center;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--sub-color);
  transform: translateY(-50%);
}

/*==================================================================================================================================

  *メインビジュアル

==================================================================================================================================*/
/* ----- #mainvisual ----- */
#mainvisual {
  position: relative;
  z-index: 1;
  height: 300px;
  margin: 0 0 0 auto;
  overflow: hidden;
  background: var(--main-color);
}

#mainvisual .mainvisual_bg {
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0 0 0 auto;
}

#mainvisual .mainvisual_bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
}

#mainvisual .mainvisual_bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;

  object-position: center center;
}

#mainvisual .inner {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

/* ----- 下層ページの見出し ----- */
.main_headline p {
  display: inline-block;
  color: var(--text-color);
  font-size: 200%;
  line-height: 1.5;
  text-align: center;
  filter: drop-shadow(0 0 5px #ffffff) drop-shadow(0 0 5px #ffffff) drop-shadow(0 0 10px #ffffff) drop-shadow(0 0 10px #ffffff) drop-shadow(0 0 15px #ffffff) drop-shadow(0 0 15px #ffffff);
  font-family: var(--font-type);
  font-weight: 600;
}

/*==============================================
  *SP メインビジュアル
==============================================*/
@media screen and (max-width: 640px) {
  #mainvisual {
    position: relative;
    width: 100%;
    height: 180px;
  }

  #mainvisual .mainvisual_bg {
    width: 100%;
  }

  .main_headline {
    margin-top: 0;
  }

  .main_headline p {
    margin: 0;
    padding: 10px 20px;
    font-size: 150%;
  }
}


/*==================================================================================================================================

  *医院紹介

==================================================================================================================================*/
.clinic_desc {
  width: 100%;
}

.clinic_desc dl {
  display: flex;
}

.clinic_desc dl dt {
  width: 20%;
  padding: 15px;
  border-bottom: 1px dotted var(--line-color);
  font-weight: bold;
}

.clinic_desc li:first-child dl dt {
  padding-top: 0;
}

.clinic_desc dl dd {
  width: 80%;
  padding: 15px;
  border-bottom: 1px dotted var(--line-color);
}

.clinic_desc dl dd .zipcode {
  margin-right: 10px;
}

.clinic_desc li:first-child dl dd {
  padding-top: 0;
}

.facilities_list {
  display: flex;
  flex-flow: wrap;
  gap: 20px;
}

.facilities_item {
  width: calc((100% / 3) - (40px / 3));
  background: var(--bg-color);
}

.facilities_item dt {
  text-align: center;
}

.facilities_item dd {
  padding: 15px;
}

.facilities_item dd p {
  padding-top: 5px;
}

.facilities_item h3 {
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  font-size: 125%;
}

.facilities_item h3::before {
  display: none;
}

.facilities_item h4 {
  font-size: 100%;
  margin-top: 20px;
}

/* ----- 画像がない時用 ----- */
.facilities_item.noimg {
  padding: 15px;
}

/*==============================================
  *SP 医院紹介
==============================================*/
@media screen and (max-width: 640px) {
  .clinic_desc dl {
    display: block;
  }

  .clinic_desc dl dt {
    width: 100%;
    padding: 15px 0 5px;
    border-bottom: none;
  }

  .clinic_desc li:first-child dl dt {
    padding-top: 0;
  }

  .clinic_desc dl dd {
    width: 100%;
    padding: 0 0 15px;
  }

  .facilities_item {
    width: 100%;
  }
}


/*==================================================================================================================================

  *医師紹介

==================================================================================================================================*/
.doctor_box:not(:last-child) {
  margin: 0;
  padding: 0 0 60px;
}

.doctor_box:not(:first-child) h2 {
  margin-top: 20px;
}

.doctor_flex {
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

.doctor_text h3::before {
  display: none;
}

.doctor_text {
  font-family: var(--font-type);
}

.doctor_img {
  flex-shrink: 0;
  width: 490px;
}

.doctor_name {
  margin-top: 30px;
  text-align: right;
  font-family: var(--font-type);
}

.doctor_name .position {
  font-size: 130%;
}

.doctor_name .name {
  font-size: 150%;
}

.doctor_career {
  margin-top: 30px;
}

.career_box {
  padding: 30px;
  background: var(--bg-color);
  border-radius: 20px;
}

.career_box:not(:last-of-type) {
  margin-bottom: 20px;
}

.career_box h3 {
  margin: 0 0 5px;
  background: none;
  font-size: 140%;
}

/* 日付あり */
.career_box dl {
  display: flex;
  gap: 10px;
  border-bottom: 1px dashed var(--line-color);
}

.career_box dl > * {
  padding: 10px 20px;
}

.career_box dt {
  width: 15%;
}

/* 日付なし */
.career_box li {
  padding: 10px 20px;
  border-bottom: 1px dashed var(--line-color);
}

.doctor_freearea {
  margin-top: 30px;
}

/*==============================================
  *SP 医師紹介
==============================================*/
@media screen and (max-width: 640px) {
  .doctor_flex {
    flex-flow: column;
    gap: 30px;
  }

  .doctor_img {
    order: -1;
    width: 100%;
    margin: 0 auto;
  }

  .career_box {
    padding: 20px 25px;
  }

  .career_box h3 {
    margin: 0;
  }

  /* 日付あり */
  .career_box dl {
    flex-flow: column;
    gap: 0;
  }

  .career_box dl > * {
    padding: 10px;
  }

  .career_box dt {
    width: 100%;
    padding: 10px 10px 5px;
  }

  .career_box dd {
    width: 100%;
    padding: 5px 10px 10px;
  }

  /* 日付なし */
  .career_box li {
    padding: 10px;
  }
}


/*==================================================================================================================================

  *アクセス

==================================================================================================================================*/
/* GoogleMAPのみ */
.access .googlemap iframe {
  width: 100%;
  height: 400px;
}

/* イラストマップのみ */
.access .illustmap {
  width: 100%;
  text-align: center;
}

/* 両方を表示する時 */
.mapflex {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: stretch;
  gap: 20px;
  margin-bottom: 30px;
}

.mapflex > * {
  display: flex;
  flex-grow: 1;
  align-items: stretch;
  width: calc(50% - 10px)!important;
}

.mapflex > .googlemap {
  position: relative;
  z-index: 1;
  flex-shrink: 1;
  width: calc(50% - 20px);
  height: auto;
}

.mapflex > .googlemap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.access .location {
  position: relative;
  z-index: 1;
  padding: 0 0 0 40px;
  font-weight: bold;
}

.access .location::before {
  content: "\f3c5";
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
  padding: 0 0 0 2px;
  background: var(--main-color);
  border-radius: 50%;
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  color: #ffffff;
  font-size: 13px;
}

.access .location span {
  display: inline-block;
  margin-right: 10px;
}

.access .btn01 {
  text-align: center;
}

/* -----　ルート案内 ----- */
.route_list {
  display: flex;
  flex-flow: wrap;
  gap: 50px 30px;
}

.route_item {
  width: calc((100% / 2) - (30px / 2));
}

.route_item > *:not(:last-child) {
  margin-bottom: 1em;
}

.route_title {
  position: relative;
  z-index: 1;
  min-height: 30px;
  padding: 0 0 0 40px;
  font-size: 110%;
}

.route_title .number {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
  background: var(--main-color);
  color: #ffffff;
  line-height: 1;
}

/*==============================================
  *SP アクセス
==============================================*/
@media screen and (max-width: 640px) {
  .mapflex > * {
    width: 100%!important;
  }

  /* -----　ルート案内 ----- */
  .route_list {
    gap: 30px;
  }
  .route_item {
    width: 100%;
  }
}


/*==================================================================================================================================

  *お知らせ

==================================================================================================================================*/
.news_item {
  border-bottom: 1px solid var(--line-color);
}

.news_item:first-of-type .news_info {
  padding-top: 0;
}

.news_info {
  padding: 30px 0;
}

/* 日付とカテゴリ名 */
.news_desc {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
}

.news_date {
  display: inline-block;
  margin-right: 15px;
  color: #666666;
  font-size: 90%;
  line-height: 1;
}

.news_cate em {
  display: inline-block;
  flex-shrink: 0;
  min-width: 100px;
  margin-right: 15px;
  padding: 7px 10px;
  background: var(--main-color);
  font-style: normal;
  color: #ffffff;
  font-size: 90%;
  line-height: 1;
  text-align: center;
  border-radius: 30px;
}

/* タイトル */
.news_info h2 {
  margin: 0 0 20px;
  padding: 0;
  background: none;
  border-bottom: none;
  color: var(--text-color);
  font-size: 140%;
}

.news_title::before,
.news_title::after {
  display: none;
}

/*==============================================
  *SP お知らせ
==============================================*/
@media screen and (max-width: 640px) {
  .news_cate em {
    min-width: auto;
    padding: 7px 20px;
  }
}


/*==================================================================================================================================

  *ブログ

==================================================================================================================================*/
.blog_wrap {
  display: flex;
  gap: 50px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 0 60px;
}

.blog_wrap .inner {
  width: calc(80% - 50px);
  margin: 0;
  padding: 0;
}

.blog_wrap .contents {
  display: flex;
  flex-flow: wrap;
  gap: 30px 20px;
}

.blog_box {
  display: flex;
  flex-flow: column;
  width: calc((100% / 3) - (40px / 3));
  height: auto;
  background-color: #ffffff;
  border: solid 1px var(--line-color);
}

/*サムネイル*/
.blog_box .thumbnail {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  min-height: 170px;
  border-bottom: solid 1px var(--line-color);
  text-align: center;
}

.blog_box .thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog_inner {
  display: flex;
  flex-flow: column;
  height: 100%;
  padding: 15px 15px 20px;
  border-top: none;
}

/* 見出し */
.blog_box h2.blog_title {
  margin: 0 0 15px;
  padding: 0;
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 110%;
}

.blog_box h2.blog_title:before {
  display: none;
}

/* 日付 */
.blog_date {
  margin-bottom: 5px;
  font-size: 13.5px;
  line-height: 1.5;
}

.blog_date::before {
  content: "\f073";
  display: inline-block;
  margin-right: 7px;
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-style: normal;
  color: var(--main-color);
}

/* 日付・カテゴリ */
.blog_categorys {
  display: flex;
  flex-flow: wrap;
  gap: 0 5px;
  margin-bottom: 20px;
  line-height: 1.5;
}

.blog_categorys li a {
  display: inline-block;
  font-size: 13.5px;
  line-height: 1.5;
}

.blog_categorys li a::before {
  content: "\f02b";
  position: relative;
  top: 1px;
  display: inline-block;
  margin-right: 5px;
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-style: normal;
}

.blog_box .btn01 {
  margin-top: auto;
  text-align: center;
}

.blog_box .btn01 a {
  font-size: 100%;
  padding: 10px 50px 10px 40px;
  width: 100%;
}



/* ----- 記事ページ ----- */
.blog_single_box {
  width: 100%;
}

.single_thumbnail {
  margin: 0 auto 40px;
  text-align: center;
}

#index {
  margin: 0 0 30px;
  padding: 20px;
  background: var(--bg-color);
}

#index .index_title {
  margin: 0 0 0;
  font-weight: bold;
  font-size: 110%;
}

#index a {
  color: var(--text-color);
}

#index a:hover {
  color: var(--main-color);
}

#index ul .index_h2 {
  position: relative;
  z-index: 1;
  padding: 5px 0 5px 20px;
  font-weight: bold;
  color: var(--text-color);
  font-size: 110%;
}

#index ul .index_h2::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 0;
  display: block;
  width: 8px;
  height: 8px;
  background: var(--main-color);
}

#index ul .index_h3 {
  position: relative;
  z-index: 1;
  padding: 5px 0 5px 25px;
}

#index ul .index_h3::before {
  content: "-";
  position: absolute;
  top: 5px;
  left: 10px;
}

.blog_single_box  .blog_text > *:not(h1,h2,h3,h4,h5) {
  margin-bottom: 1.5em;
}

.blog_single_box  .blog_text > *:not(h1,h2,h3,h4,h5):last-child {
  margin-bottom: 1.5em;
}

.blog_single_box .blog_text h3:not(:first-of-type),
.blog_single_box .blog_text h4:not(:first-of-type),
.blog_single_box .blog_text h5:not(:first-of-type),
.blog_single_box .blog_text h6:not(:first-of-type) {
  margin-top: 0!important;
}

/* ----- サイドバ ----- */
.sidebar {
  z-index: 3;
  width: 30%;
}

.side_box {
  padding: 20px;
  background: var(--bg-color);
}

.side_box:not(:last-of-type) {
  margin-bottom: 30px;
}

.sidebar .side_title {
  position: relative;
  z-index: 1;
  margin-bottom: 15px;
  padding: 0 0 5px 5px;
  border-bottom: solid 2px var(--main-color);
  font-weight: bold;
  font-size: 110%;
  line-height: 1.5;
  text-align: left;
}

.sidebar .side_title i {
  margin-right: 10px;
  color: var(--main-color);
}

/* サムネイル付（人気記事・最近の投稿） - 人気記事はプラグインによる出力 */
.blog_list_thum {
  display: flex;
  flex-flow: column;
}

.blog_list_thum li {
  padding: 15px 0;
}

.blog_list_thum li:first-child {
  padding-top: 0;
}

.blog_list_thum li:last-child {
  padding-bottom: 0;
}

.blog_list_thum li:not(:last-child) {
  border-bottom: 1px dashed var(--line-color);
}

.blog_list_thum li a {
  display: flex;
  gap: 10px;
  color: var(--text-color);
  font-size: 95%;
  line-height: 1.75;
}

.blog_list_thum li a:hover {
  color: var(--main-color);
}

.blog_item_thum {
  float: none;
  display: block;
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  overflow: hidden;
}

.blog_item_thum img {
  float: none;
  display: block;
  width: auto;
  min-height: 100%;
  margin: 0;
  object-fit: cover;
  transition: transform 0.2s;
  border: solid 1px var(--line-color);
}

.blog_list_thum li a:hover .blog_item_thum img {
  transform: scale(1.1);
}

.blog_item_title {
  padding: 5px 0;
}

/* カテゴリー */
.side_blog_category li a {
  color: var(--text-color);
}

.side_blog_category li a:hover {
  color: var(--main-color);
}

/*==============================================
  *SP ブログ
==============================================*/
@media screen and (max-width: 640px) {
  .blog_wrap {
    flex-flow: column;
    gap: 70px;
    width: 100%;
  }

  .blog_wrap .inner {
    width: 100%;
    padding: 0 20px;
  }

  /* 一覧ページ */
  .blog_box {
    width: 100%;
  }

  .blog_box .thumbnail {
    height: auto;
    min-height: auto;
  }

  /* ----- サイドバー ----- */
  .sidebar {
    width: 100%;
    margin: 0;
    padding: 0 20px;
  }

  .blog_box .thumbnail img {
    width: 100%;
    height: auto;
  }

  .side_box:not(:last-of-type) {
    margin-bottom: 20px;
  }

  .thumbnail {
    float: none;
    margin: 0;
    text-align: center;
  }

  .thumbnail img {
    width: 200px;
    max-width: 100%;
    height: 200px;
    max-height: unset;
    object-fit: cover;
  }
}


/*==================================================================================================================================

404

==================================================================================================================================*/
.error404 main .inner {
  padding: 50px 0 60px;
}

.error404 main .inner p {
  text-align: center;
}

/*==============================================
  *SP 404
==============================================*/
@media screen and (max-width: 640px) {
  .error404 main .inner {
    padding: 0 20px 60px;
  }
  .error404 main .inner p {
    text-align: start;
  }
}