/*
Theme Name:ohtakaiin child
Theme URI:
Description:WordPressテーマ「serum」の自作子テーマです。
Template:ohtakaiin
Author:
Author URI:https://tcd-theme.com/
Version:1.0
*/

* { font-feature-settings: "palt";}
a[href^="tel:"] { cursor: pointer !important; pointer-events: auto !important;}
.lineh16 { line-height: 1.6;}

.mr20 { margin-right: 20px;}
.mrimg20 img { display: block; margin-right: 20px;}
.mt25 { margin-top: 25px;}
.mt30 { margin-top: 30px;}
.mb25 { margin-bottom: 25px;}
.mb0 { margin-bottom: 0 !important;}
.mt0 { margin-top: 0 !important;}
.pall20 { padding: 20px !important;}

.text-center { text-align: center;}
.font-gothic { font-family:"Noto Sans JP","Yu Gothic", "游ゴシック", YuGothic, "游ゴシック体", "ヒラギノ角ゴ Pro W3", "メイリオ", sans-serif;}
.smaller { font-size: 80%;}

.s_table { width: 100%;}
.bg-green01 { background: #cef7e7;}

.width50 { width: 50% !important;}


/* 上書き用
------------------------------------------------*/
#header_logo img {
  max-width: 140px;
}
@media (max-width: 884px) {
  #header_logo img {
    max-width: 100%;
  }
}
.wp-embed-responsive .wp-has-aspect-ratio .wp-block-embed__wrapper:before,
.wp-embed-responsive .wp-embed-aspect-16-9 .wp-block-embed__wrapper:before {
  padding-top: 0 !important;
}

/* 見出し
------------------------------------------------*/
.has-large-font-size { font-size: 25px !important;}
.tcdce-body h2.wp-block-heading { 
  color: #fff;
  text-align: left;
  background: #6DCAAF;
  padding: 15px 25px;
  border-radius: 5px;
}
.tcdce-body h3.wp-block-heading { 
  color: #3e4a3f;
  border-left: 2px solid #3e4a3f;
  padding: 15px 25px;
}
.tcdce-body h4.wp-block-heading  {
  padding: 0.5em 0;
  border-top: solid 2px #6DCAAF;
  border-bottom: solid 2px #6DCAAF;
  margin: 1em 0;
}


/* トップページ
------------------------------------------------*/
/******** 新着情報 *********/
.my-recent-posts {
    list-style: none;
    padding: 0;
    margin: 0 !important;
}
.my-recent-posts li {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}
.my-recent-posts .post-date {
    color: #1e3a22;
    margin-right: 15px;
    font-size: 0.9em;
}
/* ★ カテゴリータグのデザイン */
.my-recent-posts .post-category {
    background-color: #1e3a22;
    color: #fff;
    padding: 5px 10px 6px;
    font-size: 0.75em;
    border-radius: 4px;
    text-decoration: none;
    margin-right: 15px;
    line-height: 1.0;
}
.my-recent-posts .post-category:hover {
    background-color: #4a7a52;
    text-decoration: none;
}
.my-recent-posts .post-title {
    text-decoration: none;
    color: #333;
}
.my-recent-posts .post-title:hover {
    text-decoration: underline;
}

/******** 当院について *********/
.about-iin, .bnr-area {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.bnr-area2 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
/*    background: #f1fcf2;  */
}
.about-iin-image {
     width: calc(33.333% - 20px);
}
.about-iin-naiyo {
     width: calc(100% - 33.333%);
}
.bnr-01 {
    flex: 1;
}
.bnr-02 {
    flex: 1;
}
.bnr-01 img, .bnr-02 img, .bnr-area2 img {
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    border-radius: 10px;
}

@media (max-width: 768px) {
  .about-iin, .bnr-area {
    flex-direction: column;
    gap: 15px;
  }
  .about-iin-image, .about-iin-naiyo {
    width: 100%;
  }
  .bnr-01, .bnr-02 {
    width: 100%;
  }
}

.schedule table, .schedule_content td {
    border-color: #216a5a;
    color: #216a5a;
}

