/* ============================================================
   星丘わたなべクリニック — スタイルシート
   清潔感・信頼感のある王道クリニックサイト
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Zen+Kaku+Gothic+New:wght@400;500;700&family=Shippori+Mincho:wght@500;600;700&display=swap');

:root {
  /* ---- カラー（ブルー系・清潔感） ---- */
  --bg:           #f3f8fa;
  --surface:      #ffffff;
  --surface-soft: #eaf3f6;
  --primary:      #2d7d9c;
  --primary-deep: #2b3057;
  --primary-soft: #dcebf1;
  --accent-soft:  #e3eff4;
  --ink:          #24373f;
  --ink-muted:    #5d727c;
  --line:         #dde8ec;
  --line-soft:    #e9f0f3;

  /* ---- タイポグラフィ ---- */
  --font-sans: "Zen Kaku Gothic New", system-ui, sans-serif;
  --font-serif: "Shippori Mincho", serif;

  /* ---- レイアウト ---- */
  --maxw: 1120px;
  --pad: clamp(20px, 5vw, 40px);
  --radius: 14px;
  --shadow-sm: 0 1px 3px rgba(31, 92, 116, 0.06), 0 1px 2px rgba(31, 92, 116, 0.04);
  --shadow:    0 10px 30px rgba(31, 92, 116, 0.08);
  --header-h: 76px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "palt";
  overflow-x: hidden;
}

h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.4; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---- 共通ユーティリティ ---- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }

.section { padding-block: clamp(64px, 9vw, 110px); }
.section--soft { background: var(--surface-soft); }
.section--white { background: var(--surface); }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 13px; font-weight: 700; letter-spacing: 0.22em;
  color: var(--primary); text-transform: uppercase;
  display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 30px; height: 2px; background: var(--primary); display: inline-block; }

.section-head { margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(26px, 3.6vw, 40px);
  letter-spacing: 0.04em;
  margin-top: 14px;
  color: var(--ink);
}
.section-title .small { display: block; font-size: 0.5em; color: var(--ink-muted); font-family: var(--font-sans); font-weight: 500; letter-spacing: 0.16em; margin-top: 10px; }
.section-lead { margin-top: 16px; color: var(--ink-muted); font-size: 17.5px; max-width: 640px; }
.section-head.center .section-lead { margin-inline: auto; }
/* 1行に収めたいリード文（モバイルでは自然に折り返す） */
.lead-1line { max-width: none; }
@media (min-width: 681px) { .lead-1line { white-space: nowrap; } }

/* ---- プレースホルダー画像 ---- */
.ph {
  position: relative;
  background-color: #e7eef2;
  background-image: repeating-linear-gradient(45deg, #e5edf1 0, #e5edf1 11px, #dde7eb 11px, #dde7eb 22px);
  display: flex; align-items: center; justify-content: center;
  color: #8597a0; font-family: ui-monospace, monospace; font-size: 12px; letter-spacing: 0.05em;
  text-align: center; overflow: hidden;
}
.ph::after {
  content: attr(data-label);
  padding: 4px 10px;
  background: rgba(255,255,255,0.7);
  border-radius: 999px;
  backdrop-filter: blur(2px);
}

/* ---- ボタン ---- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 26px; border-radius: 999px;
  font-family: var(--font-sans); font-weight: 700; font-size: 15px;
  cursor: pointer; border: 1.5px solid transparent; white-space: nowrap; flex: 0 0 auto;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn--primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--primary-deep); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--ghost { background: #fff; color: var(--primary); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--primary); transform: translateY(-2px); }
.btn--tel { font-size: 17px; }
.btn--tel .num { font-size: 19px; letter-spacing: 0.04em; }

/* ============================================================
   ヘッダー
   ============================================================ */
.header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.25; }
.brand__mark {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: grid; place-items: center;
  flex: none;
}
.brand__mark svg { width: 21px; height: 21px; }
.header-logoImg {
   display: block;
   width: 240px;
   margin-right: 10px;
}
.brand__name { font-family: var(--font-serif); font-weight: 600; font-size: 19px; letter-spacing: 0.06em; color: var(--ink); white-space: nowrap; }
.brand__sub { font-size: 11px; color: var(--ink-muted); letter-spacing: 0.14em; white-space: nowrap; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 12px; font-size: 15px; font-weight: 500; color: var(--ink);
  border-radius: 8px; transition: color .15s, background .15s; white-space: nowrap;
}
.nav a:hover { color: var(--primary); background: var(--accent-soft); }

