/* ===== 全体 ===== */
body {
  font-family: "Hiragino Sans", "Noto Sans JP", "メイリオ", sans-serif;
  margin: 0;
  padding: 0;
  background: #fafafa;
  color: #333;
  line-height: 1.7;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.5em;
  background: #fff;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

/* ===== ヘッダー ===== */
header {
  display: flex;
  align-items: center;
  justify-content: center; /* 中央寄せ */
  gap: 10px;
  margin-bottom: 1.5em;
}

header h1 {
  margin: 0.5em 0;
  font-size: 1.6em;
  color: #2a2a2a;
}

header img {
  width: 45px;
  height: auto;
}

.cta-buttons {
  position: fixed;       /* 常時表示にする */
  bottom: 20px;          /* 画面下から20px */
  left: 50%;             /* 画面の中央に寄せる */
  transform: translateX(-50%); /* 中央寄せ補正 */
  z-index: 1000;         /* 他要素より前に出す */
  
  display: flex;
  justify-content: center;
  gap: 10px;

  background: rgba(255, 255, 255, 0.9); /* 半透明背景（見やすさ） */
  padding: 8px 12px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.cta-buttons a {
  display: inline-block;
  padding: 10px 16px;
  margin: 5px;
  border-radius: 6px;
  font-size: 0.95em;
  font-weight: bold;
  text-decoration: none;
  transition: 0.3s;
}

.cta-buttons a[href^="tel"] {
  background: #ff6b6b;
  color: #fff;
}

.cta-buttons a[href^="tel"]:hover {
  background: #e65555;
}

.cta-buttons a[href*="line"] {
  background: #f598df;
  color: #fff;
}

.cta-buttons a[href*="line"]:hover {
  background: #f966f4;
}

/* ===== 院情報 ===== */
.clinic-info {
  text-align: center;
  margin: 2em auto;
  font-size: 0.9em;
  color: #333;
}

.clinic-info-wrapper {
  display: flex;
  justify-content: center;   /* ✅ 中央寄せ */
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px; /* 左右の間隔を確保 */
}

.clinic-left {
  min-width: 160px;
  text-align: left; /* 住所などは左揃え */
}

.clinic-right {
  min-width: 160px;
  text-align: center;
}

.line-button {
  margin-bottom: 1em;
}

.accident-info {
  line-height: 1.6;
}


/* ===== ナビゲーション ===== */
nav {
  margin: 2em 0;
}

nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

nav li {
  margin: 0;
}

nav a {
  display: block;
  padding: 8px 14px;
  background: #fbff83;
  border-radius: 4px;
  color: #333;
  text-decoration: none;
  font-size: 0.9em;
  transition: 0.3s;
}

nav a:hover {
  background: #fbff83;
}

/* ===== メイン ===== */
main {
  text-align: center;
  margin-top: 1em;
}

.main-message {
  font-size: 0.9em;
  margin: 1.5em 0;
}

.info-images {
  margin-top: 2em;
}

.info-images img {
  max-width: 100%;
  height: auto;
  margin: 0.5em;
  border: 1px solid #ddd;
  border-radius: 4px;
}

/* ===== フッター ===== */
footer {
  text-align: center;
  font-size: 0.8em;
  color: #666;
  margin-top: 2em;
  padding-top: 1em;
  border-top: 1px solid #eee;
}


/* ===== スマホ対応改善 ===== */
@media (max-width: 768px) {
  header {
    flex-direction: row; /* 縦じゃなく横並びのまま */
    justify-content: center;
  }

  header h1 {
    font-size: 1.2em; /* 文字サイズを小さめに */
  }

  .cta-buttons {
    flex-direction: column; /* スマホは縦並び */
    align-items: center;
  }

  .cta-buttons a {
    width: auto;          /* 80%を解除 */
    min-width: 180px;     /* 押しやすい幅だけ確保 */
    text-align: center;
    margin: 6px 0;
  }

  nav ul {
    flex-direction: column;
    align-items: stretch; /* 横幅いっぱいで均等に */
    gap: 0;
  }

  nav a {
    padding: 12px;
    font-size: 1em;
    border-radius: 0;         /* フラットにしてスッキリ */
    border-bottom: 1px solid #eee;
  }
}
main｛
font-size: 0.5em;
｝