/********** アイコン並び **********/
.box-4r, .box-5r {
    font-family:"Noto Sans JP","Yu Gothic", "游ゴシック", YuGothic, "游ゴシック体", "ヒラギノ角ゴ Pro W3", "メイリオ", sans-serif;
}
ul.box-4rlist, ul.box-5rlist {
    list-style-type: none !important;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
 /*   justify-content:space-between; */
    gap: 20px;
    padding: 0 !important;
}
.box-4r li, .box-5r li {
    list-style-type: none;
 /*   width: 23.5%; */
    width: calc((100% - 20px * 3) / 4); /* (100% - 隙間の合計) ÷ カラム数 */
    margin: 0 0 20px !important;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    border-radius: 10px;
    outline-offset: -6px;
    outline: 2px dotted #b2e4d1;
}
.box-5r li {
  /*  width: 18%; */
    width: calc((100% - 20px * 4) / 5); /* (100% - 隙間の合計) ÷ カラム数 */
}
.box-child-img {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 140px;
}
.box-child-img img {
    width: auto;
    height: 85px !important;
}
.box-child-naiyo {
    text-align: center;
    margin: 0 0 20px !important;
    padding: 0 20px;
    line-height: 1.2;
}
.arrow_r {
  position: relative;
  display: inline-block;
  padding-right: 15px;
}
.arrow_r::after {
  content: '';
  width: 6px;
  height: 6px;
  border: 0;
  border-top: solid 2px #349f87;
  border-right: solid 2px #349f87;
  transform: rotate(45deg);
  position: absolute;
  top: 2px;
  right: 0;
  bottom: 0;
  margin: auto;
}
@media (max-width: 768px) {
    .box-4r li, .box-5r li {
    width: calc(50% - 15px);
  }
}

/********** 特長 **********/
.box-tokucho {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 0 !important;
}
.tokucho-02, .tokucho-04 {
    flex-direction: row-reverse;
}
.box-tokucho-image {
     width: 50%;
}
.box-tokucho-naiyo {
    background: radial-gradient(#fff 0, #efedca 100%);
     width: 50%;
     padding: 20px;
}
h3.tokucho-title {
    margin: 20px 0 !important;
}
@media (max-width: 1280px) {
.box-tokucho-image img {
  width: auto !important;
  height: 100% !important;
  object-fit: cover !important;
}
}

/** 数字 **/
.number-01 {
  position: relative;
  font-size: 60px;
  font-style: italic;
  color: #e2dfce;
  font-weight: 400;
  line-height: 1;
  display: block;
  box-sizing: border-box;
  text-align: center; 
  margin-inline: auto;
  width: fit-content;
}
.number-01::before {
  content:'';
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 70px;
  display: inline-block;
  rotate: 45deg;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background: #fff;
  z-index: -1;
}

@media (max-width: 768px) {
  .box-tokucho {
    flex-direction: column;
  }
  .box-tokucho-image, .box-tokucho-naiyo {
    width: 100%;
  }
}

/******** アクセス *********/
.access-area {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.access-area-map {
     width: calc(50% - 20px);
}
.access-area-naiyo {
     width: calc(100% - 50%);
}
@media (max-width: 768px) {
    .access-area {
        flex-direction: column;
    }
    .access-area-map, .access-area-naiyo {
        width: 100%;
    }
}

/******* フッタ――ロゴ *******/
#footer_logo img {
  max-width: 200px;
  height: auto;
}

/** チャットボット
-----------------------------------------------------*/
.chatbot {
    position: fixed;
    right: 100px;
    bottom: 20px;
    z-index: 1;
    filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.3));
    block-size: fit-content;
    inline-size: fit-content;
    border: none;
    background-color: transparent;
    width: 250px;
    cursor: pointer;
}

.chatbot > img {
    display: block;
    background-color: transparent;
     width: 250px;
}

@media only screen and (max-width: 767px) {
.chatbot {
    left: 5px;
    bottom: 70px;
    width: 200px;
}
.chatbot > img {
    width: 200px;
  }
}
iframe {
    width: 100%;
    border: none;
}

/* 産後ケア：
------------------------------------------------*/

/********** ボックスハーフ **********/
.box-harf {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 0 !important;
}

.box-harf-01 {
     width: 50%;
     padding: 10px;
}
.box-harf-02 {
     width: 50%;
     padding: 10px;
}

@media (max-width: 767px) {
  .box-harf {
    flex-direction: column;
  }
  .box-harf-01, .box-harf-02 {
    width: 100%;
  }
}
/********** タイムライン **********/
.timeline {
    position: relative;
    font-size: 18px;
}
.timeline::before {
    position: absolute;
    top: 0px;
    left: 5em;
    width: 6px;
    height: 100%;
    background-color: #cef7e7;
    content: "";
}

