/* よこはま高島町クリニック 共通スタイル */
:root {
  --navy: #12306b;
  --blue: #0a7cc4;
  --blue-light: #e8f3fb;
  --bg: #f5f8fb;
  --text: #2b3440;
  --muted: #5f6b7a;
  --line: #dde5ee;
  --white: #fff;
  --accent: #e8792b;
  --radius: 10px;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  color: var(--text);
  background: var(--white);
  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(--navy); }
h1, h2, h3 { color: var(--navy); line-height: 1.45; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; }

/* ---------- ヘッダー ---------- */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.logo img { height: 56px; width: auto; }
.global-nav { margin-left: auto; }
.global-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.global-nav a {
  display: block; padding: 8px 12px; border-radius: 6px;
  color: var(--text); text-decoration: none; font-size: 15px; font-weight: 500; white-space: nowrap;
}
.global-nav a:hover, .global-nav a[aria-current="page"] { color: var(--blue); background: var(--blue-light); }
.header-tel { text-align: right; line-height: 1.3; white-space: nowrap; }
.header-tel a { font-size: 22px; font-weight: 700; color: var(--navy); text-decoration: none; letter-spacing: .02em; }
.header-tel small { display: block; font-size: 11px; color: var(--muted); }
.menu-toggle { display: none; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-block; padding: 12px 26px; border-radius: 999px;
  background: var(--blue); color: #fff; text-decoration: none; font-weight: 700;
  transition: background .2s;
}
.btn:hover { background: var(--navy); color: #fff; }
.btn-accent { background: var(--accent); }
.btn-accent:hover { background: #c95f16; }
.btn-outline { background: transparent; color: var(--blue); border: 2px solid var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; }

/* ---------- トップ：ヒーロー ---------- */
.hero {
  position: relative; min-height: 460px; display: flex; align-items: center;
  background: url(../img/hero-doctor.jpg) center right / cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,.95) 0%, rgba(255,255,255,.85) 40%, rgba(255,255,255,0) 70%);
}
.hero .container { position: relative; width: 100%; }
.hero-copy { max-width: 520px; }
.hero-copy .eyebrow { color: var(--blue); font-weight: 700; letter-spacing: .08em; margin: 0 0 8px; }
.hero-copy h1 { font-size: 36px; margin: 0 0 16px; }
.hero-copy p { margin: 0 0 24px; color: var(--text); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- 診療時間バー ---------- */
.info-bar { background: var(--navy); color: #fff; }
.info-bar .container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.info-item { padding: 22px 20px; border-left: 1px solid rgba(255,255,255,.15); }
.info-item:first-child { border-left: 0; }
.info-item h2 { color: #9fd2f5; font-size: 13px; margin: 0 0 4px; letter-spacing: .1em; }
.info-item p { margin: 0; font-size: 15px; line-height: 1.6; }
.info-item a { color: #fff; }

/* ---------- セクション ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--bg); }
.section-title { text-align: center; margin: 0 0 40px; font-size: 28px; }
.section-title span { display: block; font-size: 13px; color: var(--blue); letter-spacing: .2em; font-weight: 700; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 2px 10px rgba(18,48,107,.08); display: flex; flex-direction: column;
  text-decoration: none; color: var(--text); transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(18,48,107,.14); color: var(--text); }
.card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.card-body { padding: 20px 22px 24px; flex: 1; }
.card-body h3 { margin: 0 0 8px; font-size: 19px; }
.card-body p { margin: 0 0 12px; font-size: 14px; color: var(--muted); }
.card-more { color: var(--blue); font-weight: 700; font-size: 14px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split img { border-radius: var(--radius); }

.news-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.news-list li { display: flex; gap: 24px; padding: 16px 4px; border-bottom: 1px solid var(--line); }
.news-list time { color: var(--muted); font-size: 14px; white-space: nowrap; min-width: 96px; }

.reserve-cta {
  background: linear-gradient(135deg, var(--blue), var(--navy)); color: #fff;
  border-radius: var(--radius); padding: 36px 40px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.reserve-cta h2 { color: #fff; margin: 0 0 4px; font-size: 24px; }
.reserve-cta p { margin: 0; opacity: .9; }
.reserve-cta .btn { margin-left: auto; }

/* ---------- 下層ページ ---------- */
.page-head { background: var(--bg); padding: 44px 0 36px; border-bottom: 1px solid var(--line); }
.page-head h1 { margin: 0; font-size: 30px; }
.breadcrumb { font-size: 13px; color: var(--muted); margin: 0 0 8px; }
.breadcrumb a { color: var(--muted); }

.content { padding: 56px 0 72px; }
.content h2 {
  font-size: 23px; margin: 56px 0 20px; padding-left: 14px; border-left: 5px solid var(--blue);
}
.content h2:first-child { margin-top: 0; }
.content h3 { font-size: 18px; margin: 28px 0 8px; }
.prose { max-width: 820px; }

.numbered { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; }
.numbered li { background: var(--bg); border-radius: var(--radius); padding: 22px 24px; }
.numbered .num { display: inline-block; font-weight: 700; color: var(--blue); font-size: 22px; margin-right: 8px; }
.numbered strong { font-size: 17px; color: var(--navy); }
.numbered p { margin: 8px 0 0; font-size: 15px; }

.price-box {
  border: 2px solid var(--blue); border-radius: var(--radius); padding: 24px 28px; margin: 0 0 24px; background: #fff;
}
.price-box h3 { margin: 0 0 8px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.price { color: var(--accent); font-size: 22px; font-weight: 700; white-space: nowrap; }
.price small { font-size: 13px; color: var(--muted); font-weight: 400; }
.price-box p { margin: 0; font-size: 15px; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; margin: 0 0 16px; background: #fff; }
th, td { border: 1px solid var(--line); padding: 12px 16px; text-align: left; vertical-align: top; }
th { background: var(--bg); color: var(--navy); font-weight: 700; white-space: nowrap; }
.schedule th, .schedule td { text-align: center; }
.schedule td:first-child, .schedule th:first-child { text-align: left; }
.schedule .on { color: var(--blue); font-weight: 700; font-size: 18px; }
.schedule .off { color: #b9c2cc; }
.note { font-size: 14px; color: var(--muted); }

ol.plain, ul.plain { padding-left: 1.4em; }
.access-list { list-style: none; padding: 0; margin: 0; counter-reset: a; }
.access-list li { padding: 14px 0 14px 52px; position: relative; border-bottom: 1px dashed var(--line); }
.access-list li::before {
  counter-increment: a; content: counter(a, decimal-leading-zero);
  position: absolute; left: 0; top: 14px; font-weight: 700; color: var(--blue); font-size: 20px;
}
.map { width: 100%; height: 400px; border: 0; border-radius: var(--radius); margin: 0 0 24px; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; }
.gallery figure { margin: 0; }
.gallery a { display: block; border-radius: var(--radius); overflow: hidden; }
.gallery img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; transition: transform .3s; }
.gallery a:hover img { transform: scale(1.04); }
.gallery figcaption { padding: 8px 2px; font-weight: 700; color: var(--navy); }

.contact-boxes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.contact-box { background: var(--bg); border-radius: var(--radius); padding: 28px; text-align: center; }
.contact-box h2 { border: 0; padding: 0; margin: 0 0 8px; font-size: 18px; }
.contact-box .big { font-size: 30px; font-weight: 700; color: var(--navy); text-decoration: none; display: block; margin: 4px 0; }

/* ---------- フッター ---------- */
.site-footer { background: #0d2552; color: #c9d5e6; font-size: 14px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding: 56px 20px 40px; }
.site-footer h2 { color: #fff; font-size: 16px; margin: 0 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 6px; }
.site-footer a { color: #c9d5e6; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-tel { font-size: 24px; font-weight: 700; color: #fff !important; }
.copyright { border-top: 1px solid rgba(255,255,255,.12); text-align: center; padding: 16px 20px; font-size: 12px; margin: 0; }

/* ---------- スマホ固定ボタン ---------- */
.sp-bar { display: none; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 1100px) {
  .header-tel { display: none; }
  .menu-toggle {
    display: block; margin-left: auto; background: none; border: 1px solid var(--line);
    border-radius: 6px; padding: 8px 12px; font: inherit; font-size: 14px; color: var(--navy); cursor: pointer;
  }
  .global-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); margin: 0; }
  .global-nav.open { display: block; }
  .global-nav ul { flex-direction: column; padding: 8px 16px 16px; }
  .global-nav a { padding: 12px; border-bottom: 1px solid var(--line); border-radius: 0; }
}
@media (max-width: 960px) {
  .cards, .gallery { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 15px; padding-bottom: 60px; }
  .logo img { height: 46px; }
  .header-inner { min-height: 64px; }
  .hero { min-height: 0; padding: 48px 0 220px; background-position: 70% bottom; background-size: auto 260px; background-color: #fbf7f0; }
  .hero::before { background: linear-gradient(180deg, rgba(251,247,240,1) 55%, rgba(251,247,240,0) 80%); }
  .hero-copy h1 { font-size: 26px; }
  .info-bar .container { grid-template-columns: 1fr; padding: 0; }
  .info-item { border-left: 0; border-top: 1px solid rgba(255,255,255,.15); }
  .section { padding: 52px 0; }
  .section-title { font-size: 23px; }
  .cards, .gallery, .split, .numbered, .contact-boxes, .footer-inner { grid-template-columns: 1fr; }
  .split { gap: 24px; }
  .reserve-cta { padding: 28px 24px; }
  .reserve-cta .btn { margin-left: 0; }
  .page-head h1 { font-size: 24px; }
  .content h2 { font-size: 20px; }
  .news-list li { flex-direction: column; gap: 2px; }
  th, td { padding: 10px; }
  .schedule th, .schedule td { padding: 8px 3px; font-size: 13px; }
  .schedule td:first-child { white-space: nowrap; padding-left: 8px; }
  .schedule .on { font-size: 15px; }
  .sp-bar {
    display: grid; grid-template-columns: 1fr 1fr; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
    box-shadow: 0 -2px 10px rgba(0,0,0,.12);
  }
  .sp-bar a { display: block; text-align: center; padding: 15px 8px; color: #fff; text-decoration: none; font-weight: 700; }
  .sp-bar a:first-child { background: var(--navy); }
  .sp-bar a:last-child { background: var(--accent); }
}
