/* 東金町内科クリニック — 採用値の説明は docs/DESIGN_SYSTEM.md
   2026-09-25 改訂: 参考3サイトの原理（実写の組み合わせ・明朝の縦書き・紺基調・丸型ボタン）で刷新 */

:root {
  /* 色: ロゴ（青 #3868bf／緑 #258055／赤 #f02218）から。紺はロゴの青を暗くしたもの */
  --bg: #ffffff;
  --band: #f2f5f8;
  --band-2: #e8eef4;
  --surface: #ffffff;
  --ink: #1f2b36;
  --navy: #1d3a63;
  --navy-deep: #152b4a;
  --muted: #56636e;
  --line: #dfe5eb;
  --line-strong: #b8c3ce;
  --blue: #3868bf;
  --blue-deep: #24508f;
  --green: #258055;
  --green-deep: #1b6341;
  --red: #f02218;
  /* 月ごとの診療予定 PDF の色分け */
  --cal-full: #e3f3cb;
  --cal-am: #d8f0f6;
  --cal-closed: #f8dfeb;
  --closed-ink: #8c2f5c;
  --focus: #24508f;

  --font: "BIZ UDPGothic", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", sans-serif;
  --mincho: "Zen Old Mincho", "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;
  --fs-body: clamp(1.0625rem, 1rem + 0.25vw, 1.125rem);
  --fs-small: 0.9375rem;
  --fs-h1: clamp(1.875rem, 1.4rem + 1.9vw, 2.75rem);
  --fs-h2: clamp(1.5rem, 1.25rem + 1vw, 2.125rem);
  --fs-h3: clamp(1.1875rem, 1.1rem + 0.4vw, 1.4375rem);

  --s1: 0.5rem;
  --s2: 1rem;
  --s3: 1.5rem;
  --s4: 2.5rem;
  --s5: 4rem;
  --s6: clamp(4.5rem, 3rem + 5vw, 8rem);
  --max: 1200px;
  --text: 38em;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 8px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  /* 追従ヘッダーの下にページ内リンク先が隠れないように */
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 2;
  overflow-wrap: break-word;
  line-break: strict;
  letter-spacing: 0.04em;
}

/* 日本語を文節で折り返し、最終行が1文字にならないようにする（対応ブラウザのみ） */
h1,
h2,
h3,
p,
li,
dd,
dt,
summary,
figcaption {
  word-break: auto-phrase;
  text-wrap: pretty;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--blue-deep);
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

h1,
h2,
h3 {
  line-height: 1.45;
  font-weight: 700;
  margin: 0;
}

p {
  margin: 0 0 1.4em;
}

ul,
ol {
  margin: 0 0 1.6em;
  padding-left: 1.4em;
}

address {
  font-style: normal;
}

abbr[title] {
  text-decoration: none;
}

[hidden] {
  display: none !important;
}

.vh {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: var(--s2);
  top: -100px;
  z-index: 100;
  background: var(--navy);
  color: #fff;
  padding: var(--s1) var(--s2);
  border-radius: var(--radius);
}

.skip:focus {
  top: var(--s1);
}

/* ---------- ヘッダー ---------- */
/* スクロールしても上に追従するヘッダー */
.site-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
  transition: box-shadow 200ms ease;
}

/* メニューを開いているときは背景を不透明にして下の本文が透けないように */
.site-header:has(.gnav.is-open) {
  background: #fff;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.site-header.is-stuck {
  box-shadow: 0 4px 18px rgba(21, 43, 74, 0.1);
}

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header {
    background: rgba(255, 255, 255, 0.88);
    -webkit-backdrop-filter: saturate(160%) blur(10px);
    backdrop-filter: saturate(160%) blur(10px);
  }
}

.site-header__inner {
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 16px var(--gutter);
  display: flex;
  align-items: center;
  gap: var(--s3);
}

.brand {
  display: block;
  flex: none;
}

.brand img {
  width: clamp(200px, 19vw, 270px);
}

.gnav {
  margin-left: auto;
}

.gnav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: clamp(0.9rem, 1.6vw, 1.75rem);
}

.gnav a {
  white-space: nowrap;
  color: var(--navy);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9688rem;
  letter-spacing: 0.06em;
  padding: 0.4rem 0;
  display: inline-block;
  border-bottom: 2px solid transparent;
  transition: border-color 180ms ease;
}

.gnav a:hover {
  border-bottom-color: var(--line-strong);
}

.gnav a[aria-current] {
  border-bottom-color: var(--blue);
}

.menu-button {
  display: none;
}

@media (max-width: 1079px) {
  .site-header__inner {
    flex-wrap: wrap;
    gap: 0 var(--s2);
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .menu-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
    min-height: 46px;
    padding: 0 1rem;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: var(--surface);
    color: var(--navy);
    font: inherit;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
  }

  .menu-button__bars,
  .menu-button__bars::before,
  .menu-button__bars::after {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    position: relative;
    transition: transform 180ms ease, background-color 180ms ease;
  }

  .menu-button__bars::before,
  .menu-button__bars::after {
    content: "";
    position: absolute;
    left: 0;
  }

  .menu-button__bars::before {
    top: -6px;
  }

  .menu-button__bars::after {
    top: 6px;
  }

  .menu-button[aria-expanded="true"] .menu-button__bars {
    background: transparent;
  }

  .menu-button[aria-expanded="true"] .menu-button__bars::before {
    transform: translateY(6px) rotate(45deg);
  }

  .menu-button[aria-expanded="true"] .menu-button__bars::after {
    transform: translateY(-6px) rotate(-45deg);
  }

  .gnav {
    flex-basis: 100%;
    margin: 0;
    max-height: calc(100vh - 90px);
    overflow-y: auto;
  }

  .js .gnav:not(.is-open) {
    display: none;
  }

  .gnav ul {
    flex-direction: column;
    gap: 0;
    padding: var(--s1) 0 var(--s2);
  }

  .gnav li + li {
    border-top: 1px solid var(--line);
  }

  .gnav a {
    display: flex;
    align-items: center;
    font-size: 1.0625rem;
    padding: 0.85rem 0;
    border-bottom: 0;
  }

  .gnav a[aria-current]::before {
    content: "";
    width: 0.55em;
    height: 0.55em;
    margin-right: 0.6em;
    background: var(--green);
    clip-path: polygon(0 0, 100% 0, 0 100%);
  }
}

