/* ------------------------------------------------------------ */
/*    ヘッダー   */
/* ------------------------------------------------------------ */
.container-header .site-description {
	font-size: 0.8rem;
	color: rgb(23, 23, 23)
}
.container-header .container-nav {
	padding-bottom: 0;
}

/*メニュー*/
/* 少し隙間を空けた太いアンダーライン */
.container-header .mod-menu > li.active > a::after,
.container-header .mod-menu > li.current > a::after,
.container-header .mod-menu > li > a:hover::after {
    content: "";
    position: absolute;
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.2rem;
    height: 4px;
    background-color: orangered;
    border-radius: 2px;
    opacity: .2;
}

/* ========================================
   PCヘッダー
======================================== */

.container-header .navbar-brand {
  display: grid;
  grid-template-columns: 227px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.container-header .brand-logo img {
  display: block;
  width: 227px;
  height: auto;
}


/* ========================================
   スマートフォンヘッダー
======================================== */

@media (max-width: 991.98px) {

  /* header直下の2つのgrid-childを横並びにする */
  .container-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: #fff;
  }

  /* ロゴが入っている1つ目のgrid-child */
  .container-header > .grid-child:first-of-type {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    width: auto;
    padding: 0;
  }

  /* PC用のnavbar-brandグリッドを解除 */
  .container-header .navbar-brand {
    display: block;
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 0;
  }

  /* 説明文を非表示 */
  .container-header .site-description {
    display: none;
  }

  /* ロゴ */
  .container-header .brand-logo {
    display: block;
    width: fit-content;
    max-width: 100%;
  }

  .container-header .brand-logo img {
    display: block;
    width: auto;
    max-width: min(227px, 100%);
    height: auto;
  }

  /* メニューが入っている2つ目のgrid-child */
  .container-header > .container-nav {
    grid-column: 2;
    grid-row: 1;
    width: auto;
    min-width: auto;
    margin: 0;
    padding: 0;
  }

  .container-header .navbar {
    position: static;
    display: flex;
    justify-content: flex-end;
    min-height: auto;
    padding: 0;
  }

  /* バーガーボタン */
  .container-header .navbar-toggler {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 42px;
    margin: 0;
    padding: 0.4rem;
    border: 1px solid #f39828;
    border-radius: 0.35rem;
    background: #fff;
    color: #f39828;
    box-shadow: none;
  }

  .container-header .navbar-toggler .icon-menu {
    color: #f39828;
    font-size: 1.5rem;
  }

  /* 開いたメニューをヘッダーの下へ配置 */
  .container-header .navbar-collapse {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    z-index: 1000;
    width: 100%;
    margin: 0;
    padding: 0.5rem 1rem 1rem;
    background: #fff;
    box-shadow: 0 5px 10px rgb(0 0 0 / 15%);
  }

  .container-header .mod-menu {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .container-header .mod-menu > li {
    display: block;
    width: 100%;
  }

  .container-header .mod-menu > li > a {
    display: block;
    width: 100%;
    padding: 0;
    /*border-bottom: 1px solid #eee;*/
    color: #222;
    text-decoration: none;
  }
}


/* かなり狭いスマートフォン */
@media (max-width: 400px) {
  .container-header {
    padding-inline: 0.75rem;
  }

  .container-header .brand-logo img {
    max-width: 190px;
  }

  .container-header .navbar-toggler {
    width: 42px;
    height: 40px;
  }
}



/*アクティブの場合のアンダーライン*/
.container-header .mod-menu > li > a {
	padding-bottom: .8rem;
}

.metismenu.mod-menu .metismenu-item>a {
	text-decoration: none;
    display: inline-block;
    width: auto;
    /*padding: .75rem 0;*/
}

.metismenu.mod-menu .metismenu-item.active>a,
.metismenu.mod-menu .metismenu-item.active>button,
.metismenu.mod-menu .metismenu-item>a:hover,
.metismenu.mod-menu .metismenu-item>button:hover {
    text-decoration: none!important;
}




/*ぱんくず*/
.breadcrumb {
	background-color: #f8ca4f;
	background-image: linear-gradient(to bottom,#f9e6b2,#f8ca4f);
}
.top-image img {
	width: 100%;
	height: auto;
}
.top-image .card-body {
	padding: 0;
}
/* ------------------------------------------------------------ */
/*   サイドバー */
/* ------------------------------------------------------------ */
.sidebar-left.card .card-header {
  background-color: #ff5b1a;
  color: #fff;
  line-height: normal;
  text-transform: uppercase;
  font-size: 16px;
  padding: 10px 15px;
  -webkit-border-radius: 8px 8px 0 0;
  -moz-border-radius: 8px 8px 0 0;
  border-radius: 8px 8px 0 0;
  background-color: #ff5b1a;
  background-image: -moz-linear-gradient(top,#ffb52e,#ff5b1a);
  background-image: -webkit-gradient(linear,0 0,0 100%,from(#ffb52e),to(#ff5b1a));
  background-image: -webkit-linear-gradient(top,#ffb52e,#ff5b1a);
  background-image: -o-linear-gradient(top,#ffb52e,#ff5b1a);
  background-image: linear-gradient(to bottom,#ffb52e,#ff5b1a);
  background-repeat: repeat-x;
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffb52e', endColorstr='#ff5b1a', GradientType=0);
  text-align: center;
}
.sidebar-left.card .card-body {
    border: 1px solid rgb(229, 229, 229);
    background: #fefefe;
}
/*お問い合わせ*/
.contact-info-box {
	text-align: center;
}
.phone-number {
	font-size: 1.5rem;
	font-weight: bold;
	color: #0000ff;
}
.contact-info {
	color: #ff5a1f;
}
.contact-add {
	font-weight: bold;
}
/*診療日時のご案内*/
.treatment-time {
	font-size: .85rem;
}
.table-header {
	background: #eeeeee!important;
}
.treatment-time-memo {
	color: #ff5a1f!important;
}
/*自由治療費用*/
.price-row-num {
	background: #ffff99!important;
}
.price-memo {
	color: #ff5a1f!important;
	font-size: .85rem;
	text-align: center;
}
/* ------------------------------------------------------------ */
/*    フッター   */
/* ------------------------------------------------------------ */
.footer .grid-child {
	display: block;
	text-align: center;
}

/* ------------------------------------------------------------ */
/*    各記事   */
/* ------------------------------------------------------------ */
/* 共通の大見出し */
.section-title {
  position: relative;
  margin: 0 0 1rem;
  padding: 0.7rem 1.2rem 0.7rem 1.7rem;
  border: 1px solid #d8d8d8;
  border-radius: 0.35rem;
  background: linear-gradient(
    to bottom,
    #ffffff 0%,
    #ffffff 25%,
    #eeeeee 100%
  );
  box-shadow: 0 1px 2px rgb(0 0 0 / 10%);
  color: #111;
  font-size: clamp(1.35rem, 2.5vw, 1.7rem);
  font-weight: 700;
}

.section-title::before {
  position: absolute;
  top: 0.45rem;
  bottom: 0.45rem;
  left: 0;
  width: 0.4rem;
  border-radius: 0 0.2rem 0.2rem 0;
  background: linear-gradient(
    to bottom,
    #ffb52e,
    #ff5b1a
  );
  content: "";
}
/* ------------------------------------------------------------ */
/*    トップページ   */
/* ------------------------------------------------------------ */

/* 各セクションの余白 */
.home-intro-section,
.home-policy-section {
  margin-bottom: 2.5rem;
}

/* クリニック紹介 */
.home-intro-row {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.home-intro-image img {
  display: block;
  width: 100%;
  height: auto;
}

.home-intro-text {
  font-size: 1rem;
  line-height: 1.9;
}

.home-intro-text p {
  margin: 0 0 0.8rem;
}

/* 私たちの方針 */
.home-policy-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 2rem;
  align-items: start;
}

.home-policy-text ul {
  margin: 0;
  padding-left: 1.3rem;
}

.home-policy-text li {
  margin-bottom: 0.45rem;
  line-height: 1.8;
}

.home-policy-image img {
  display: block;
  width: 100%;
  height: auto;
}

/* タブレット以下 */
@media (max-width: 991.98px) {
  .home-intro-row {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 1.4rem;
  }

  .home-policy-row {
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 1.4rem;
  }
}

/* スマートフォン */
@media (max-width: 767.98px) {
  .home-section-title {
    padding: 0.65rem 1rem 0.65rem 1.5rem;
    font-size: 1.55rem;
  }

  .home-intro-row,
  .home-policy-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .home-intro-image,
  .home-policy-image {
    width: min(70%, 280px);
    margin-inline: auto;
  }

  .home-intro-text,
  .home-policy-text {
    font-size: 0.95rem;
    line-height: 1.8;
  }

  .home-policy-image {
    order: -1;
  }
}

/* トップページ：診療内容 */
.home-medical {
  margin-block: 2rem;
}

/* カード一覧 */
.home-medical-list {
  display: grid;
  gap: 1rem;
}

/* 各診療カード */
.home-medical-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  align-items: center;
  min-height: 165px;
  padding: 0.75rem;
  border: 2px solid #e3e3e3;
  border-radius: 0.45rem;
  background: linear-gradient(
    to bottom,
    #ffffff 0%,
    #f7f7f7 55%,
    #eeeeee 100%
  );
  box-shadow:
    inset 0 0 0 4px #fff,
    0 1px 2px rgb(0 0 0 / 8%);
}

/* 文章部分 */
.home-medical-body {
  min-width: 0;
  padding: 0.6rem 1.8rem 0.6rem 2.2rem;
}

.home-medical-body h3 {
  margin: 0 0 1.4rem;
  color: #ff5a1f;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
}

.home-medical-body p {
  margin: 0 0 0.65rem;
  color: #777;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.8;
}

.home-medical-body a {
  text-decoration: underline;
}

/* 画像部分 */
.home-medical-image {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 140px;
  padding: 0.4rem;
  /*background: #fff;*/
}

.home-medical-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* スマートフォン */
@media (max-width: 767.98px) {
  .home-medical-card {
    grid-template-columns: minmax(0, 1fr) 105px;
    min-height: 125px;
    padding: 0.5rem;
  }

  .home-medical-body {
    padding: 0.5rem 0.7rem;
  }

  .home-medical-body h3 {
    margin-bottom: 0.7rem;
    font-size: 1.3rem;
  }

  .home-medical-body p {
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.6;
  }

  .home-medical-image {
    height: 100px;
  }
}

/* かなり狭い画面 */
@media (max-width: 480px) {
  .home-medical-card {
    grid-template-columns: 1fr;
  }

  .home-medical-image {
    width: 140px;
    height: 110px;
    margin: 0 auto 0.5rem;
    grid-row: 1;
  }

  .home-medical-body {
    grid-row: 2;
  }
}

/* -------------------------------------------------- */
/*  診療内容詳細ページ*/
/* -------------------------------------------------- */
/* 診療詳細ページ：各診療項目 */
.medical-detail-section {
  margin-bottom: 3rem;
  scroll-margin-top: 6rem;
}

/* 診療項目のタイトル枠 */
.medical-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  align-items: center;
  padding: 0.75rem;
  border: 2px solid #e1e1e1;
  border-radius: 0.45rem;
  background: linear-gradient(
    to bottom,
    #fff 0%,
    #f8f8f8 45%,
    #eeeeee 100%
  );
  box-shadow:
    inset 0 0 0 4px #fff,
    0 1px 2px rgb(0 0 0 / 10%);
}

/* タイトル */
.medical-heading h2 {
  margin: 0;
  padding: 1rem 2.5rem;
  color: #ff5a1f;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.3;
}

/* 右側の画像枠 */
.medical-heading-image {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
  padding: 0.4rem;
  /*background: #fff;*/
}

/* 画像 */
.medical-heading-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 見出し下の本文 */
.medical-detail-body {
  padding: 1.5rem 0.4rem 0;
  font-size: 1rem;
  line-height: 1.9;
}

.medical-detail-body p {
  margin: 0 0 0.9rem;
}

.medical-detail-body h3 {
  margin: 1.5rem 0 0.6rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.medical-table-wrap {
  width: 100%;
  /*margin-block: 1.5rem;*/
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.medical-compare-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  background: #fff;
}

.medical-compare-table th,
.medical-compare-table td {
  padding: 1rem;
  border: 1px solid #aaa;
  vertical-align: top;
  line-height: 1.8;
}

.medical-compare-table thead th {
  background: #f2f2f2;
  color: #ff5a1f;
  text-align: center;
  font-size: 1.1rem;
}

.medical-compare-table tbody th {
  width: 120px;
  background: #f5f5f5;
  color: #4169e1;
  text-align: center;
  vertical-align: middle;
  font-weight: 700;
}

.medical-compare-table td {
  width: calc((100% - 120px) / 2);
}

.medical-compare-table ul {
  margin: 0;
  padding-left: 1.3rem;
}

.medical-compare-table li + li {
  margin-top: 0.35rem;
}
/* スマートフォン */
@media (max-width: 767.98px) {
	.medical-heading {
		grid-template-columns: minmax(0, 1fr) 90px;
		min-height: 100px;
	}
	.medical-heading h2 {
		padding: 1rem 1.5rem;
	}
	.medical-heading-image {
		height: 70px;
	}
}
/* ------------------------------------------------------------ */
/*    医師のご紹介   */
/* ------------------------------------------------------------ */

/* 各セクションの余白 */
.dentist-director-section,
.dentist-staff-section {
  margin-bottom: 2.5rem;
}

/* 医師紹介 */
.dentist-row {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.dentist-image img {
  display: block;
  width: 100%;
  height: auto;
}

.dentist-text {
  font-size: 1rem;
  line-height: 1.9;
}

.dentist-text p {
  margin: 0 0 0.8rem;
}
.image-caption {
	font-size: 0.85rem;
	text-align: center;
	margin-top: 1rem;
}


/* タブレット以下 */
@media (max-width: 991.98px) {
  .dentist-row {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 1.4rem;
  }
}

/* スマートフォン */
@media (max-width: 767.98px) {
  .dentist-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .dentist-image {
    width: min(70%, 280px);
    margin-inline: auto;
  }

  .dentist-text {
    font-size: 0.95rem;
    line-height: 1.8;
  }
}
/* ------------------------------------------------------------ */
/*    院内紹介   */
/* ------------------------------------------------------------ */

/* 各セクションの余白 */
/* 院内紹介 */
.clinic-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem 1rem;
  margin-block: 1.5rem;
}

.clinic-gallery-item {
  min-width: 0;
}

.clinic-gallery-title {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.4rem;
  min-height: 66px;
  margin: 0 0 0.85rem;
  padding: 0.8rem 1rem;
  border: 1px solid #aaa;
  background: #f3f3f3;
  text-align: center;
  line-height: 1.4;
}

.clinic-gallery-title-en {
  color: #1744d1;
  font-size: clamp(1.3rem, 2.3vw, 1.7rem);
  font-weight: 700;
}

.clinic-gallery-title-ja {
  color: #888;
  font-size: 1rem;
  font-weight: 400;
}

.clinic-gallery-item figure {
  margin: 0;
}

.clinic-gallery-item img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.clinic-gallery-item figcaption {
  min-height: 4.5rem;
  padding: 0.8rem 1rem 0;
  color: #777;
  font-size: 1rem;
  line-height: 1.8;
  text-align: center;
}

/* スマートフォン */
@media (max-width: 767.98px) {
  .clinic-gallery {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .clinic-gallery-title {
    min-height: auto;
    padding: 0.65rem 0.75rem;
  }

  .clinic-gallery-title-en {
    font-size: 1.35rem;
  }

  .clinic-gallery-title-ja {
    font-size: 0.95rem;
  }

  .clinic-gallery-item figcaption {
    min-height: auto;
    padding-inline: 0.5rem;
  }
}
/*------------------------------------------*/
/*  その他*/
/*------------------------------------------*/
/* トップへボタン*/
.back-to-top-link {
	padding: 1rem;
	border-radius: 50%;
}
.back-to-top-link.visible {
	opacity: .8;
}
.back-to-top-link:hover,.back-to-top-link:focus {
	background-color: orange;
}
