/*
Theme Name: Kurinoki Clinic
Theme URI:
Description: 栗の木診療所のオリジナルテーマです
Template: monad_tcd110
Author: TERRACOYA inc.
Version:0.0.1

テーマ特有のCSS設定はこちら
*/


:root {
  --e-global-check-color: #8E7257;
}

.check_list_box a {
  text-decoration: underline;
  text-decoration-style: dotted;
  text-decoration-color: #aaa;
  text-underline-offset: 4px;
  transition: 0.3s;
}

/* 診察・検診症状リストボックス */
.check_list_headline {
  border-radius: 7px 7px 0 0;
  border: 1px solid #ddd;
  margin-top: 50px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  color: var(--main_color);
  position: relative;
  font-size: 18px;
  padding: 20px 70px;
  font-weight: 500;
  line-height: 1.5;
}
.check_list_box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 0 0 7px 7px;
  overflow: hidden;
  border: solid 1px #ddd;
  border-top: none;
}
.check_list_box .check_list {
  border-radius: 0!important;
}

.check_list_box .check_list {
  padding: 60px 20px 60px 60px;
  border: none!important;
}
.check_list_box .check_list2 {
  padding: 60px 60px 60px 20px;
}
.check_list_box .check_list ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}
.check_list_box .check_list ul {
  display: block!important;
}
.check_list_box .check_list ul li {
  display: flex;
  align-items: flex-start;
  gap: 0.3em;
  margin-bottom: 0.6em;
  width: 100% !important;
}
/* 「・」用：擬似要素でドット */
.check_list_box .check_list ul li.is-disc::before {
  content: "・";
  flex-shrink: 0;
  line-height: 1.6;
}
/* 「c」用：SVGアイコン */
.check_list_box .check_list ul li.is-check .elementor-icon-list-icon {
  flex-shrink: 0;
  line-height: 1;
}
.check_list_box .check_list ul li.is-check svg {
  width: 14px;
  height: 14px;
  margin-top: 0.4em;
  fill: #8E7257;
}
#service_content_list .service_content .check_list_box .check_list,
#service_header .check_list_box .check_list {
  padding: 60px 20px 60px 60px;
  border-right: none;
}
#service_content_list .service_content .check_list_box .check_list2,
#service_header .check_list_box .check_list2 {
  padding: 60px 60px 60px 20px;
  border-left: none;
}
.check_list_box .check_list ul li small {
  font-size: 0.9em;
  display: inline-block;
  color: #333;
}

/* 診察・検診アーカイブタイトル */
.post-type-archive-service #page_header .desc {
    line-height: 1.6 !important;
    font-size: var(--headline_font_size) !important;
    font-family: var(--headline_font_type) !important;
    font-weight: 600 !important;
    margin: -8px 0 !important;
}

:is(.post_content, .post_content .tcdce-body) p {
	line-height: 2em;
}

#footer {
	margin-top: -120px;
	padding-top: 120px;
}
@media screen and (max-width:1300px) {
  #footer  {
		margin-top: -60px;
		padding-top: 60px;
	}
}

#footer_info .fax {
    position: relative;
    font-size: 24px;
}

#footer_info .fax:before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 24px;
  vertical-align: -6px;
  margin: 0 5px 0 -5px;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSJ3aGl0ZSIgc3Ryb2tlLXdpZHRoPSIxLjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCI+PHBhdGggZD0iTTcgM2gxMHY1SDd6Ii8+PHJlY3QgeD0iMyIgeT0iOCIgd2lkdGg9IjE4IiBoZWlnaHQ9IjEzIiByeD0iMS41Ii8+PHJlY3QgeD0iNiIgeT0iMTMiIHdpZHRoPSI0IiBoZWlnaHQ9IjUiLz48Y2lyY2xlIGN4PSIxMy41IiBjeT0iMTMiIHI9Ii42IiBmaWxsPSJ3aGl0ZSIgc3Ryb2tlPSJub25lIi8+PGNpcmNsZSBjeD0iMTYiIGN5PSIxMyIgcj0iLjYiIGZpbGw9IndoaXRlIiBzdHJva2U9Im5vbmUiLz48Y2lyY2xlIGN4PSIxOC41IiBjeT0iMTMiIHI9Ii42IiBmaWxsPSJ3aGl0ZSIgc3Ryb2tlPSJub25lIi8+PGNpcmNsZSBjeD0iMTMuNSIgY3k9IjE1LjUiIHI9Ii42IiBmaWxsPSJ3aGl0ZSIgc3Ryb2tlPSJub25lIi8+PGNpcmNsZSBjeD0iMTYiIGN5PSIxNS41IiByPSIuNiIgZmlsbD0id2hpdGUiIHN0cm9rZT0ibm9uZSIvPjxjaXJjbGUgY3g9IjE4LjUiIGN5PSIxNS41IiByPSIuNiIgZmlsbD0id2hpdGUiIHN0cm9rZT0ibm9uZSIvPjxsaW5lIHgxPSIxMyIgeTE9IjE4IiB4Mj0iMTkiIHkyPSIxOCIvPjwvc3ZnPg==");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}