/* ---------- ボタン（丸型・右端に円の中の矢印） ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 56px;
  padding: 0.5rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.3;
  letter-spacing: 0.04em;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.btn--tel {
  white-space: nowrap;
  background: var(--green);
  color: #fff;
  padding-left: 1.75rem;
  padding-right: 1.75rem;
}

.btn--tel:hover {
  background: var(--green-deep);
}

.btn__label {
  font-size: 0.875rem;
  padding-right: 0.75rem;
  border-right: 1px solid rgba(255, 255, 255, 0.5);
}

.btn__num {
  font-size: clamp(1.1875rem, 1rem + 1vw, 1.375rem);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.btn--pill,
.btn--line {
  border: 1px solid var(--navy);
  color: var(--navy);
  background: var(--surface);
  padding: 0.45rem 0.5rem 0.45rem 1.5rem;
  min-height: 52px;
  font-size: 0.9688rem;
}

.btn--pill::after,
.btn--line::after {
  content: "";
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
  background: var(--navy)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8h9M8.5 4.5 12 8l-3.5 3.5' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 16px no-repeat;
  transition: transform 180ms ease;
}

.btn--pill:hover,
.btn--line:hover {
  background: var(--band);
}

.btn--pill:hover::after,
.btn--line:hover::after {
  transform: translateX(3px);
}

.btn--on-dark {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}

.btn--on-dark::after {
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8h9M8.5 4.5 12 8l-3.5 3.5' fill='none' stroke='%231d3a63' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.btn--on-dark:hover {
  background: rgba(255, 255, 255, 0.1);
}

.text-link {
  font-weight: 700;
}

.text-link::after {
  content: " →";
}

/* ---------- 見出し（明朝＋短い青の線） ---------- */
.section {
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: var(--s6) var(--gutter);
}

.band {
  background: var(--band);
}

.section-title {
  font-family: var(--mincho);
  font-weight: 700;
  font-size: var(--fs-h2);
  color: var(--navy);
  letter-spacing: 0.08em;
  margin-bottom: clamp(2.5rem, 2rem + 2vw, 3.75rem);
  padding-bottom: 1.1rem;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 2.5rem;
  height: 2px;
  background: var(--blue);
}

/* ---------- 週の診療グリッド（Signature Motif） ---------- */
.week-wrap {
  overflow-x: auto;
  /* 今日の赤丸（上に 7px はみ出す）が切れないよう、上と右に余白を持たせる */
  padding: 10px 6px 2px 0;
}

.week {
  width: 100%;
  border-collapse: separate;
  border-spacing: 3px;
  table-layout: fixed;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
}

.week th,
.week td {
  text-align: center;
  padding: 0;
  height: 48px;
  border-radius: 4px;
}

.week thead th {
  font-weight: 700;
  height: 40px;
  position: relative;
  color: var(--navy);
}

.week thead th:first-child {
  width: 6.4em;
  background: transparent;
}

.week thead th.day-full {
  background: var(--cal-full);
}

.week thead th.day-am {
  background: var(--cal-am);
}

.week thead th.day-closed {
  background: var(--cal-closed);
  color: var(--closed-ink);
}

.week tbody th {
  text-align: left;
  padding: 0 0.25rem 0 0;
  font-weight: 700;
  color: var(--navy);
}

.week__label {
  display: block;
}

.week__time {
  display: block;
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--muted);
  white-space: nowrap;
}

.week td.is-open {
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}

.week__mark {
  display: block;
  width: 18px;
  height: 18px;
  margin: 0 auto;
  background: var(--green);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.week td.is-closed {
  background: var(--cal-closed);
  color: var(--closed-ink);
  font-size: 0.875rem;
}

.week .is-today {
  box-shadow: inset 0 0 0 2px var(--navy);
}

.week thead th.is-today::after {
  content: "";
  position: absolute;
  top: -7px;
  right: -3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 2px var(--surface);
  animation: dot-land 420ms cubic-bezier(0.2, 0.9, 0.3, 1.25) 200ms both;
}

@keyframes dot-land {
  from {
    transform: translateY(-10px) scale(0.2);
    opacity: 0;
  }

  to {
    transform: none;
    opacity: 1;
  }
}

.week-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin: var(--s1) 0 0;
  padding: 0;
  list-style: none;
  font-size: var(--fs-small);
  color: var(--muted);
}

.week-legend li {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}

.week-legend .sw {
  width: 1em;
  height: 1em;
  border-radius: 2px;
  display: inline-block;
}

.week--mini th,
.week--mini td {
  height: 34px;
  font-size: 0.875rem;
}

.week--mini thead th {
  height: 30px;
}

.week--mini .week__mark {
  width: 13px;
  height: 13px;
}

