/* ふなもと整形外科 静的サイト
   色合いは現行サイト（kitenn-wp テーマ color-blue.css）を踏襲:
   基調 #87cefa / アクセント #00bfff / 薄青 #e0f4ff / 紺 #062c43 */
:root {
  --sky: #87cefa;
  --deep: #00bfff;
  --pale: #e0f4ff;
  --navy: #062c43;
  --ink: #333;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", YuGothic, "Noto Sans JP", sans-serif;
  line-height: 1.8;
  background: #fff;
}
img { max-width: 100%; height: auto; }
a { color: var(--deep); }

/* ヘッダー */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff; border-bottom: 3px solid var(--sky);
}
.header-inner {
  max-width: 1080px; margin: 0 auto; padding: 8px 16px;
  display: flex; align-items: center; gap: 12px;
}
.logo { margin: 0; flex: 1; line-height: 1; }
.logo img { height: 44px; width: auto; }
.tel-btn {
  background: var(--sky); color: var(--navy); font-weight: bold;
  text-decoration: none; padding: 9px 16px; border-radius: 999px; white-space: nowrap;
}
.menu-btn {
  display: none; background: var(--sky); border: 0; color: #fff;
  width: 44px; height: 44px; border-radius: 50%; font-size: 20px;
}
.global-nav { background: var(--navy); }
.global-nav ul {
  max-width: 1080px; margin: 0 auto; padding: 0 8px;
  list-style: none; display: flex; flex-wrap: wrap;
}
.global-nav a {
  display: block; color: #fff; text-decoration: none;
  padding: 11px 14px; font-size: 14px;
}
.global-nav a:hover { background: rgba(135, 206, 250, .35); }

/* ヒーロー */
.hero { position: relative; max-width: 1080px; margin: 0 auto; aspect-ratio: 16 / 7; overflow: hidden; background: var(--pale); }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s; }
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-dots { position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; z-index: 2; }
.hero-dots button {
  width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff;
  background: rgba(6, 44, 67, .35); margin: 0 4px; padding: 0; cursor: pointer;
}
.hero-dots button.on { background: var(--deep); }

/* 丸メニューボタン */
.circle-nav {
  max-width: 1080px; margin: 18px auto 0; padding: 0 12px;
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; text-align: center;
}
.circle-nav a { color: var(--navy); text-decoration: none; font-size: 12px; width: 92px; }
.circle-nav .circle {
  display: flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; margin: 0 auto 4px; border-radius: 50%;
  background: var(--sky); color: #fff; font-weight: bold; font-size: 15px;
}
.circle-nav a:hover .circle { background: var(--deep); }

/* セクション */
main { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.section { padding: 34px 0 8px; }
.sec-header { text-align: center; margin-bottom: 18px; }
.sec-header .sec-sub { color: var(--deep); letter-spacing: .35em; font-size: 12px; margin: 0; }
.sec-header .sec-ttl {
  color: var(--deep); font-size: 26px; margin: 2px 0 0;
  display: inline-block; border-bottom: 3px solid var(--sky); padding-bottom: 4px;
}
h3.band {
  background: var(--pale); border-bottom: 3px solid var(--navy);
  padding: 8px 14px; font-size: 18px; color: var(--navy); margin: 26px 0 12px;
}
.wide-img { width: 100%; border-radius: 8px; }

/* お知らせ */
.news-list { display: grid; gap: 12px; }
.news-item { background: var(--pale); border-radius: 10px; padding: 14px 18px; }
.news-meta { margin: 0; font-size: 13px; color: #555; display: flex; gap: 10px; align-items: center; }
.news-cat {
  background: var(--sky); color: var(--navy); border-radius: 999px;
  padding: 1px 10px; font-size: 12px; font-weight: bold;
}
.news-title { margin: 4px 0; font-size: 16px; }
.news-body { margin: 0; font-size: 14px; white-space: pre-wrap; }
.news-item img { margin-top: 10px; border-radius: 8px; max-height: 320px; }

/* 表 */
.table-scroll { overflow-x: auto; }
.time-table { border-collapse: collapse; width: 100%; min-width: 640px; text-align: center; }
.time-table th, .time-table td { border: 1px solid #cfe8f7; padding: 9px 6px; }
.time-table thead th { background: var(--sky); color: var(--navy); }
.time-table tbody th { background: var(--pale); font-weight: bold; }
.time-table .small, .small { font-size: 11px; color: #555; }
.info-table { border-collapse: collapse; width: 100%; }
.info-table th, .info-table td { border: 1px solid #cfe8f7; padding: 9px 12px; text-align: left; vertical-align: top; }
.info-table th { background: var(--sky); color: var(--navy); width: 150px; white-space: nowrap; }

/* カレンダー */
.calendar-slot { text-align: center; }
.calendar-label { font-weight: bold; color: var(--navy); font-size: 18px; margin: 6px 0; }
.calendar-slot img { max-width: 430px; width: 100%; border: 1px solid #e3eef5; border-radius: 6px; }
.calendar-note { font-size: 14px; }

/* 院長 */
.director { display: flex; gap: 20px; align-items: flex-start; }
.director > img { width: 220px; border-radius: 8px; flex-shrink: 0; }
.director > div { flex: 1; min-width: 0; }

/* アクセス */
.map-wrap { position: relative; padding-top: 56.25%; border-radius: 8px; overflow: hidden; }
.map-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* お問い合わせ帯 */
.contact-band { background: var(--sky); border-radius: 12px; text-align: center; padding: 26px 16px; margin: 38px 0; }
.contact-band .sec-ttl { color: #fff; border-bottom-color: #fff; }
.contact-tel { font-size: 24px; font-weight: bold; color: var(--navy); text-decoration: none; }

/* フッター */
.site-footer { background: var(--navy); color: #dff2fd; text-align: center; padding: 30px 16px 40px; margin-top: 20px; }
.site-footer .footer-name { font-weight: bold; font-size: 17px; margin: 0 0 6px; }
.site-footer p { margin: 4px 0; font-size: 13px; }
.page-top { color: var(--sky); font-size: 13px; }

@media (max-width: 720px) {
  .menu-btn { display: block; }
  .global-nav { display: none; }
  .global-nav.open { display: block; }
  .global-nav ul { flex-direction: column; padding: 0; }
  .global-nav a { border-top: 1px solid rgba(255, 255, 255, .15); }
  .hero { aspect-ratio: 4 / 3; }
  .director { flex-direction: column; }
  .director > img { width: 180px; margin: 0 auto; }
  .info-table th { width: 104px; white-space: normal; }
  .tel-btn { padding: 8px 11px; font-size: 13px; }
  .logo img { height: 34px; }
}