.timeline ul {
    padding: 0px !important;
    margin: 0 !important;
    list-style: none;
}

.timeline li {
    position: relative;
    display: flex;
 /*   align-items: center; */
    width: 100%;
    margin: 0 0 1.5em !important;
    padding: 0 !important;
}
.timeline li + li {
    margin-top: 1em;
}

.timeline_time {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 7em;
    height: 2em;
    border-radius: 5px;
    background-color: #349f87;
    color: #fff;
    text-align: center;
}
.timeline_time::before {
    position: absolute;
    top: 50%;
    right: 0px;
    transform: translateX(50%) translateY(-50%) rotate(45deg);
    width: 0.5em;
    height: 0.5em;
    z-index: -1;
    background-color: #349f87;
    content: "";
}
.timeline_time::after {
    position: absolute;
    top: 50%;
    left: 5.3em;
    transform: translateY(-50%);
    width: 1em;
    height: 1em;
    border: 2px solid #fff;
    border-radius: 50%;
    background-color: #4ac7ab;
    content: "";
}

.timeline_content_title {
    font-size: 19px;
    font-weight: bold;
    color: #216a5a;
}

.timeline_content {
    background: #ecfaee;
    margin: 0 0px 0px 2.7em;
    padding: 5px 15px 10px;
    border-radius: 10px;
/*    width: calc(100% - 10em); */
    width: 100%;
    font-family:"Noto Sans JP","Yu Gothic", "游ゴシック", YuGothic, "游ゴシック体", "ヒラギノ角ゴ Pro W3", "メイリオ", sans-serif;
}
img.timeline-baby {
  float: none;
  max-width: 180px !important;
  max-height: 180px !important;
  margin: 10px !important;
}
@media only screen and (min-width: 768px) {
  .timeline::before {
    left: 9em;
  }
  .box-harf .timeline::before {
      left: 7em;
  }
  .timeline_time, .box-harf .timeline_time {
    width:150px;
  }
  .timeline_time::after {
    left: 9.8em;
  }
  .box-harf .timeline_time::after {
    left: 7.58em;
  }
  .timeline_content {
    margin: 0 0px 0px 5em;
  }
  img.timeline-baby {
  float: right;
  }
}
.illust-mokuyoku {
  max-width: 200px !important;
}

/* パーツ
------------------------------------------------*/

/* ボタンの共通CSS */
.btn-g {
  margin: 20px auto 0;
  text-align: center;
}
.btn-g a {
  background-color: #4ac7ab;
  border: 1px solid #4ac7ab;
  border-radius: 50px;
  color: #fff !important;
  display: inline-block;
  font-size: 16px;
  padding: 5px 10px;
  position: relative;
  text-decoration: none;
  width: 200px;
}
/* 通常の矢印(hoverで反転) */
.btn-g a {
  transition: all .5s;
}
.btn-g a::before {
  border-right: 2px solid #fff;
  border-top: 2px solid #fff;
  bottom: 0;
  content: "";
  height: 10px;
  margin: auto;
  position: absolute;
  right: 20px;
  top: 0;
  transform: rotate(45deg);
  transition: all .5s; 
  width: 10px;
}
.btn-g a:hover {
  background-color: #fff;
  color: #4ac7ab !important;
  text-decoration: none;
}
.btn-g a:hover::before {
  border-right: 2px solid #4ac7ab;
  border-top: 2px solid #4ac7ab;
}

/********** ボタンリンク **********/
.btnlink {
    display: flex;
    flex-wrap: wrap; 
    justify-content: center;
    align-items: center;
}
.btnlink a {
    border: 1px solid #349f87;
    border-radius: 50px;
    position: relative;
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 0 auto 20px !important;
    min-width:150px;
    padding: 5px 20px;
    color: #349f87;
    transition: 0.3s ease-in-out;
    font-weight: 600;
}
.btnlink a:hover {
    background: #349f87;
    color: #FFF;
    text-decoration: none;
}
.btnlink a:after {
    content: '';
    width: 5px;
    height: 5px;
    border-top: 3px solid #349f87;
    border-right: 3px solid #349f87;
    transform: rotate(45deg) translateY(-50%);
    position: absolute;
    top: 50%;
    right: 15px;
    border-radius: 1px;
    transition: 0.3s ease-in-out;
}
.btnlink a:hover:after {
    border-color: #fff;
}