.week--mini thead th:first-child {
  width: 6.4em;
}

.week--mini .week__time {
  font-size: 0.75rem;
}

@media (max-width: 479px) {
  .week--mini thead th:first-child {
    width: 4.2em;
  }

  .week--mini .week__time {
    white-space: normal;
    font-size: 0.6875rem;
  }
}

.notes {
  margin: var(--s2) 0;
  padding-left: 1.2em;
  font-size: var(--fs-small);
}

/* ---------- 今日の診療 ---------- */
.today {
  margin: 0;
}

.today__title {
  font-size: 0.9375rem;
  color: var(--navy);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5em;
  letter-spacing: 0.08em;
}

.today__title::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--red);
}

.today__date {
  font-family: var(--mincho);
  font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem);
  font-weight: 700;
  color: var(--navy);
  margin: 0.2rem 0 0.2rem;
  font-variant-numeric: tabular-nums;
}

.today__date:empty {
  display: none;
}

.today__status {
  font-size: 1.0313rem;
  margin: 0 0 0.3rem;
}

.today__status strong {
  font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
}

.today__status .is-open-now {
  color: var(--green-deep);
}

.today__status .is-closed-now {
  color: var(--closed-ink);
}

.today__next {
  font-size: var(--fs-small);
  color: var(--muted);
  margin: 0;
}

/* ---------- ホーム: Hero（外観写真を全面に敷き、白い文字を重ねる） ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  /* 画像が読めないときも白文字が読めるよう紺を下地にする */
  background: var(--navy-deep);
  color: #fff;
}

.hero__bg img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 56% 30%;
}

/* 文字の背後だけを紺で沈める（SP は上端と下半分） */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(130% 75% at 0% 0%, rgba(21, 43, 74, 0.9) 0%, rgba(21, 43, 74, 0.78) 40%, rgba(21, 43, 74, 0) 72%),
    linear-gradient(180deg, rgba(21, 43, 74, 0) 28%, rgba(21, 43, 74, 0.88) 52%, rgba(21, 43, 74, 0.96) 100%);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: 1fr auto;
  min-height: min(125vw, 720px);
  padding: 1.25rem var(--gutter) var(--s4);
}

.hero__copy {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  align-self: start;
  margin: 0;
  writing-mode: vertical-rl;
  white-space: nowrap;
  font-family: var(--mincho);
  font-weight: 500;
  font-size: clamp(1.1875rem, 0.9rem + 1.6vw, 1.4375rem);
  letter-spacing: 0.22em;
  line-height: 1.9;
  text-shadow: 0 1px 10px rgba(10, 22, 40, 0.55);
}

.hero__plate {
  grid-column: 1 / -1;
  grid-row: 2;
  text-shadow: 0 1px 12px rgba(10, 22, 40, 0.5);
}

.hero__place {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
  color: #e6edf5;
}

.hero__title-main {
  display: block;
  font-family: var(--mincho);
  font-size: clamp(1.75rem, 1rem + 2.6vw, 3.25rem);
  line-height: 1.35;
  letter-spacing: 0.08em;
}

.hero__title-name {
  display: block;
  font-size: clamp(1rem, 0.92rem + 0.35vw, 1.25rem);
  margin-top: 0.5rem;
  letter-spacing: 0.14em;
  color: #e6edf5;
}

.hero__lead {
  margin: 1rem 0 0;
  font-size: var(--fs-small);
  font-weight: 700;
  color: #fff;
}

/* PC: 看板を左に見せ、右側を紺で沈めて文字を右寄せに置く */
@media (min-width: 768px) {
  .hero__bg img {
    object-position: 18% 14%;
  }

  .hero::before {
    background: linear-gradient(
      270deg,
      rgba(21, 43, 74, 0.95) 0%,
      rgba(21, 43, 74, 0.88) 34%,
      rgba(21, 43, 74, 0.5) 50%,
      rgba(21, 43, 74, 0) 62%
    );
  }

  /* 文字の右端を、下のセクションの本文幅の右端にそろえる */
  .hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 27rem) auto;
    grid-template-rows: 1fr;
    column-gap: clamp(2rem, 4vw, 4.5rem);
    min-height: 0;
    height: clamp(560px, 82vh, 880px);
    padding: clamp(3rem, 6vw, 5.5rem) max(var(--gutter), calc((100vw - var(--max)) / 2));
  }

  .hero__plate {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
  }

  .hero__copy {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    font-size: clamp(1.75rem, 0.9rem + 1.6vw, 2.5rem);
  }
}

@media (min-width: 768px) and (max-width: 1279px) {
  .hero__inner {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr) auto;
    column-gap: 1.5rem;
  }

  .hero::before {
    background: linear-gradient(
      270deg,
      rgba(21, 43, 74, 0.95) 0%,
      rgba(21, 43, 74, 0.88) 42%,
      rgba(21, 43, 74, 0.45) 56%,
      rgba(21, 43, 74, 0) 68%
    );
  }

  .hero__bg img {
    object-position: 8% 14%;
  }
}

/* ---------- ホーム: 今日の診療パネル ---------- */
.now {
  padding: 0 var(--gutter);
  background: linear-gradient(var(--surface) 50%, var(--band) 50%);
}

.now__panel {
  max-width: var(--max);
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) auto;
  grid-template-areas:
    "today actions"
    "month month"
    "news news";
  gap: var(--s3) var(--s4);
  padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1.25rem, 3vw, 3rem);
  margin-top: var(--s4);
}

.now__today {
  grid-area: today;
}