.header__cta { display: flex; align-items: center; gap: 14px; }
.header__tel { text-align: right; line-height: 1.3; }
.header__tel .label { font-size: 10px; color: var(--ink-muted); letter-spacing: 0.1em; }
.header__tel .num { font-family: var(--font-serif); font-size: 21px; font-weight: 700; color: var(--primary-deep); white-space: nowrap; }

.hamburger { display: none; width: 44px; height: 44px; border: none; background: none; cursor: pointer; flex-direction: column; gap: 5px; justify-content: center; align-items: center; }
.hamburger span { width: 22px; height: 2px; background: var(--ink); transition: .25s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   ヒーロー
   ============================================================ */
.hero { position: relative; background: var(--surface); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; min-height: min(82vh, 720px); }
.hero__body { display: flex; flex-direction: column; justify-content: center; padding: clamp(40px, 7vw, 90px) clamp(24px, 5vw, 70px); }
.hero__tag { font-size: 14px; font-weight: 700; letter-spacing: 0.2em; color: var(--primary); }
.hero__title {
  font-family: var(--font-serif); font-weight: 600;
  font-size: clamp(32px, 5vw, 54px); line-height: 1.5; letter-spacing: 0.05em;
  margin-top: 22px; color: var(--ink); text-wrap: balance;
}
.hero__title em { font-style: normal; color: var(--primary-deep); }
.hero__lead { margin-top: 24px; font-size: 18px; color: var(--ink-muted); max-width: 460px; }
.hero__actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero__media { position: relative; }
.hero__media .ph { position: absolute; inset: 0; }
.hero__slides { position: absolute; inset: 0; }
.hero__slides img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.2s ease;
}
.hero__slides img.is-active { opacity: 1; }
.hero__badge {
  position: absolute; left: clamp(24px,5vw,70px); bottom: 34px;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px 22px; display: flex; align-items: center; gap: 16px; z-index: 2;
}
.hero__badge .dot { width: 10px; height: 10px; border-radius: 50%; background: #4caf7d; box-shadow: 0 0 0 4px rgba(76,175,125,.18); }
.hero__badge .t { font-size: 13px; color: var(--ink-muted); }
.hero__badge .t b { display: block; font-size: 15px; color: var(--ink); font-weight: 700; }

/* ---- 診療時間 簡易バー（ヒーロー下） ---- */
.quickinfo { background: var(--primary-deep); color: #fff; }
.quickinfo__inner { display: grid; grid-template-columns: repeat(3, 1fr); }
.quickinfo__item { padding: 22px var(--pad); display: flex; align-items: center; gap: 14px; }
.quickinfo__item + .quickinfo__item { border-left: 1px solid rgba(255,255,255,0.14); }
.quickinfo__ic { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.12); display: grid; place-items: center; flex: none; }
.quickinfo__ic svg { width: 20px; height: 20px; stroke: #fff; }
.quickinfo__t .k { display: block; font-size: 11px; letter-spacing: 0.12em; opacity: .75; margin-bottom: 2px; }
.quickinfo__t .v { display: block; font-size: 15px; font-weight: 700; }

/* ============================================================
   お知らせ
   ============================================================ */
.news__layout { display: grid; grid-template-columns: 280px 1fr; gap: clamp(28px, 5vw, 60px); align-items: start; }
.news__list { border-top: 1px solid var(--line); }
.news__item { border-bottom: 1px solid var(--line); }
.news__link { display: grid; grid-template-columns: 132px 96px 1fr auto; gap: 18px; align-items: baseline; padding: 20px 14px 20px 4px; transition: background .15s; color: inherit; }
.news__link:hover { background: var(--accent-soft); }
.news__link:hover .news__title { color: var(--primary-deep); }
.news__link:hover .news__arrow { transform: translateX(3px); color: var(--primary); }
.news__date { font-size: 15px; color: var(--ink-muted); font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
.news__cat { justify-self: start; font-size: 12px; font-weight: 700; padding: 3px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--primary-deep); white-space: nowrap; }
.news__cat[data-cat="重要"] { background: #fbe9e7; color: #c0392b; }
.news__cat[data-cat="休診"] { background: #fdf2e0; color: #b9770e; }
.news__title { font-size: 17px; font-weight: 500; transition: color .15s; }
.news__arrow { align-self: center; color: var(--ink-muted); transition: transform .2s ease, color .15s; font-size: 16px; }
.news__empty { padding: 40px 0; color: var(--ink-muted); }
.news__viewall { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-size: 14px; font-weight: 700; color: var(--primary); border: 1.5px solid var(--line); border-radius: 999px; padding: 9px 20px; white-space: nowrap; transition: border-color .18s, color .18s, transform .18s, background .18s; }
.blog__viewall { margin-top: clamp(34px, 5vw, 48px); display: flex; justify-content: center; }
.blog__viewall .news__viewall { margin-top: 0; }
.news__viewall span { transition: transform .2s ease; }
.news__viewall:hover { border-color: var(--primary); background: #fff; transform: translateY(-2px); }
.news__viewall:hover span { transform: translateX(3px); }

/* ============================================================
   ごあいさつ
   ============================================================ */
.greet__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(36px, 6vw, 72px); align-items: center; }
.greet__photo { position: relative; }
.greet__photo .ph { aspect-ratio: 4/5; border-radius: var(--radius); }
.greet__photo .frame { position: absolute; inset: 16px -16px -16px 16px; border: 1.5px solid var(--primary-soft); border-radius: var(--radius); z-index: -1; }
.greet__body h3 { font-family: var(--font-serif); font-size: clamp(22px, 3vw, 30px); letter-spacing: 0.04em; line-height: 1.6; }
.greet__body p { margin-top: 22px; color: var(--ink-muted); font-size: 17.5px; }
.greet__sign { margin-top: 30px; display: flex; align-items: baseline; gap: 14px; }
.greet__sign .role { font-size: 13px; color: var(--ink-muted); letter-spacing: 0.1em; }
.greet__sign .name { font-family: var(--font-serif); font-size: 24px; font-weight: 600; letter-spacing: 0.08em; }

.bio { margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; }
.bio__head { font-family: var(--font-sans); font-size: 12px; font-weight: 700; letter-spacing: 0.18em; color: var(--primary); padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid var(--line-soft); }
.bio__list { display: flex; flex-direction: column; gap: 11px; }
.bio__list li { position: relative; padding-left: 18px; font-size: 16px; color: var(--ink); line-height: 1.7; }
.bio__list li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 6px; height: 6px; border-radius: 50%; background: var(--primary-soft); }

/* ============================================================
   診療科目
   ============================================================ */
.dept__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.dept-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 30px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.dept-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--primary-soft); }
.dept-card__ic { width: 60px; height: 60px; border-radius: 16px; background: var(--accent-soft); display: grid; place-items: center; margin-bottom: 22px; }
.dept-card__ic svg { width: 30px; height: 30px; stroke: var(--primary-deep); }
.dept-card h3 { font-family: var(--font-serif); font-size: 22px; letter-spacing: 0.04em; }
.dept-card .en { font-size: 11px; font-weight: 700; letter-spacing: 0.18em; color: var(--primary); margin-bottom: 6px; }
.dept-card p { margin-top: 14px; font-size: 15.5px; color: var(--ink-muted); }
.dept-card__tags { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.dept-card__tags span { font-size: 12px; padding: 4px 11px; border-radius: 999px; background: var(--surface-soft); color: var(--ink-muted); }

/* ============================================================
   スタッフ紹介
   ============================================================ */
.staff__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 26px; }
.staff-card { text-align: center; }
.staff-card .ph { aspect-ratio: 1; border-radius: 50%; margin: 0 auto 18px; width: 100%; }
.staff-card__role { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; color: var(--primary); }
.staff-card__name { font-family: var(--font-serif); font-size: 20px; margin-top: 6px; letter-spacing: 0.06em; }
.staff-card__name .en { display: block; font-family: var(--font-sans); font-size: 11px; color: var(--ink-muted); letter-spacing: 0.12em; margin-top: 4px; font-weight: 500; }
.staff-card__note { margin-top: 10px; font-size: 13px; color: var(--ink-muted); }

/* ============================================================
   よくある質問（アコーディオン）
   ============================================================ */
.faq { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s, border-color .2s; }
.faq__item.open { box-shadow: var(--shadow); border-color: var(--primary-soft); }
.faq__q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  font-family: var(--font-sans); font-weight: 700; font-size: 17.5px; color: var(--ink);
  padding: 22px 60px 22px 24px; position: relative; line-height: 1.7;
  display: flex; align-items: flex-start; gap: 14px;
}
.faq__qi { flex: none; font-family: var(--font-serif); color: var(--primary); font-size: 19px; line-height: 1.5; }
.faq__toggle { position: absolute; right: 24px; top: 26px; width: 18px; height: 18px; flex: none; }
.faq__toggle::before, .faq__toggle::after { content: ""; position: absolute; background: var(--primary); border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
.faq__toggle::before { left: 0; top: 8px; width: 18px; height: 2px; }
.faq__toggle::after { left: 8px; top: 0; width: 2px; height: 18px; }
.faq__item.open .faq__toggle::after { transform: rotate(90deg); opacity: 0; }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq__a p { padding: 0 24px 24px 62px; color: var(--ink-muted); font-size: 16.5px; line-height: 1.9; }
.faq__a p strong { color: var(--ink); font-weight: 700; }

/* ============================================================
   ブログ
   ============================================================ */
.blog__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.blog-card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column; color: inherit; }
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.blog-card:hover .blog-card__title { color: var(--primary-deep); }
.blog-card:hover .blog-card__more { gap: 11px; }
.blog-card__media { aspect-ratio: 16/10; }
.blog-card__media .ph { width: 100%; height: 100%; }
.blog-card__body { padding: 22px 22px 26px; display: flex; flex-direction: column; flex: 1; }
.blog-card__meta { display: flex; align-items: center; gap: 12px; font-size: 12.5px; color: var(--ink-muted); }
.blog-card__meta .cat { font-weight: 700; color: var(--primary); }
.blog-card__title { font-size: 18px; font-weight: 700; margin-top: 10px; line-height: 1.6; transition: color .15s; }
.blog-card__excerpt { margin-top: 12px; font-size: 15px; color: var(--ink-muted); flex: 1; }
.blog-card__more { margin-top: 18px; font-size: 13px; font-weight: 700; color: var(--primary); display: inline-flex; align-items: center; gap: 6px; transition: gap .18s; }

