/* ------------------------------------------
            ３つの特徴
------------------------------------------ */

/* ===== 全体 ===== */
.card-list {
  display: flex;
  gap: 24px; /* カード間の余白 */
}

/* ===== カード ===== */
.card {
  flex: 1;
  background: #fff;
  border: 2px solid #d2e8f1;
  border-radius: 12px;
  padding: 16px;
}

/* 見出し（hタグなし） */
.card-title {
  font-weight: bold;
  color: #1f2f55;      /* 紺 */
  text-align: center;  /* センター寄せ */
  font-size: 1.6rem;
  margin-bottom: 12px;
}

/* 画像エリア */
.card-image {
  text-align: center;      /* 画像を中央に */
  margin-bottom: 12px;
  overflow: hidden;        /* 拡大時はみ出さない */
}

.card-image img {
  max-width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}

/* hover拡大 */
.card-image img:hover {
  transform: scale(1.05);
}

/* 説明文 */
.card-text {
  font-size: 1.4rem;
  line-height: 1.6;
  text-align: center;  /* センター寄せ */
}

/* ===== スマホ ===== */
@media screen and (max-width: 768px) {
  .card-list {
    flex-direction: column; /* 縦並び */
    gap: 16px;
  }
}


/* ------------------------------------------
            キャッチ
------------------------------------------ */
.point {
  text-align: center;
  font-size : 20px;
  font-weight: bold;
  margin-top: 50px;
  margin-bottom: 50px;
}

.under {
  font-size : 30px;
  text-decoration: underline;
  text-decoration-color: #e50b85;       /* 下線の色 */
  text-decoration-thickness: 5px;   /* 下線の太さ */
  text-underline-offset: 1px;       /* 文字との距離 */
}

/* ------------------------------------------
            診療所
------------------------------------------ */

/* ===== 一覧 ===== */
.clinic-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}


/* シール */
.clinic-badge {
  position: absolute;
  top: -12px;
  left: -8px;
  background: #e60033;        /* 赤系 */
  color: #fff;
  font-size: 0.8rem;
  font-weight: bold;
  padding: 8px 10px;
  border-radius: 50%;
  text-align: center;
  line-height: 1.2;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

/* ===== カード全体 ===== */
.clinic-card {
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid #d2e8f1;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* hover */
.clinic-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

/* ===== 画像 ===== */
.clinic-image {
  overflow: hidden;
}

.clinic-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

/* hoverで画像拡大 */
.clinic-card:hover .clinic-image img {
  transform: scale(1.08);
}

/* ===== テキスト ===== */
.clinic-body {
  padding: 16px;
  text-align: center;
}

.clinic-area {
  font-size: 1.2rem;
  color: #4d6fa1;
  margin-bottom: 6px;
}

.clinic-name {
  font-size: 1.4rem;
  font-weight: bold;
  color: #1f2f55; /* 紺 */
}

.clinic-value {
  font-size: 1.8rem;
  font-weight: bold;
  color: #1f2f55; /* 紺 */
}

/* ===== タブレット ===== */
@media screen and (max-width: 1024px) {
  .clinic-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

/* ===== スマホ ===== */
@media screen and (max-width: 768px) {
  .clinic-list {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ------------------------------------------
            健診一覧
------------------------------------------ */
/* ラッパー（はみ出し防止） */
.table-wrap {
  width: 100%;
  overflow-x: auto;
}

/* ===== テーブル本体 ===== */
.table-modern {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 1.0rem;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}

/* ===== ヘッダー ===== */
.table-modern thead th {
  background: #1f2f55; /* 紺 */
  color: #fff;
  padding: 14px 12px;
  text-align: center;
  font-weight: bold;
}

/* 左上だけ角丸 */
.table-modern thead th:first-child {
  border-top-left-radius: 12px;
}

/* 右上だけ角丸 */
.table-modern thead th:last-child {
  border-top-right-radius: 12px;
}

/* ===== ボディ ===== */
.table-modern tbody th {
  background: #f4f7fb;
  color: #1f2f55;
  font-weight: bold;
  text-align: left;
  padding: 12px;
  white-space: nowrap;
}

.table-modern tbody td {
  text-align: center;
  padding: 12px;
  color: #333;
}


/* 1・2列目：中央寄せ */
.table-modern th:nth-child(1),
.table-modern td:nth-child(1),
.table-modern th:nth-child(2),
.table-modern td:nth-child(2) {
  text-align: center;
}

/* 3・4列目：左寄せ */
.table-modern th:nth-child(3),
.table-modern td:nth-child(3),
.table-modern th:nth-child(4),
.table-modern td:nth-child(4) {
  text-align: left;
}

/* 行の区切り線 */
.table-modern tbody tr:not(:last-child) th,
.table-modern tbody tr:not(:last-child) td {
  border-bottom: 1px solid #e3e8f0;
}

/* ===== ストライプ（うっすら） ===== */
.table-modern tbody tr:nth-child(even) td {
  background: #fafcff;
}

/* ===== hover ===== */
.table-modern tbody tr:hover td {
  background: #eef4ff;
}

/* ===== スマホ ===== */
@media screen and (max-width: 768px) {
  .table-modern {
    font-size: 1.3rem;
  }

  .table-modern thead th,
  .table-modern tbody th,
  .table-modern tbody td {
    padding: 10px 8px;
  }
}