.now__actions {
  grid-area: actions;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-self: center;
}

.now__news {
  grid-area: news;
  display: grid;
  grid-template-columns: 9em minmax(0, 1fr) auto;
  gap: 0 var(--s3);
  align-items: baseline;
  border-top: 1px solid var(--line);
  padding-top: var(--s2);
}

.now__news-title {
  font-family: var(--mincho);
  font-size: 1.125rem;
  color: var(--navy);
}

.now__news .news-list {
  margin: 0;
}

.now__more {
  margin: 0;
  font-size: var(--fs-small);
}

@media (max-width: 859px) {
  .now__panel {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "today"
      "actions"
      "month"
      "news";
  }

  .now__actions .btn {
    width: 100%;
  }

  .now__news {
    grid-template-columns: minmax(0, 1fr);
  }
}

.now__month {
  grid-area: month;
  border-top: 1px solid var(--line);
  padding-top: var(--s3);
}

/* ---------- 今月の診療予定カレンダー（月ごとの診療予定 PDF の色分け） ---------- */
.month__title {
  font-family: var(--mincho);
  font-size: var(--fs-h3);
  color: var(--navy);
  letter-spacing: 0.06em;
  margin-bottom: var(--s2);
}

.month__grid {
  overflow-x: auto;
}

.month__table {
  width: 100%;
  min-width: 300px;
  border-collapse: separate;
  border-spacing: 3px;
  table-layout: fixed;
  font-variant-numeric: tabular-nums;
}

.month__table th {
  font-size: 0.8125rem;
  color: var(--navy);
  padding: 0.25rem 0;
}

.month__table th.is-sun {
  color: var(--closed-ink);
}

.month__table th.is-sat {
  color: var(--blue-deep);
}

.month__table td {
  vertical-align: top;
  padding: 0.35rem 0.4rem 0.45rem;
  border-radius: 4px;
  line-height: 1.35;
  height: 3.6rem;
}

.month__table td.is-full {
  background: var(--cal-full);
}

.month__table td.is-am {
  background: var(--cal-am);
}

.month__table td.is-closed {
  background: var(--cal-closed);
  color: var(--closed-ink);
}

.month__table td.is-special {
  background: #f3dcc0;
}

.month__table td.is-blank {
  background: transparent;
}

.month__table td.is-today {
  box-shadow: inset 0 0 0 2px var(--navy);
  position: relative;
}

.month__table td.is-today::after {
  content: "";
  position: absolute;
  top: 4px;
  right: 4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
}

.month__d {
  display: block;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--navy);
}

.month__table td.is-closed .month__d,
.month__table td.is-holiday .month__d {
  color: var(--closed-ink);
}

.month__hol {
  font-size: 0.6875rem;
  margin-left: 0.2em;
}

.month__t {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0;
}

.month__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.1rem;
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  font-size: 0.8125rem;
  color: var(--muted);
}

.month__legend li {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}

.month__legend .sw {
  width: 1em;
  height: 1em;
  border-radius: 2px;
}

.month__legend .sw.is-full { background: var(--cal-full); }
.month__legend .sw.is-am { background: var(--cal-am); }
.month__legend .sw.is-closed { background: var(--cal-closed); }
.month__legend .sw.is-special { background: #f3dcc0; }

.month__pdf {
  list-style: none;
  padding: 0;
  margin: var(--s2) 0 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  font-size: var(--fs-small);
  font-weight: 700;
}

.month__note {
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 0;
}

.hours-month {
  margin: clamp(3rem, 5vw, 4.5rem) 0 0;
  max-width: 46rem;
}

@media (max-width: 479px) {
  .month__table td {
    padding: 0.3rem 0.2rem 0.35rem;
    height: 3.4rem;
  }

  .month__t {
    font-size: 0.625rem;
  }

  .month__d {
    font-size: 0.8125rem;
  }
}

/* ---------- 赤い吹き出し（エピペン） ---------- */
.balloon {
  position: relative;
  margin: 2rem 0 2.5rem;
  padding: 1.25rem 1.5rem;
  background: #fdeceb;
  border: 2px solid var(--red);
  border-radius: 12px;
  color: #8a1a13;
  font-weight: 700;
  line-height: 1.85;
}

.balloon::after {
  content: "";
  position: absolute;
  left: 2.5rem;
  bottom: -14px;
  width: 22px;
  height: 14px;
  background: var(--red);
  clip-path: polygon(0 0, 100% 0, 30% 100%);
}

.balloon::before {
  content: "";
  position: absolute;
  left: calc(2.5rem + 3px);
  bottom: -9px;
  z-index: 1;
  width: 15px;
  height: 10px;
  background: #fdeceb;
  clip-path: polygon(0 0, 100% 0, 30% 100%);
}

/* 予防接種: dd 内の箇条書き */
.vaccine-list {
  margin: 0;
}

.vaccine-list li + li {
  margin-top: 0.35rem;
}

/* ---------- ホーム: 目的別の入口 ---------- */
.doors {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: var(--s2);
}

.doors a {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  height: 100%;
  padding: 1.6rem 1.5rem 4rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 180ms ease, background-color 180ms ease;
}

.doors a::before {
  content: "";
  position: absolute;
  left: -1px;
  top: -1px;
  width: 16px;
  height: 16px;
  background: var(--green);
  clip-path: polygon(0 0, 100% 0, 0 100%);
  border-top-left-radius: var(--radius);
}

.doors a::after {
  content: "";
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--navy)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8h9M8.5 4.5 12 8l-3.5 3.5' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 16px no-repeat;
  transition: transform 180ms ease;
}

