@charset "utf-8";
/* CSS Document */

/* 初期状態：両方非表示にしておく */
.sp-only,
.pc-only {
  display: none;
}

/* スマホ表示（768px以下）で sp-only を表示 */
@media screen and (max-width: 768px) {
  .sp-only {
    display: block !important;
  }
  .pc-only {
    display: none !important;
  }

  .contact-sections {
    flex-direction: column;
  }

  .contact-box {
    width: 100%;
  }
}

/* PC表示（769px以上）で pc-only を表示 */
@media screen and (min-width: 769px) {
  .pc-only {
    display: block !important;
  }
  .sp-only {
    display: none !important;
  }
}

/* お問い合わせ共通スタイル */
.sp-contact {
  width: 100%;
padding: 0 0 2.5em;
  margin-bottom: 1em;
}

.contact-sections {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* ← 中央寄せに変更 */
  /*margin: 0 -0.75em;*/ /* ← 左右のマイナスマージンで隙間調整 */
}

.contact-box {
  width: 30%;
  margin: 0 0.75em 1.5em; /* ← 横に余白を持たせつつ、下にも余白 */
  background: #fff;
  border: 1px solid #e2e2e2;
  display: flex;
  flex-direction: column;
  font-size: 0.95em;
	text-align: center;
}
.contact-sections .tel::before {
  font-size:1.3em;
}

/* タイトルと本文 */
.box-title {
  background-color: #8E680E;
  padding: 0.8em 1em;
  color:#fff;
  font-size: 1em;
  border-bottom: 1px solid #e2e2e2;
}

.box-body {
  padding: 1em;
  flex-grow: 1;
}

.box-body p {
  margin: 0.5em 0;
  line-height: 1.5;
}

.box-body a:link,
.box-body a:visited,
a.box-body:link,
a.box-body:visited { text-decoration: none; }
.box-body a:before {
	font-family: 'sannoclc';
	content: '\e907';
	display: inline-block;
	line-height: 1;
}

.box-body span {
  font-size: 2em;
	font-weight: bold;
}
.box-body strong {
  display: inline-block;
  color: #333;
}

@media only screen and (max-width: 768px) {
  .contact-sections {
    flex-direction: column;
    margin: 0;
  }
  .contact-box {
    width: 100%;
    margin: 0 0 1.5em;
  }
  .contact-sections .tel::before {
    font-size:1.5em;
  }
  .contact-sections .tel a::before {
    display: none;
  }	
}

/* =====================================
	関連施設のご案内（レイアウト変更）
===================================== */
#ft_contact_area{
	margin-bottom: 5em;
}

/* 全体レイアウト */
.facility_area2 .cont_list {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  list-style: none;
	border: none; /* ulには枠線を付けない */
  padding: 0 0 2.5em 0;
}

/* 各ボタン（PC表示：4列） */
.facility_area2 .cont_list li {
  width: 22.9%;
  margin: 0 2.8% 2.25em 0;
  display: flex;
  align-items: flex-end;
  height: 80px;
  border: 1px solid #e2e2e2; /* liだけに枠線 */
  box-sizing: border-box;
}

.facility_area2 .cont_list li.end_part {
  margin-right: 0;
}

/* 右端のボタンの余白調整 */
.facility_area2 .cont_list li:nth-child(4n) {
  margin-right: 0;
}

/* リンク全体 */
.facility_area2 .cont_list li a {
  display: block;
  width: 100%;
  text-decoration: none;
  color: inherit;
  height: auto;
  border: none; /* 子要素には枠線を付けない */
}

/* テキスト＋画像の並び */
.facility_area2 .facility_item {
  display: flex;
  align-items: center;
  height: 80px;
  padding-left: 0.8em;
  padding-right: 0;
  box-sizing: border-box;
  border: none; /* 子要素には枠線を付けない */
}

/* テキスト部分 */
.facility_area2 .facility_text {
	flex: 1;
	display: flex;
	align-items: center;
	height: 100%;
	padding-right: 0.5em;
}

.facility_area2 .facility_text span {
	font-size: 0.9em;
	word-break: break-word;
}

/* 画像部分 */
/* PC表示：画像は80px固定 */
.facility_area2 .facility_item {
	display: flex;
	align-items: center; /* テキストを上下中央 */
	justify-content: space-between;
}

  .facility_area2 .facility_item img {
    aspect-ratio: 1 / 1; /* 正方形維持 */
    width: 80px;
    height: auto;
    object-fit: cover;
    border: 1px solid #e2e2e2;
    flex-shrink: 0;
  }

/* 中間サイズ：画像を少し拡大（正方形維持） */
@media only screen and (min-width: 769px) and (max-width: 1024px) {
  .facility_area2 .facility_item img {
    aspect-ratio: 1 / 1;
    width: clamp(80px, 12vw, 140px); /* 80px以上、最大140pxまで */
    height: auto;
    object-fit: cover;
    border: 1px solid #e2e2e2;
    flex-shrink: 0;
  }
}

@media only screen and (max-width: 768px) {
.facility_area2 .cont_list {
    display: flex;
    flex-wrap: wrap;
	padding: 0 0 2.5em 0;
    margin: 0;
	}

.facility_area2 .cont_list li {
	width: 100%;
    margin: 0 0 2.5vw;
    display: block;
	border: 1px solid #e2e2e2; /* liだけに枠線 */
  }

.facility_area2 .cont_list li a {
    display: block;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
	border: none; /* 子要素には枠線を付けない */
  }

.facility_area2 .facility_text {
    flex: 1;
    padding-left: 0.3em;
	font-size: 1.3em;
  }

.facility_area2 .facility_text span {
    font-size: 1em;
    line-height: 1.4;
  }

.facility_area2 .facility_item {
	display: flex;
	align-items: center; /* テキストを上下中央に */
	justify-content: space-between; /* テキストと画像を左右に配置 */
	border: none; /* 子要素には枠線を付けない */
}

/* 画像は常に正方形を維持 */
.facility_area2 .facility_item img {
    aspect-ratio: 1 / 1;
    width: clamp(80px, 21vw, 140px); /* 80px以上、最大140pxまで */
    height: auto;
    object-fit: cover;
    border: 1px solid #e2e2e2;
    flex-shrink: 0;
  }
}

/* =====================================
	お問い合わせ（上下にブロックを分ける対応）
===================================== */
.three_clm {
	display: flex;
	justify-content: space-between;
}

@media only screen and (max-width: 768px) {
.three_clm {
	flex-direction: column !important;
	}

.three_clm > dl,
.three_clm > div {
    width: 100% !important;
    display: block !important;
	padding-bottom: 0;
	}

	.three_clm > div dl {
	width: 100% !important;
  }
}

@media only screen and (min-width: 769px) {
.center-block {
	width: 31.1%;
	display: flex;
	flex-direction: column;
	gap: 2em;
	}
}


/* =====================================
	当院のご案内
===================================== */
dd.tel {
	white-space: nowrap;
}

@media (max-width: 768px) {
dd.tel {
	white-space: normal;
	display: inline-block;
	max-width: 100%;
	word-break: break-word;
	}
}
