/* === 基本レイアウト === */
body {
  font-family: 'Hiragino Kaku Gothic ProN', '游ゴシック', YuGothic, sans-serif;
  font-size: clamp(14px, 2.5vw, 16px);
  line-height: 1.8;
  color: #333;
  margin: 0;
  padding: 0;
  background: #fff;
}

.section {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

/* === ヘッダー・フッター === */
header, footer {
  background: #f9f9f9;
  padding: 2em 1em;
  text-align: center;
}

.footer-info {
  font-size: 0.9em;
  color: #555;
  margin-top: 2em;
}

.logo {
  max-width: 100%;
  height: auto;
}

/* === ナビゲーション === */
.nav {
  text-align: center;
  margin: 2em 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5em;
}

.nav a {
  display: flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.8em 1.2em;
  background: #e6f0fb;
  border: 1px solid #ccc;
  border-radius: 5px;
  text-decoration: none;
  color: #003366;
  transition: background-color 0.2s;
  font-size: 1rem;
}

.nav a:hover {
  background: #d4e7fb;
}

.nav .active {
  font-weight: bold;
  background-color: #dceeff;
  color: #005ea2;
  box-shadow: 0 0 4px rgba(0, 94, 162, 0.3);
}

.nav-label {
  display: inline-block;
}

/* === モバイル用ナビ（2列表示） === */
@media (max-width: 600px) {
  .nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5em;
  }

  .nav a {
    flex: 1 1 calc(50% - 1em);
    max-width: 160px;
    font-size: 0.95rem;
    padding: 0.6em 0.5em;
    justify-content: center;
  }
}

/* === 見出しスタイル === */
h1, h2, h3 {
  margin: 1em 0 0.5em;
  font-weight: 600;
}

h1 {
  font-size: clamp(24px, 4.5vw, 36px);
  text-align: center;
  margin-top: 1em;
  margin-bottom: 0.5em;
}

h2 {
  border-left: 5px solid #5A9BCF;
  padding-left: 10px;
  font-size: clamp(22px, 4vw, 32px);
  margin-top: 1.5em;
}

h3 {
  border-bottom: 2px solid #5A9BCF;
  padding-bottom: 5px;
  font-size: clamp(18px, 3vw, 24px);
  margin-top: 1.2em;
}

/* === コンテンツカード === */
.card {
  background: #fff;
  border: 1px solid #ccc;
  padding: clamp(1em, 2vw, 2em);
  margin: 2em 0;
  border-radius: 8px;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.05);
}

/* === お知らせブロック === */
.renewal-notice {
  background-color: #f0f8ff;
  border-left: 6px solid #5a9bcf;
  padding: 1em;
  margin: 1.5em auto;
  max-width: 800px;
  font-size: 1rem;
  line-height: 1.5;
  color: #333;
  border-radius: 4px;
}

.renewal-notice strong {
  font-size: 1.1em;
  color: #005ea2;
}

/* === お知らせリスト === */
.oshirase-list {
  list-style-type: none;
  padding-left: 0;
}

.oshirase-list li {
  margin-bottom: 0.6em;
  border-bottom: 1px dashed #ccc;
  padding-bottom: 0.4em;
}

/* === リンク全般 === */
a {
  color: #5A9BCF;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* === ワクチンカード === */
.vaccine-card {
  background-color: #f7fbff;
  border: 1px solid #aad4f5;
  border-left: 6px solid #5a9bcf;
  border-radius: 6px;
  padding: 1em;
  margin: 1.5em 0;
  box-shadow: 0 0 5px rgba(90, 155, 207, 0.1);
}

.vaccine-card h4 {
  margin: 0 0 0.5em;
  font-size: 1.2em;
  color: #005ea2;
}

/* === 診療時間表 === */
.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  display: block;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
}

/* モバイル用調整 */
@media (max-width: 600px) {
  .schedule-table {
    min-width: 600px; /* モバイルではスクロールで見切れないように */
  }
}

.schedule-table th,
.schedule-table td {
  border: 1px solid #999;
  padding: 8px;
}

.schedule-table thead th {
  background-color: #f0f0f0;
  font-weight: bold;
}

.schedule-table th {
  white-space: nowrap;
}

/* === Q&Aスタイル === */
.qa-box {
  background-color: #f9fbff;
  border-left: 6px solid #5a9bcf;
  padding: 1.5em;
  margin-bottom: 1.5em;
  border-radius: 8px;
  font-size: 1.1rem;
  line-height: 1.7;
  box-shadow: 0 0 4px rgba(90, 155, 207, 0.1);
}

.qa-box h3 {
  margin: 0 0 0.5em;
  font-size: 1.2rem;
  color: #003366;
}

.qa-box p {
  margin: 0.5em 0 0;
}
.page-title {
  font-size: clamp(24px, 5vw, 36px);
  margin-bottom: 1em;
  text-align: center;
}

.card img {
  border-radius: 8px;
}

.card p {
  margin-bottom: 1em;
}

ul {
  list-style-type: none;
  padding-left: 0;
}

ul li {
  margin-bottom: 0.5em;
}

/* リスト：デフォルトは2カラム */
.kampo-list {
  columns: 2;
  column-gap: 2em;
  max-width: 960px;
  margin: 0 auto;
  list-style-type: none;
  padding-left: 0;
}

.kampo-list li {
  margin-bottom: 0.5em;
}

/* スマホでは1カラムにする */
@media screen and (max-width: 600px) {
  .kampo-list {
    columns: 1;
  }
}

h2 img {
  vertical-align: middle;
  border-radius: 4px;
}
