/* 西野歯科医院 ホームページ たたき台(2026-10-17 夜間作成)
   色は院内掲示・SPTのご案内と同じ青〜青緑系にそろえています */
:root {
  --blue: #1d6fa5;
  --blue-dark: #1a4f86;
  --teal: #2a9bb5;
  --green: #46b89a;
  --ink: #23343f;
  --muted: #5b6b75;
  --line: #d7e3ea;
  --bg-soft: #f2f8fb;
  --bg-teal: #eaf7f6;
  --closed: #e8f0f5;
  --closed-ink: #c2456b;
  --duty: #fff5ea;
  --radius: 14px;
  --max: 1080px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", "Meiryo", sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.85;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ヘッダー */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; line-height: 1.3; }
.brand .name { font-size: 22px; font-weight: 700; letter-spacing: .08em; color: var(--blue-dark); }
.brand .sub { font-size: 12px; color: var(--muted); letter-spacing: .1em; }
.header-tel { text-decoration: none; text-align: right; line-height: 1.3; }
.header-tel .num { font-size: 20px; font-weight: 700; color: var(--blue-dark); letter-spacing: .04em; }
.header-tel .cap { font-size: 12px; color: var(--muted); }
.nav { background: var(--blue); }
.nav ul { list-style: none; margin: 0 auto; padding: 0 12px; max-width: var(--max); display: flex; flex-wrap: wrap; justify-content: center; }
.nav a { display: block; color: #fff; text-decoration: none; padding: 10px 14px; font-size: 15px; }
.nav a:hover, .nav a[aria-current="page"] { background: rgba(255,255,255,.16); }

/* トップの大きな画像 */
.hero { position: relative; color: #fff; }
.hero img { width: 100%; height: min(62vh, 520px); object-fit: cover; }
.hero .catch {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(18, 52, 80, .78), rgba(18, 52, 80, 0));
  padding: 70px 20px 28px;
}
.hero .catch p { max-width: var(--max); margin: 0 auto; font-size: clamp(20px, 3.4vw, 32px); font-weight: 700; letter-spacing: .06em; line-height: 1.5; }

/* ページ見出し */
.page-title { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 34px 0 26px; }
.page-title h1 { margin: 0; font-size: clamp(24px, 3.2vw, 32px); color: var(--blue-dark); letter-spacing: .06em; }
.page-title p { margin: 6px 0 0; color: var(--muted); }

section { padding: 48px 0; }
section.soft { background: var(--bg-soft); }
h2 { font-size: clamp(21px, 2.6vw, 26px); color: var(--blue-dark); margin: 0 0 20px; padding-left: 14px; border-left: 6px solid var(--teal); line-height: 1.4; }
h3 { font-size: 19px; color: var(--blue-dark); margin: 26px 0 8px; }

/* 特徴カード */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; }
.card .num { display: inline-block; font-size: 13px; font-weight: 700; color: #fff; background: var(--teal); border-radius: 999px; padding: 2px 12px; margin-bottom: 8px; }
.card h3 { margin-top: 4px; }
.card p { margin: 0; }

/* お知らせ */
.news { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.news li { display: flex; gap: 16px; padding: 14px 4px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.news time { color: var(--muted); min-width: 7em; }
.badge { display: inline-block; font-size: 12px; padding: 1px 10px; border-radius: 999px; background: var(--bg-teal); color: #198a86; font-weight: 700; margin-right: 8px; }

/* 診療時間表 */
.hours { width: 100%; border-collapse: collapse; background: #fff; font-size: 15px; }
.hours th, .hours td { border: 1px solid var(--line); padding: 10px 6px; text-align: center; }
.hours thead th { background: var(--blue); color: #fff; font-weight: 600; }
.hours tbody th { background: var(--bg-soft); white-space: nowrap; }
.hours .no { color: var(--closed-ink); }
.note { color: var(--muted); font-size: 14px; margin-top: 8px; }

/* 2段組み */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 760px) { .two { grid-template-columns: 1fr; } }

/* 診療内容 */
.treat { display: grid; grid-template-columns: 1fr; gap: 18px; }
.treat article { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 18px; }
.treat h3 { margin-top: 0; }
.treat p { margin: 0 0 6px; }

/* 院内紹介 */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.gallery figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery figcaption { padding: 12px 16px 16px; }
.gallery figcaption b { display: block; color: var(--blue-dark); }

/* あいさつ */
.greeting { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 26px 18px; margin-bottom: 24px; }
.greeting .role { color: var(--muted); font-size: 14px; margin: 0; }
.greeting .person { font-size: 20px; font-weight: 700; color: var(--blue-dark); margin: 0 0 14px; }
.career { list-style: none; padding: 0; margin: 14px 0 0; border-top: 1px dashed var(--line); padding-top: 10px; }
.career li { padding: 2px 0; }

/* 自由診療の説明枠 */
.box { border: 2px solid var(--line); border-radius: var(--radius); padding: 18px 20px; background: #fff; }
.box.teal { border-color: #a9dcd6; background: var(--bg-teal); }
.box dl { margin: 0; display: grid; grid-template-columns: 9em 1fr; gap: 8px 14px; }
.box dt { font-weight: 700; color: var(--blue-dark); }
.box dd { margin: 0; }
@media (max-width: 560px) { .box dl { grid-template-columns: 1fr; } .box dd { margin-bottom: 8px; } }

/* 流れ図(SPT) */
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0; }
.flow span { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; font-weight: 600; }
.flow i { font-style: normal; color: var(--teal); font-weight: 700; }

/* よくある質問 */
.faq details { border: 1px solid var(--line); border-radius: 12px; background: #fff; margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 16px 18px; font-weight: 700; color: var(--blue-dark); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; display: inline-block; width: 1.6em; color: var(--teal); }
.faq details > div { padding: 0 18px 16px 2.6em; }

/* カレンダー */
.cal-wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 22px; }
.cal { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 14px 10px; }
.cal h3 { margin: 0 0 8px; text-align: center; }
.cal table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.cal th { font-size: 13px; color: var(--muted); padding: 4px 0; }
.cal th:first-child { color: var(--closed-ink); }
.cal th:last-child { color: var(--blue); }
.cal td { text-align: center; padding: 3px 0; }
.cal td span { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; font-size: 15px; }
.cal td.closed span { background: var(--closed); color: var(--closed-ink); font-weight: 700; }
.cal td.duty span { background: var(--duty); color: #b85f0a; font-weight: 700; outline: 2px solid #f5cf9f; }
.cal td.today span { outline: 2px solid var(--blue); }
.cal .memo { font-size: 13px; color: var(--muted); margin: 8px 2px 0; min-height: 1.2em; }
.legend { display: flex; flex-wrap: wrap; gap: 18px; font-size: 14px; color: var(--muted); margin: 6px 0 18px; }
.legend i { display: inline-block; width: 16px; height: 16px; border-radius: 50%; vertical-align: -3px; margin-right: 6px; }
.legend .c { background: var(--closed); border: 1px solid var(--closed-ink); }
.legend .d { background: var(--duty); border: 1px solid #f5cf9f; }

/* 地図 */
.map { width: 100%; aspect-ratio: 16 / 10; border: 0; border-radius: var(--radius); }

/* ボタン */
.btn { display: inline-block; background: var(--blue); color: #fff; text-decoration: none; padding: 12px 22px; border-radius: 999px; font-weight: 700; }
.btn:hover { background: var(--blue-dark); color: #fff; }
.btn.ghost { background: #fff; color: var(--blue); border: 2px solid var(--blue); }
.center { text-align: center; }

/* 施設基準等(掲示事項) */
.notice-list h3 { font-size: 17px; background: var(--blue); color: #fff; padding: 6px 12px; border-radius: 8px; margin: 26px 0 10px; }
.notice-list ul { margin: 0; padding-left: 1.3em; }

/* フッター */
.site-footer { background: var(--blue-dark); color: #e7f0f6; padding: 36px 0 90px; font-size: 14px; }
.site-footer a { color: #fff; }
.site-footer .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; }
.site-footer .name { font-size: 18px; font-weight: 700; color: #fff; margin: 0 0 6px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; columns: 2; }
.site-footer small { display: block; margin-top: 18px; color: #b9cfdf; grid-column: 1 / -1; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* スマホ:画面下に電話ボタン(追従) */
.call-bar { display: none; }
@media (max-width: 760px) {
  .header-tel { display: none; }
  .site-header { position: static; }
  .site-header .wrap { min-height: 58px; }
  .nav ul { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .nav a { padding: 9px 11px; font-size: 14px; white-space: nowrap; }
  .call-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: #fff; border-top: 1px solid var(--line); padding: 8px 10px; gap: 8px; }
  .call-bar a { flex: 1; text-align: center; text-decoration: none; border-radius: 10px; padding: 10px 6px; font-weight: 700; }
  .call-bar .tel { background: var(--blue); color: #fff; }
  .call-bar .cal-link { background: var(--bg-teal); color: #198a86; }
  section { padding: 36px 0; }
}
