@charset "UTF-8";
/* CSS Document */

/* 病院案内 */
.top-info {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

/* 左側まとめ */
.info-left {
  display: grid;
  gap: 24px;
	max-width: 760px;
}

/* 写真 */
.clinic-photo img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}


/* お知らせ */
.info-right {
  padding: 0;
	margin-top: 0;
	height: 100%;
}

/* 実際に見せるカード */
.info-right-card {
  background: #fff;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
}
@media (min-width: 1024px) {
  .info-right-card {
    max-height: 560px;   /* ← 左（表＋写真）に近い高さ */
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
}


/* PCレイアウト */
@media (min-width: 1024px) {
  .top-info {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: stretch; /* ← 高さを揃える本体 */
  }
}





/* テーブル診療時間 */
.clinic-time-table {
	width: 90%;  
  margin-top: 1.6rem;
}


.clinic-time-table th {
  font-weight: normal;
	color: var(--navy);
}


.clinic-time-table table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
	table-layout: auto;   /* ← これが超重要 */
}

/* セル */
.clinic-time-table th{
	background-color: #6397AB;
	color: #fff;
}
.clinic-time-table th,
.clinic-time-table td {
  padding: 0.6rem 0.6rem;
  text-align: center;
  border: 1px solid var(--navy);
  /*font-size: 1em; */
}

/* 左端の時間 */
.clinic-time-table th:first-child {
  text-align: left;
  white-space: nowrap;
}

/* ●・休 の色 */
.clinic-time-table td {
  color: var(--navy);

}

/* 補足文 */
.section-hours .clinic-time-table p {
  margin-top: 1em;
}
/* ★診療時間：幅制限を強制（最後に置く） */
.section-hours .hours-inner{
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 5%;
}
@media (min-width: 768px) {
.clinic-time-table {
  margin: 1.6rem auto;
}
}



/* PC以上は左右余白を0に */
@media (min-width: 1024px){
  .section-hours .hours-inner{
    padding: 0;
  }
}



/* 画像に文字とボタン */
.top-card-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* スマホでは2つ並べ */
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* カード全体がボタン */
.top-card {
  display: block;
  position: relative;
  /*border-radius: 12px;*/
  overflow: hidden;
  text-decoration: none;
  color: #333;
}

/* 画像 */
.top-card img {
  width: 100%;
  height: auto;
  display: block;
}

/* タイトル（画像の上に重ねる） */
.top-card-title {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80%;
border-radius: 0 12px 0 0;
  padding: 10px 12px;
  background: rgba(255,255,255,0.7);
}

/* hover / tap */
.top-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

/* 施設紹介 */
/* スマホ：縦並び */
.facility{
  display: block;
}

/* スマホでは縦線を消す */
.facility-left::after{
  content: none;   /* ← これが確実 */
}

/* 左（タイトル）を左寄せに */
.facility-left{
  margin-bottom: 8px;
}

.facility-left .heya{
  text-align: left;
  font-size: 2rem; /* 少しだけ小さく */
}
.facility-right p{
  padding-bottom: 6px;
}
/* 画像は縦 */
.facility-right img{
  width: 100%;
}

@media (min-width: 768px){
  .facility{
    display: flex;
    gap: 24px;
    align-items: stretch;
  }
.facility-left{
    position: relative;
    flex: 0 0 15%;
  }


  .facility-left .heya{
    text-align: center;
    font-size: 2.3rem;
  }

  /* 縦線を表示 */
  .facility-left::after{
    content: "";
    position: absolute;
    top: 0;
    right: -6px;
    width: 1px;
    height: 100%;
    background: #093353;
  }

  .facility-right{
    flex: 1;
    min-width: 0;
  }

  .facility-right img{
    width: 32%;
  }
}




/* タブレット以上 */
@media (min-width: 768px) {
  .top-card-list {
    grid-template-columns: repeat(2, 1fr); /* タブレットでも2つ並べにする */
  }
}

/* PC以上 */
@media (min-width: 1024px) {
  .top-card-list {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* map関連 */