.doors a:hover {
  border-color: var(--navy);
  background: var(--band);
}

.doors a:hover::after {
  transform: translateX(3px);
}

.doors__label {
  font-family: var(--mincho);
  font-weight: 700;
  font-size: 1.1875rem;
  color: var(--navy);
  line-height: 1.5;
}

.doors__desc {
  font-size: var(--fs-small);
  color: var(--muted);
}

/* ---------- ホーム: 理念（縦組み＝縦看板） ---------- */
.motto {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--s4) clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.motto__quote {
  grid-column: 2;
  grid-row: 1 / span 2;
  writing-mode: vertical-rl;
  font-family: var(--mincho);
  font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem);
  font-weight: 500;
  line-height: 1.9;
  letter-spacing: 0.18em;
  color: var(--navy);
  margin: 0;
  padding: 0 0 0 var(--s3);
  border-left: 1px solid var(--line-strong);
  height: max-content;
}

.motto__body {
  max-width: var(--text);
}

.motto__since {
  font-size: var(--fs-small);
  color: var(--muted);
  font-weight: 700;
}

@media (max-width: 767px) {
  .motto {
    grid-template-columns: 1fr;
  }

  .motto__quote {
    grid-column: 1;
    grid-row: auto;
    writing-mode: horizontal-tb;
    font-size: clamp(1.375rem, 1.1rem + 1.4vw, 1.75rem);
    letter-spacing: 0.06em;
    line-height: 1.7;
    border-left: 0;
    border-top: 1px solid var(--line-strong);
    padding: var(--s2) 0 0;
  }
}

/* ---------- 診療案内の索引 ---------- */
.med-index {
  display: grid;
  gap: var(--s5);
}

.med-group {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  grid-template-rows: auto 1fr;
  gap: var(--s1) var(--s4);
}

.med-group__title {
  font-family: var(--mincho);
  font-size: var(--fs-h3);
  color: var(--navy);
}

.med-group__sub {
  font-size: var(--fs-small);
  color: var(--muted);
  grid-column: 1;
  margin: 0;
}

.med {
  list-style: none;
  margin: 0;
  padding: 0;
  grid-column: 2;
  grid-row: 1 / span 2;
  border-bottom: 1px solid var(--line);
}

.med li {
  border-top: 1px solid var(--line);
}

.med a {
  display: grid;
  grid-template-columns: minmax(0, 13em) minmax(0, 1fr) auto 34px;
  gap: 0.25rem var(--s3);
  align-items: center;
  padding: 1.4rem 0.25rem;
  color: var(--ink);
  text-decoration: none;
  transition: background-color 180ms ease;
}

.med a::after {
  content: "";
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8h9M8.5 4.5 12 8l-3.5 3.5' fill='none' stroke='%231d3a63' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 14px no-repeat;
  transition: background-color 180ms ease, border-color 180ms ease;
}

.med a:hover {
  background: var(--band);
}

.med a:hover::after {
  border-color: var(--navy);
}

.med__name {
  font-family: var(--mincho);
  font-weight: 700;
  font-size: 1.1875rem;
  color: var(--navy);
}

.med__desc {
  color: var(--muted);
  font-size: var(--fs-small);
}

.med__days {
  font-size: 0.8125rem;
  white-space: nowrap;
  font-weight: 700;
  color: var(--navy);
  background: var(--band-2);
  border-radius: 999px;
  padding: 0.2rem 0.75rem;
}

/* 予約が必要な外来のタグ（「予約制」を含むもの） */
.med__days.is-reserve,
.page-head__days.is-reserve {
  background: #fde4ea;
  border-color: #f2a9b9;
  color: #a3223c;
}

.related__days.is-reserve {
  color: #a3223c;
}

@media (max-width: 859px) {
  .med-group {
    grid-template-columns: 1fr;
  }

  .med {
    grid-column: 1;
    grid-row: auto;
  }

  .med a {
    grid-template-columns: minmax(0, 1fr) auto 34px;
  }

  .med__desc {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

.sym {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16em), 1fr));
  gap: var(--s2);
}

.sym a {
  display: block;
  height: 100%;
  padding: 1.1rem 1.25rem 1.25rem;
  background: var(--band);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  transition: background-color 180ms ease;
}

.sym a:hover {
  background: var(--band-2);
}

.sym__name {
  display: block;
  font-family: var(--mincho);
  font-weight: 700;
  font-size: 1.0938rem;
  line-height: 1.55;
  color: var(--navy);
}

.sym__to {
  display: block;
  font-size: var(--fs-small);
  color: var(--blue-deep);
  margin-top: 0.4rem;
}

.home-sym {
  margin-top: var(--s5);
}

.home-sym__title {
  font-family: var(--mincho);
  font-size: var(--fs-h3);
  color: var(--navy);
  margin-bottom: var(--s2);
}

/* ---------- 院長 ---------- */
.doctor {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: start;
}

.doctor__photo {
  margin: 0;
}

.doctor__photo img {
  border-radius: var(--radius);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: 50% 25%;
  width: 100%;
}

.doctor__name {
  font-family: var(--mincho);
  font-size: var(--fs-h2);
  color: var(--navy);
  letter-spacing: 0.12em;
  margin: 0.1rem 0 0.2rem;
}

.doctor__role {
  display: block;
  font-size: var(--fs-small);
  color: var(--muted);
  margin: 0;
}

.doctor__spec {
  list-style: none;
  padding: 0;
  margin: var(--s3) 0;
}