/* ============================================================
   アクセス
   ============================================================ */
.access__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 5vw, 56px); align-items: stretch; }
.access__map { border-radius: var(--radius); overflow: hidden; min-height: 360px; border: 1px solid var(--line); }
.access__map .ph { width: 100%; height: 100%; min-height: 360px; }
.access__info { display: flex; flex-direction: column; }
.info-table { width: 100%; border-collapse: collapse; }
.info-table th, .info-table td { text-align: left; padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 16px; vertical-align: top; }
.info-table th { width: 96px; color: var(--ink-muted); font-weight: 700; white-space: nowrap; }

/* ---- 診療時間表 ---- */
.hours { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 15px; }
.hours th, .hours td { border: 1px solid var(--line); padding: 11px 6px; text-align: center; }
.hours thead th { background: var(--primary-deep); color: #fff; font-weight: 700; font-size: 14.5px; }
.hours tbody th { background: var(--surface-soft); color: var(--ink); font-weight: 700; text-align: left; padding-left: 14px; width: 110px; white-space: nowrap; }
.hours .o { color: var(--primary-deep); font-weight: 700; }
.hours .x { color: #c0738a; }
.hours__note { margin-top: 12px; font-size: 14px; color: var(--ink-muted); }

/* ============================================================
   サブページ（お知らせ一覧 / 詳細）
   ============================================================ */
.subhero { background: var(--primary-deep); color: #fff; padding-block: clamp(48px, 8vw, 92px); position: relative; overflow: hidden; }
.subhero::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: rgba(255,255,255,0.05); }
.subhero .eyebrow { color: #fff; }
.subhero .eyebrow::before { background: rgba(255,255,255,0.7); }
.subhero__title { font-family: var(--font-serif); font-weight: 600; font-size: clamp(28px, 4.5vw, 46px); letter-spacing: 0.05em; margin-top: 14px; }
.crumb { display: flex; align-items: center; gap: 9px; font-size: 13px; color: rgba(255,255,255,0.7); margin-bottom: 6px; }
.crumb a { color: rgba(255,255,255,0.9); transition: color .15s; }
.crumb a:hover { color: #fff; text-decoration: underline; }

.subpage { padding-block: clamp(48px, 7vw, 80px); min-height: 40vh; }
.subpage__wrap { max-width: 880px; }

/* ---- 一覧（全件） ---- */
.newslist { border-top: 1px solid var(--line); }

/* ---- 詳細記事 ---- */
.article__head { padding-bottom: 26px; margin-bottom: 32px; border-bottom: 1px solid var(--line); }
.article__meta { display: flex; align-items: center; gap: 14px; }
.article__date { font-size: 14px; color: var(--ink-muted); font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
.article__cat { font-size: 12px; font-weight: 700; padding: 4px 13px; border-radius: 999px; background: var(--accent-soft); color: var(--primary-deep); }
.article__cat[data-cat="重要"] { background: #fbe9e7; color: #c0392b; }
.article__cat[data-cat="休診"] { background: #fdf2e0; color: #b9770e; }
.article__title { font-family: var(--font-serif); font-weight: 600; font-size: clamp(23px, 3.4vw, 34px); line-height: 1.55; letter-spacing: 0.03em; margin-top: 18px; color: var(--ink); }
.article__hero { border-radius: var(--radius); overflow: hidden; margin-bottom: 32px; }
.article__hero img { width: 100%; max-height: 440px; object-fit: cover; display: block; }
.article__body { font-size: 18px; color: var(--ink); line-height: 2; }
.article__body p { margin-bottom: 1.4em; }
.article__body p:last-child { margin-bottom: 0; }
.article__nav { margin-top: 48px; padding-top: 30px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; }
.article__loading, .article__missing { padding: 60px 0; text-align: center; color: var(--ink-muted); }

.backlink { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--primary); transition: gap .18s, color .15s; }
.backlink:hover { gap: 12px; color: var(--primary-deep); }
.backlink--ghost { border: 1.5px solid var(--line); border-radius: 999px; padding: 11px 22px; }
.backlink--ghost:hover { border-color: var(--primary); }

/* ---- ページネーション ---- */
.pager { margin-top: clamp(40px, 6vw, 56px); display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px 16px; }
.pager__nums { display: flex; align-items: center; gap: 8px; }
.pager__num { min-width: 40px; height: 40px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; font-size: 15px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; transition: background .15s, color .15s; }
.pager__num:hover { background: var(--accent-soft); color: var(--primary-deep); }
.pager__num.is-current { background: var(--primary); color: #fff; }
.pager__btn { display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--primary); border: 1.5px solid var(--line); transition: border-color .15s, color .15s, background .15s; }
.pager__btn:hover { border-color: var(--primary); background: #fff; }
.pager__btn.is-disabled { color: var(--ink-muted); opacity: .4; pointer-events: none; }

/* ============================================================
   フッター
   ============================================================ */
.footer { background: var(--primary-deep); color: rgba(255,255,255,0.82); padding-block: clamp(48px, 7vw, 72px) 28px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.14); }
.footer__brand .brand__mark { background: #fff; color: var(--primary-deep); }
.footer-logoImg {
   display: block;
   width: 280px;
   margin-top: 0px;
   margin-right: 10px;
}
.footer__brand .name { font-family: var(--font-serif); font-size: 22px; color: #fff; letter-spacing: 0.06em; }
.footer__brand p { margin-top: 18px; font-size: 15px; max-width: 320px; }
.footer h4 { font-size: 13px; letter-spacing: 0.14em; color: #fff; margin-bottom: 18px; }
.footer__links li { margin-bottom: 11px; }
.footer__links li {font-size: 15px; }
.footer__links a { font-size: 15px; transition: color .15s; }
.footer__links a:hover { color: #fff; }
.footer__bottom { padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 12.5px; opacity: .7; }

/* ============================================================
   ローディング / フェードイン
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

.skeleton { background: linear-gradient(90deg, #eef4f6 25%, #e3edf1 50%, #eef4f6 75%); background-size: 200% 100%; animation: sk 1.3s infinite; border-radius: 6px; }
@keyframes sk { to { background-position: -200% 0; } }

/* ============================================================
   レスポンシブ
   ============================================================ */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { min-height: 320px; }
  .greet__grid { grid-template-columns: 1fr; }
  .greet__photo { max-width: 360px; }
  .bio { grid-template-columns: 1fr; gap: 24px; }
  .dept__grid { grid-template-columns: 1fr; }
  .blog__grid { grid-template-columns: repeat(2, 1fr); }
  .access__grid { grid-template-columns: 1fr; }
  .news__layout { grid-template-columns: 1fr; }
}

@media (max-width: 1040px) {
  .nav, .header__tel { display: none; }
  .hamburger { display: flex; }
  .nav.open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: #fff; padding: 12px; gap: 2px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .nav.open a { padding: 14px; font-size: 16px; }
  .quickinfo__inner { grid-template-columns: 1fr; }
  .quickinfo__item + .quickinfo__item { border-left: none; border-top: 1px solid rgba(255,255,255,0.14); }
}

@media (max-width: 640px) {
  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .blog__grid { grid-template-columns: 1fr; }
  .news__link { grid-template-columns: 1fr auto; gap: 6px 12px; padding: 16px 4px; }
  .news__cat { order: -1; }
  .news__arrow { display: none; }
  .hours { font-size: 12px; }
  .hours th, .hours td { padding: 8px 3px; }
  /* スマホでヘッダーが渢れないよう 電話予約ボタンをコンパクトに */
  .header__cta { gap: 10px; }
  .header .btn--primary { padding: 10px 15px; font-size: 13.5px; }
  .brand__sub { font-size: 10px; }
}

/* ============================================================
   追従サイドボタン（スクロールしても右端に固定）
   ※ index.html には要素を置かないため表示されません
   ============================================================ */
.sidebar-cta {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-cta__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding: 18px 11px 20px;
  width: 62px;
  color: #fff;
  background: var(--primary);
  border-radius: 12px 0 0 12px;
  box-shadow: -4px 6px 18px rgba(31, 92, 116, 0.22);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.sidebar-cta__item--alt { background: var(--primary-deep); }

.sidebar-cta__item:hover {
  transform: translateX(-5px);
  box-shadow: -8px 8px 22px rgba(31, 92, 116, 0.3);
}
.sidebar-cta__item:hover { background: var(--primary-deep); }
.sidebar-cta__item--alt:hover { background: #16455a; }

.sidebar-cta__ic {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  flex: none;
}
.sidebar-cta__ic svg { width: 24px; height: 24px; }

.sidebar-cta__label {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.1;
  white-space: nowrap;
}

/* ---- スマホ：右端の縦タブ → 画面下部の横並び（3分割）バーに切替 ---- */
@media (max-width: 760px) {
  .sidebar-cta {
    top: auto;
    bottom: 0;
    right: 0;
    left: 0;
    transform: none;
    flex-direction: row;
    gap: 0;
    box-shadow: 0 -4px 16px rgba(31, 92, 116, 0.16);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .sidebar-cta__item {
    flex: 1;
    flex-direction: column;
    gap: 5px;
    justify-content: center;
    width: auto;
    padding: 9px 4px 10px;
    border-radius: 0;
    box-shadow: none;
  }
  .sidebar-cta__item + .sidebar-cta__item { border-left: 1px solid rgba(255, 255, 255, 0.18); }
  .sidebar-cta__item:hover { transform: none; }
  .sidebar-cta__label {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    font-size: 13px;
    letter-spacing: 0.02em;
  }
  .sidebar-cta__ic { width: 22px; height: 22px; }
  .sidebar-cta__ic svg { width: 22px; height: 22px; }
}