/********** リストチェック **********/
.tcdce-body ul.check-list {
  font-size: 18px;
  line-height: 1.8;
  list-style-type: none;
}
.tcdce-body ul.check-list li {
  position: relative;
  padding-left: 25px;
}
.tcdce-body ul.check-list li:before {
    content: '';
  position: absolute;
  top: .7em;
  left: 3px;
  width: 12px;
  height: 7px;
  border-left: 3px solid #349f87;
  border-bottom: 3px solid #349f87;
  transform: rotate(-45deg);
  background: none;
}

.tcdce-body ul.check-list li:after {
  content: "";
  position: absolute;
  top: .5em;
  left: 0;
  width: 16px;
  height: 16px;
  border: 1px solid #349f87;
  border-radius: 3px;
}

/****** 画像装飾 *******/
.imgbox {
  position: relative;
  padding: 10px;
  background-color: #FFF;
  border-radius: 6px;
    -webkit-border-radius: 6px;
    -moz-border-radius: 6px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.08);
    -webkit-box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.08);
    -moz-box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.08);
  box-sizing: border-box;
}

/****** テーブル *******/
figure.td-min-1 table td:nth-child(1),
figure table th {
    width: 0;
    white-space: nowrap;
}
/* 例：1列目を20%、2列目を30%、3列目を50%にする場合 */
.custom-width th,
.wp-block-table .is-style-regular table th { background: #cef7e7 !important;}
.custom-width th:nth-child(1),
.custom-width td:nth-child(1) {
    width: 20%;
}
.custom-width th:nth-child(2),
.custom-width td:nth-child(2) {
    width: 30%;
}
.custom-width th:nth-child(3),
.custom-width td:nth-child(3) {
    width: 50%;
}

/********** clearfix **********/
.clear {
  clear: both;
}
.clearfix:after {
  content: "";
  display: block;
  clear: both;
} 
.clearfix:before {
  content: "";
  display: block;
  clear: both;
} 
.clearfix {
  display: block;
}

/** フォーム
-----------------------------------------------------*/
.wpcf7 {
    border: none !important;
    background: none !important;
    margin-bottom: 100px !important;
}

span.must {
    position: relative;
    top: -1px;
    display: inline-block;
    background-color: #d60000;
    padding: 3px 4px;
    line-height: 1.2;
    font-size: 12px;
    color: #fff;
    margin-left: 6px;
    border-radius: 4px;
}
input[type="radio"],
input[type="checkbox"] {
    border: 1px solid #ccc;
    accent-color: #4ac7ab;
    transform: scale(1.5);
}
input[type=date], input[type=email], input[type=number], input[type=password], input[type=tel], input[type=text], input[type=url], select, textarea {
  width: 60%;
  padding: .5em 0.6em;
  margin-bottom: 0.2em;
  border: 1px solid #ccc;
  border-radius: 5px;
}
label {
  cursor: pointer;
}
::placeholder {
  color: #aaa;
}

.definition dl{
  display:flex;
  flex-wrap: wrap;
/*  border: 1px solid #ccc; */
  border-top: none;
}
.definition dt{
  background: #cef7e7;
  width: 30%;
  padding: 10px;
  box-sizing: border-box;
/*  border-top: 1px solid #ccc; */
  margin-bottom: 1em;
  font-weight: normal;
  border-radius: 7px;
}
.definition dd{
  padding: 10px;
  margin: 0;
  margin-bottom: 1em;
/*  border-left: 1px solid #ccc;
  border-top: 1px solid #ccc; */
  width: 70%;
  background: #fff;
  box-sizing: border-box;
}
input[submit], .wpcf7 .wpcf7-submit, .wpcf7 .wpcf7-previous {
  background: #4ac7ab;
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 10px 20px;
  font-size: 16px !important;
  cursor: pointer;
}

@media screen and (max-width: 560px) {
.definition dl{
    flex-flow: column nowrap;
  }
.definition dt,
.definition dd{
    width: 100%;
  }
.definition dd{
    border-left: none;
  }
  input[type=date], input[type=email], input[type=number], input[type=password], input[type=tel], input[type=text], input[type=url], select, textarea {
  width: 100%;
}
}

.riyoukiboujiki-sonota {
  padding-top: .5em;
}