.doctor__spec li {
  padding: 0.8rem 0;
  border-top: 1px solid var(--line);
  font-weight: 700;
  color: var(--navy);
}

.doctor__spec li:last-child {
  border-bottom: 1px solid var(--line);
}

@media (max-width: 767px) {
  .doctor {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: var(--s2);
  }

  .doctor__text {
    display: contents;
  }

  .doctor__head {
    align-self: center;
  }

  .doctor__more {
    grid-column: 1 / -1;
  }
}

.staff {
  margin: var(--s5) 0 0;
}

.staff img {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: 50% 45%;
}

.staff figcaption,
.figure figcaption {
  font-size: var(--fs-small);
  color: var(--muted);
  margin-top: 0.5rem;
}

/* ---------- 院長とスタッフ・院内の様子 ---------- */
.gallery {
  margin-top: var(--s5);
}

.gallery__title {
  font-family: var(--mincho);
  font-size: var(--fs-h3);
  color: var(--navy);
  margin-bottom: var(--s2);
}

.gallery__grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: var(--s2);
}

.gallery__item {
  margin: 0;
  display: flex;
  flex-direction: column;
}

.gallery__item img {
  width: 100%;
  flex: 1;
  min-height: 0;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}

.gallery__item--main {
  grid-row: 1 / span 2;
}

.gallery__item--main img {
  aspect-ratio: auto;
  object-position: 50% 40%;
}

.gallery__item figcaption {
  font-size: var(--fs-small);
  color: var(--muted);
  margin-top: 0.4rem;
}

@media (max-width: 767px) {
  .gallery__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .gallery__item--main {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .gallery__item--main img {
    aspect-ratio: 4 / 3;
  }
}

/* ---------- 医院情報・アクセス ---------- */
.clinic__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: start;
}

.clinic__photo {
  margin: 0 0 var(--s3);
}

.clinic__photo img {
  border-radius: var(--radius);
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: 30% 45%;
  width: 100%;
}

.clinic__h {
  font-family: var(--mincho);
  font-size: var(--fs-h3);
  color: var(--navy);
  margin-bottom: var(--s2);
}

.clinic__parking strong {
  display: block;
  color: var(--navy);
}

.clinic__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.clinic .map {
  margin-top: var(--s3);
}

@media (max-width: 899px) {
  .clinic__grid {
    grid-template-columns: 1fr;
  }
}

.access-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--s4);
  align-items: start;
}

/* 住所の建物名など、途中で改行させない語 */
.nobr {
  white-space: nowrap;
}

.nap {
  display: flex;
  flex-direction: column;
  margin-bottom: var(--s2);
}

.nap__name {
  font-family: var(--mincho);
  font-weight: 700;
  font-size: 1.1875rem;
  color: var(--navy);
}

.access {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--s2);
}

.access li {
  display: grid;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}

.access li:last-child {
  border-bottom: 1px solid var(--line);
}

.access__line {
  font-size: var(--fs-small);
  color: var(--muted);
}

.access__station {
  font-weight: 700;
}

.map {
  aspect-ratio: 4 / 3;
  background: var(--band);
  border-radius: var(--radius);
  overflow: hidden;
}

.map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

@media (max-width: 859px) {
  .access-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- お知らせ ---------- */
.news-list {
  list-style: none;
  padding: 0;
}

.news-list li {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 0 0.9rem;
  align-items: baseline;
  padding: 0.9rem 0;
}

.news-list li + li {
  border-top: 1px solid var(--line);
}

.news-list time {
  font-size: var(--fs-small);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

@media (max-width: 559px) {
  .news-list li {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .news-list li a {
    grid-column: 1 / -1;
  }
}

.tag {
  display: inline-block;
  justify-self: start;
  font-size: 0.75rem;
  line-height: 1.6;
  padding: 0 0.7em;
  border-radius: 999px;
  color: var(--navy);
  background: var(--band-2);
  white-space: nowrap;
}

/* ---------- 下層ページ ---------- */
.crumbs {
  background: var(--band);
}

.crumbs ol {
  list-style: none;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0.9rem var(--gutter) 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.5rem;
  font-size: 0.8125rem;
}

.crumbs li + li::before {
  content: "/";
  margin-right: 0.5rem;
  color: var(--line-strong);
}

.crumbs [aria-current] {
  color: var(--muted);
}

.page-head {
  background: var(--band);
}

.page-head__inner {
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: clamp(2.75rem, 6vw, 5.5rem) var(--gutter) clamp(2.75rem, 5.5vw, 5rem);
}

.page-head h1 {
  font-family: var(--mincho);
  font-size: var(--fs-h1);
  color: var(--navy);
  letter-spacing: 0.08em;
  padding-bottom: 1rem;
  position: relative;
}

.page-head h1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 2.5rem;
  height: 2px;
  background: var(--blue);
}

.page-head__days {
  display: inline-block;
  margin: 0 0 0.75rem;
  padding: 0.15rem 0.9rem;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--navy);
}

.page-head__lead {
  max-width: var(--text);
  line-height: 2.05;
  margin: clamp(1.75rem, 3vw, 2.5rem) 0 0;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
}

.page-body {
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: clamp(3.5rem, 2.5rem + 4vw, 6.5rem) var(--gutter) clamp(4.5rem, 3.5rem + 4vw, 7.5rem);
}

.prose {
  max-width: var(--text);
}

.prose h2,
.page-body > h2,
.faq-list h2 {
  font-family: var(--mincho);
  font-size: var(--fs-h2);
  color: var(--navy);
  letter-spacing: 0.08em;
  line-height: 1.6;
  margin: clamp(4.5rem, 3.5rem + 3vw, 6.5rem) 0 clamp(1.75rem, 1.4rem + 1vw, 2.5rem);
  padding-bottom: 1.1rem;
  position: relative;
}

.prose h2::after,
.page-body > h2::after,
.faq-list h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 2rem;
  height: 2px;
  background: var(--blue);
}