@media screen and (max-width: 800px) {
    .post_content h3 {
        font-size: 18px;
        margin: 2.3em 0 1em 0;
    }
}

/* PC: .pc を表示、.mobile を非表示 */
:is(.design_header, .tcdce-body .design_header) .desc .pc {
  display: inline;
}
:is(.design_header, .tcdce-body .design_header) .desc .mobile {
  display: none;
}
/* SP・タブレット: .mobile を表示、.pc を非表示 */
@media screen and (max-width: 1024px) {
  :is(.design_header, .tcdce-body .design_header) .desc .pc {
    display: none;
  }
  :is(.design_header, .tcdce-body .design_header) .desc .mobile {
    display: inline;
  }
}

/* category_sort_button: 2列レイアウト時の上線重なり対策 */
@media screen and (max-width:1160px) {
  #category_sort_button:not(:has(.headline)) ol li:nth-child(-n+3) { border-top: none; }
  #category_sort_button:not(:has(.headline)) ol li:nth-child(-n+2) { border-top: 1px solid #ddd; }
}

/* check_list_box: スマホ時は縦積み（列間の余白なし） */
@media screen and (max-width: 800px) {
  .check_list_box {
    grid-template-columns: 1fr;
  }
  .check_list_headline,
  #service_content_list .service_content .check_list_headline,
  #service_header .check_list_headline {
    padding: 20px;
  }
  .check_list_box .check_list,
  #service_content_list .service_content .check_list_box .check_list,
  #service_header .check_list_box .check_list {
    padding: 30px 20px 0;
  }
  .check_list_box .check_list2,
  #service_content_list .service_content .check_list_box .check_list2,
  #service_header .check_list_box .check_list2 {
    padding: 0 20px 30px;
  }
  #service_content_list .service_content .check_list_box .check_list2 ul > li:first-child:not(.is-disc):not(.is-check),
  #service_header .check_list_box .check_list2 ul > li:first-child:not(.is-disc):not(.is-check) {
    margin-top: 1.6em;
  }
  .page_doctors .e-con > .e-con-inner {
    gap: 0;
  }
}

@media screen and (max-width: 900px) {
/* 胃カメラ */
  .ikamera-menu a.design_button {
    min-width: 0;
    width: 100%;
  }
}

@media screen and (max-width: 767px) {
  .ikamera-menu.e-con {
    --gap: 0px;
    --row-gap: 0px;
    --column-gap: 0px;
    gap: 0;
  }
}

.e-con:has(> .elementor-widget-image:only-child),
.e-con:has(> .e-con-inner > .elementor-widget-image:only-child) {
  --padding-block-start: 0px;
  --padding-inline-end: 0px;
  --padding-block-end: 0px;
  --padding-inline-start: 0px;
  --padding-top: 0px;
  --padding-right: 0px;
  --padding-bottom: 0px;
  --padding-left: 0px;
  padding: 0 !important;
}

/* フッターバー: 親テーマの display:none を上書き(モバイル時のみ表示) */
@media screen and (max-width: 1391px) {
  .p-footer-bar {
    display: block;
  }
  .p-footer-bar--type2 .p-footer-bar__item:nth-child(1) {
    background: #50412f;
  }
  .p-footer-bar--type2 .p-footer-bar__item:nth-child(2) {
    background: #8e7257;
  }
  .p-footer-bar--type2 .p-footer-bar__item:not(:first-of-type) {
    border-left: none;
  }
}