  /* 767px以下 */


  .tablehyouji {
    width: 100% !important;
  }

  .wp-block-uagb-container {
    display: block !important;
  }

  figure.wp-block-image {
  min-width: unset !important;
  width: 100% !important;
  vertical-align: middle !important;
  }

  .wp-block-image img {
    width: 80% !important;
  }

  /************************************************************
  ************************** メニュー ***************************
  *************************************************************/
  #header {
    background: #fff !important;
    box-shadow: 0px 3px 5px -5px gray
  }

  /************************************************************
  ************************** news ***************************
  *************************************************************/
  .news-inner {
    width: 90%;
  }

  .news-content-heading {
    font-size: 28px;
  }

  .news-content-subheading {
    font-size: 12px;
  }

  table.news-table tr td {
    padding: 18px 8px;
    line-height: 1.2;
  }

  .news-date {
    width: 20%;
    font-size: 12px;
  }

  .news-heading {
    font-size: 14px;
  }

  /************************************************************
  ************************** リンクギャラリー ***************************
  *************************************************************/
  .link-collection-set-reverse {
    display: flex;
    flex-direction: column-reverse;
    width: 100%;
    height: 800px;
    max-height: 800px;
  }

  .link-collection-set {
    flex-direction: column;
    width: 100%;
    height: 800px;
    max-height: 800px;
  }

  .link-collection-img {
    width: 100%;
    height: 400px;
    overflow: hidden;
  }

  .link-collection-content {
    padding: 32px;
    width: 100%;
    height: 400px;

    display: flex;
    flex-direction: column;
  }

  .link-collection-content-heading {
    color: #06A1FD;
    font-size: 18px;
  }

  span.heading-sub {
    font-size: 14px;
  }

  .link-collection-content-catch {
    margin: 24px 0 16px 0;
    color: #06A1FD;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.4;
  }

  .link-collection-content-desc {
    color: #222;
    font-size: 16px;
    line-height: 1.4;
  }

  .link-collection-content-button {
    margin-top: 32px;
    margin-top: auto;
    text-align: right;
  }

  button.more-button {
    background: none;
    border: none;
  }

  button.more-button a {
    width: 100%;
    padding: 1em 60px;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    position: relative;
    background: #36b3fb;
    text-decoration: none;
    transition: 0.5s ease;
    font-size: 14px;
  }

  /* hover時の背景変更 */
  button.more-button a:hover {
    background: #06A1FD;
  }

  /* CSSで作るスタイリッシュな矢印 */
  span.btn-arrow {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
    margin-left: 0;
  }


  /************************************************************
  ************************** 賞、認定 ***************************
  *************************************************************/
  .award-inner {
    margin: auto;
    width: 90%;
    display: flex;
    justify-content: space-around;
    border-top: .5px solid #222;
    border-bottom: .5px solid #222;
  }

  .award-img-l {
    margin: 32px 0;
  }

  .award-img-r {
    margin: 32px 0;
  }




  .accordion {
    width: 100% !important;
  }

  .accordion-box1 {
  top: auto;
  }

  .accordion-box2 {
    top: auto;
  }

  .accordion-box3 {
    top: auto;
  }

  /* 診療時間テーブル、スマホ表示時に逆転 */
  .schedule-pc {
    display: none;
  }
  .schedule-sp {
    display: block;
    width: 100% !important;
  }

  .access-img {
  margin-top: 64px;
  width: 100%;
  height: 400px;
}

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



  /************************************************************
  ************************** footer ***************************
  *************************************************************/
  #footer_inner {
    padding: 32px 0 !important;
    width: 90% !important;
  }

  .footer-inner {
    padding: 0;
  }

  .footer-l-logo {
    width: 260px;
  }

  .lcr-grp {
    margin-top: 24px;
    display: block;
  }

  .footer-l {
    width: 100%;
  }

  .footer-l-access {
    font-size: 16px;
    line-height: 1;
  }

  .footer-l-access a {
    color: #fff;
    text-decoration: none;
  }

  .footer-l-catch {
    margin: 24px 0;
    font-size: 16px;
    line-height: 1.4;
  }

  .footer-l-sns-grp {
    width: 100%;
    display: flex;
    align-items: flex-end;
  }

  .footer-l-sns-img {
    width: 40px;
    height: auto;
  }

  .footer-l-sns-img img {
    width: 100%;
    height: 100%;
  }

  .sns-name {
    margin-left: 8px;
    font-size: 14px;
  }

  .footer-c {
    margin-top: 64px;
    padding-left: 0;
    width: 100%;
  }

  .footer-c-heading {
    font-size: 18px;
    font-weight: 600;
  }

  .footer-c-img-grp {
    margin: 16px 0;
    display: flex;
    justify-content: center;
  }

  .footer-c-img {
    margin-bottom: 32px;
    margin-right: 32px;
    width: 280px;
    height: auto;
  }

  .footer-c-img img {
    width: 100%;
    height: 100%;
  }

  .footer-r {
    width: 100%;
    text-align: center;
  }

  .footer-r-inner {

  }

  .footer-r-list {

  }

  .footer-r-list li {
    margin-bottom: 16px;
    list-style: none;
  }

  .footer-r-list a {
    color: #fff;
    text-decoration: none !important;
  }


/********************************************************************************
************************************* 医院案内 ***********************************
**********************************************************************************/
.wp-container-core-group-is-layout-ad2f72ca {
  display: block !important;
}

/* .is-layout-flex {
  display: block !important;
} */

.wp-block-uagb-container p {
  /* height: 180px !important; */
}

.post_content h4 {
  font-size: 70%;
  text-align: center;
}

.uagb-block-497196f5,
.uagb-block-12c3a691,
.uagb-block-fec5c97e {
  margin: auto !important;
  padding: 15px !important;
  width: 100%;
}

.uagb-block-497196f5 p,
.uagb-block-12c3a691 p,
.uagb-block-fec5c97e p {
  height: auto;
  font-size: 13px !important;
  line-height: 1.6;
}

  .wp-block-gallery.has-nested-images,
  .blocks-gallery-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important; /* 中央揃え */
    gap: 8px !important; /* 列間の余白 */
    padding: 0 !important;
    margin: 0 auto !important;
    box-sizing: border-box;
  }

  /* 各アイテムを2列に */
  .wp-block-gallery.has-nested-images figure,
  .blocks-gallery-item {
    flex: 0 0 calc(50% - 8px) !important; /* gap分を引く */
    max-width: calc(50% - 8px) !important;
    margin: 0 !important; /* デフォルトのマージン消す */
    box-sizing: border-box;
  }

  .wp-block-image img {
    width: 100% !important; 
  }


/********************************************************************************
************************************* 診療内容 ***********************************
**********************************************************************************/
.wp-block-uagb-container.uagb-block-70bc751c,
.wp-block-uagb-container.uagb-block-02c31f19,
.wp-block-uagb-container.uagb-block-45e83305 {
  max-width: 33%;
  width: 100%;
  height: auto;
  min-height: auto;
  /* min-height: 670px; */
  padding-top: 32px !important;
  /* justify-content: flex-start !important; */
  flex-direction: column;
  /* justify-content: space-between !important; */
  justify-content: flex-start !important;
}

figure.wp-block-image {
  margin: auto;
  min-width: unset !important;
  width: 50% !important;
  vertical-align: middle !important;
}

  h3.wp-block-heading {
    font-size: 18px !important;
  }

.wp-block-uagb-container p {
  height: auto !important;
  font-size: 16px;
}