.prose h3 {
  font-family: var(--mincho);
  font-size: var(--fs-h3);
  color: var(--navy);
  line-height: 1.6;
  margin: clamp(2.75rem, 2.2rem + 1.5vw, 3.5rem) 0 1rem;
}

.prose > :first-child,
.prose > .draft:first-child > :first-child {
  margin-top: 0;
}

.prose li + li,
.checks li + li {
  margin-top: 0.8rem;
}

.prose .numbered {
  padding-left: 1.6em;
}

.lede {
  font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.25rem);
  line-height: 2.1;
  margin-bottom: 1.8em;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}

.split > .prose {
  max-width: none;
}

@media (max-width: 859px) {
  .split {
    grid-template-columns: 1fr;
  }
}

.figure {
  margin: 0 0 var(--s3);
}

.figure img {
  border-radius: var(--radius);
  width: 100%;
}

.info {
  margin: clamp(2rem, 3vw, 2.75rem) 0;
  padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1.5rem, 3vw, 2.5rem);
  background: var(--band);
  border-radius: var(--radius);
}

.info > :last-child {
  margin-bottom: 0;
}

.info__title {
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.info--alert {
  background: #fdf3f7;
  border-left: 4px solid var(--closed-ink);
}

.dl {
  margin: 0 0 2.5rem;
  display: grid;
  grid-template-columns: minmax(0, 9em) minmax(0, 1fr);
  border-top: 1px solid var(--line);
}

.dl dt,
.dl dd {
  margin: 0;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}

.dl dt {
  font-weight: 700;
  color: var(--navy);
  padding-right: var(--s2);
}

@media (max-width: 559px) {
  .dl {
    grid-template-columns: 1fr;
  }

  .dl dt {
    border-bottom: 0;
    padding-bottom: 0;
  }
}

.steps {
  list-style: none;
  padding: 0;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  gap: 0 var(--s2);
  padding: 1.6rem 0;
  border-top: 1px solid var(--line);
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}

.steps li > * {
  grid-column: 2;
}

.steps strong {
  display: block;
  color: var(--navy);
  margin-bottom: 0.35rem;
}

.checks {
  list-style: none;
  padding: 0;
}

.checks li {
  position: relative;
  padding-left: 1.3em;
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.66em;
  width: 0.6em;
  height: 0.6em;
  background: var(--green);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 var(--s3);
  font-size: var(--fs-small);
}

.table th,
.table td {
  text-align: left;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.related {
  margin: clamp(2rem, 3vw, 2.75rem) 0;
}

.related__link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0 var(--s2);
  padding: var(--s2) var(--s3);
  background: var(--band);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
}

.related__kicker {
  font-size: 0.8125rem;
  color: var(--muted);
  grid-column: 1;
}

.related__name {
  font-family: var(--mincho);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--navy);
  grid-column: 1;
}

.related__days {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--navy);
}

.related__link:hover {
  background: var(--band-2);
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: var(--text);
}

.faq {
  border-bottom: 1px solid var(--line);
}

.faq:first-of-type {
  border-top: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  gap: var(--s2);
  align-items: center;
  padding: 1.4rem 0;
  font-weight: 700;
  line-height: 1.7;
  color: var(--navy);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  font-size: 1.25rem;
  line-height: 1;
  color: var(--navy);
}

.faq[open] summary::after {
  content: "−";
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.faq p {
  margin: 0 0 1.6rem;
  padding-right: 3rem;
}

/* ---------- ほかの診療案内 ---------- */
.others {
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(4.5rem, 3.5rem + 4vw, 7rem);
}

.others__title {
  font-family: var(--mincho);
  font-size: 1.125rem;
  color: var(--navy);
  margin-bottom: var(--s2);
}

.others ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.others a {
  display: inline-block;
  padding: 0.45rem 1.1rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.9063rem;
  color: var(--navy);
  transition: border-color 180ms ease, background-color 180ms ease;
}

.others a:hover {
  border-color: var(--navy);
  background: var(--band);
}

/* ---------- 問い合わせ帯（紺） ---------- */
.cta {
  background: var(--navy);
  color: #fff;
}

.cta__inner {
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: var(--s5) var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: var(--s3) var(--s4);
  align-items: center;
}

.cta__title {
  font-family: var(--mincho);
  font-size: var(--fs-h2);
  letter-spacing: 0.08em;
  margin-bottom: var(--s2);
}

.cta__text p {
  margin: 0;
  color: #d9e2ec;
}

.cta__actions {
  display: grid;
  gap: 0.75rem;
}

.cta__actions .btn {
  width: 100%;
}

.cta__actions .btn--tel {
  min-height: 64px;
}

.cta__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  margin: 0.25rem 0 0;
  font-size: var(--fs-small);
}

.cta__links a {
  color: #fff;
}

@media (max-width: 767px) {
  .cta__inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- フッター（紺）: 医院情報／診療時間（3行）／ページ（2列） ---------- */
.site-footer {
  background: var(--navy-deep);
  color: #d7e0ea;
  font-size: var(--fs-small);
  line-height: 1.8;
}

.site-footer a {
  color: #fff;
}

.site-footer__inner {
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 4.5rem) var(--gutter) var(--s3);
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 4fr) minmax(0, 4fr);
  gap: var(--s4) clamp(2rem, 4vw, 4rem);
  align-items: start;
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* ロゴは白い板の上に置き、青・緑・赤のロゴの色がそのまま見えるようにする */
.site-footer__logo {
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 0.5rem;
  padding: 0.85rem 1.25rem;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4);
  transition: box-shadow 180ms ease;
}

.site-footer__logo:hover {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35);
}

.site-footer__logo img {
  width: clamp(200px, 22vw, 250px);
}

.site-footer__tel {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
}

.site-footer__h {
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.6rem;
}

.site-footer__dl {
  margin: 0;
  display: grid;
  gap: 0.35rem;
}

.site-footer__dl div {
  display: grid;
  grid-template-columns: 11.5em minmax(0, 1fr);
  gap: 0 1rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer__dl dt {
  color: #fff;
  white-space: nowrap;
  word-break: keep-all;
  font-variant-numeric: tabular-nums;
}

.site-footer__dl dd {
  margin: 0;
}

.site-footer__note {
  margin: 0.75rem 0 0;
}

.site-footer__nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0 1.5rem;
}

.site-footer__nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer__nav li {
  padding: 0.15rem 0;
}

.site-footer__nav a {
  text-decoration: none;
}

.site-footer__nav a:hover {
  text-decoration: underline;
}

.site-footer__copy {
  grid-column: 1 / -1;
  color: #9fb0c2;
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: var(--s2);
}

/* タブレット: 医院情報と診療時間を横並び、ページは下段 */
@media (max-width: 1023px) {
  .site-footer__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .site-footer__nav {
    grid-column: 1 / -1;
  }
}

/* スマホ: 1列に積む。ページは 2 列のまま */
@media (max-width: 599px) {
  .site-footer__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s3);
  }

  /* 時間の下に曜日を置く */
  .site-footer__dl div {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- フローティング電話ボタン ----------
   PC: 右下に大きめの円＋番号。SP: 円のみ。タップで発信、ドラッグ／フリックで四隅へ移動できる */
.fab {
  position: fixed;
  right: clamp(16px, 2.5vw, 32px);
  bottom: clamp(16px, 2.5vw, 32px);
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  color: var(--navy);
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.fab__icon {
  order: 2;
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  padding: 26px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  box-shadow: 0 10px 28px rgba(27, 99, 65, 0.35), 0 0 0 6px rgba(255, 255, 255, 0.9);
  transition: transform 180ms ease, background-color 180ms ease;
}

.fab:hover .fab__icon {
  background: var(--green-deep);
  transform: scale(1.05);
}

.fab__text {
  order: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 0.55rem 1.1rem;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(21, 43, 74, 0.12);
  line-height: 1.3;
}

.fab__label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
}

.fab__num {
  font-size: 1.25rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: var(--green-deep);
}

.fab.is-dragging {
  transition: none;
  cursor: grabbing;
}

.fab.is-dragging .fab__icon {
  transform: scale(1.08);
}

.fab.is-snapping {
  transition: left 320ms cubic-bezier(0.2, 0.9, 0.3, 1), top 320ms cubic-bezier(0.2, 0.9, 0.3, 1);
}

/* 左側の隅にいるときは番号を円の右に */
.fab.is-left .fab__text {
  order: 3;
  align-items: flex-start;
}

/* SP: 円だけ（64px）。本文の最後が隠れないよう下に余白 */
@media (max-width: 899px) {
  /* スマホだけ指で動かせるので、ボタン上のスクロールを止める */
  .fab {
    touch-action: none;
  }

  .fab__text {
    display: none;
  }

  .fab__icon {
    width: 64px;
    height: 64px;
    padding: 17px;
    box-shadow: 0 8px 22px rgba(27, 99, 65, 0.38), 0 0 0 4px rgba(255, 255, 255, 0.9);
  }

  .site-footer__copy {
    padding-bottom: 72px;
  }
}

@media print {
  .fab {
    display: none !important;
  }
}

/* ---------- 狭い画面 ---------- */
@media (max-width: 479px) {
  .brand img {
    width: clamp(168px, 52vw, 208px);
  }
}

@media (max-width: 379px) {
  .btn--tel {
    gap: 0.5rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .btn__label {
    padding-right: 0.5rem;
  }
}

@media (max-width: 359px) {
  .menu-button__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .menu-button {
    padding: 0 0.75rem;
  }
}

/* ---------- デモ表示 ---------- */
.demo-bar {
  background: #fff4cc;
  color: #4a3b00;
  font-size: 0.8125rem;
  padding: 0.35rem var(--gutter);
  border-bottom: 1px solid #e8d48a;
}

.demo-bar__draft {
  outline: 2px dashed #b45309;
  outline-offset: 1px;
  padding: 0 0.2em;
}

.is-demo .draft {
  outline: 2px dashed #b45309;
  outline-offset: 6px;
  position: relative;
  margin-top: 2.2rem;
}

.is-demo .draft::before {
  content: "要院長確認：" attr(data-note);
  position: absolute;
  top: -2.1rem;
  left: -6px;
  font-size: 0.75rem;
  line-height: 1.4;
  color: #7a3a06;
  background: #fff4cc;
  padding: 0.1rem 0.5rem;
  border-radius: 2px;
  max-width: 100%;
}

/* ---------- 動きを減らす設定 ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media print {
  .site-header,
  .cta,
  .demo-bar,
  .menu-button {
    display: none !important;
  }

  body {
    padding: 0;
    background: #fff;
  }
}
