/* しっぽの木どうぶつ病院（デモ）
   白の地・若葉 #A7C957・木の茶 #8C6239・字は濃い茶 #3B2A1A
   見出し Mochiy Pop P One／本文 Noto Sans JP（400・700） */

:root {
  --white: #FFFFFF;
  --leaf: #A7C957;
  --bark: #8C6239;
  --ink: #3B2A1A;
  --ink-2: #5E4A38;
  --leaf-12: #F2F7E6;
  --leaf-30: color-mix(in srgb, #A7C957 30%, #FFFFFF);
  --leaf-55: color-mix(in srgb, #A7C957 55%, #FFFFFF);
  --bark-8: color-mix(in srgb, #8C6239 8%, #FFFFFF);
  --bark-20: color-mix(in srgb, #8C6239 20%, #FFFFFF);
  --line: color-mix(in srgb, #8C6239 32%, #FFFFFF);
  --pop: "Mochiy Pop P One", "Hiragino Maru Gothic ProN", "BIZ UDPGothic", sans-serif;
  --sans: "Noto Sans JP", "Hiragino Sans", "Yu Gothic UI", "Meiryo", sans-serif;
  --r: 16px;
  --wrap: 1120px;
  --ease: cubic-bezier(.22, .7, .25, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(15px, 0.28vw + 14px, 17px);
  line-height: 1.85;
  letter-spacing: .02em;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
p + p { margin-top: .7em; }
h1, h2, h3 { margin: 0; font-weight: 400; }
small { font-size: .84em; }
.num, time { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 3px solid var(--bark); outline-offset: 3px; border-radius: 4px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(100% - 48px, var(--wrap)); margin-inline: auto; }
.pop { font-family: var(--pop); font-weight: 400; letter-spacing: .04em; }

/* ---------- 上の帯（時間外の連絡） ---------- */
.topbar {
  background: var(--bark);
  color: var(--white);
  font-size: 13px;
  line-height: 1.6;
}
.topbar__in {
  width: min(100% - 32px, 1280px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px 20px;
  padding: 8px 0;
  flex-wrap: wrap;
  text-align: center;
}
.topbar__label { font-weight: 700; }
.topbar a { color: var(--white); text-underline-offset: 3px; }
.topbar__tel { font-weight: 700; font-variant-numeric: tabular-nums; text-decoration: none; }
.topbar__tel:hover { text-decoration: underline; }
.topbar__more { white-space: nowrap; font-weight: 700; }

/* ---------- ヘッダー ---------- */
.head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--bark-20);
}
.head__in {
  width: min(100% - 32px, 1280px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 82px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--bark); flex-shrink: 0; }
.brand__mark { width: 50px; height: 50px; }
.brand__text { display: grid; line-height: 1.2; }
.brand__name { font-family: var(--pop); font-size: 19px; letter-spacing: .03em; color: var(--bark); }
.brand__sub { font-size: 12px; color: var(--ink-2); letter-spacing: .12em; margin-top: 3px; }
.demo {
  font-size: 10px; letter-spacing: .12em; color: var(--ink-2);
  border: 1px solid var(--line); border-radius: 3px; padding: 0 5px; line-height: 16px; align-self: center;
}
.gnav { margin-left: auto; }
.gnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.gnav a {
  position: relative;
  display: block;
  padding: 10px 12px 14px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}
.gnav a:hover { color: var(--bark); }
.gnav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 18px;
  height: 14px;
  margin-left: -9px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 18'%3E%3Cpath d='M2 15C3 6 11 1 22 2c-1 10-8 15-17 14' fill='%23A7C957'/%3E%3Cpath d='M3 15.5C8 11 13 7.5 19 5' fill='none' stroke='%238C6239' stroke-width='1.3' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.head__tel { display: grid; justify-items: center; gap: 2px; flex-shrink: 0; }
.head__tel small { font-size: 11px; color: var(--ink-2); letter-spacing: 0; white-space: nowrap; font-variant-numeric: tabular-nums; }
.menu {
  display: none;
  margin-left: auto;
  border: 1.5px solid var(--bark);
  background: var(--white);
  color: var(--bark);
  border-radius: 999px;
  height: 44px;
  padding: 0 14px;
  font: 700 12px/1 var(--sans);
  letter-spacing: .1em;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.menu__bars, .menu__bars::before, .menu__bars::after {
  display: block; width: 16px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .25s var(--ease), opacity .2s;
}
.menu__bars::before, .menu__bars::after { content: ""; position: absolute; left: 0; }
.menu__bars::before { top: -5px; }
.menu__bars::after { top: 5px; }
.is-menu .menu__bars { background: transparent; }
.is-menu .menu__bars::before { transform: translateY(5px) rotate(45deg); }
.is-menu .menu__bars::after { transform: translateY(-5px) rotate(-45deg); }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  min-height: 48px;
  padding: 10px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .06em;
  text-decoration: none;
  line-height: 1.4;
  transition: transform .2s var(--ease), background-color .2s, color .2s;
}
.btn--fill { background: var(--bark); color: var(--white); border: 1.5px solid var(--bark); }
.btn--fill:hover { background: #75502F; transform: translateY(-1px); }
.btn--line { background: var(--white); color: var(--bark); border: 1.5px solid var(--bark); }
.btn--line:hover { background: var(--bark-8); transform: translateY(-1px); }
.btn--tel { font-size: 17px; font-variant-numeric: tabular-nums; padding: 8px 20px; min-height: 44px; letter-spacing: .04em; }
.btn--tel svg { width: 16px; height: 16px; }
.more { display: inline-block; font-weight: 700; color: var(--bark); text-underline-offset: 4px; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- 区画の頭（葉っぱ＋見出し） ---------- */
.sec { padding: clamp(64px, 8vw, 112px) 0; }
.sh { position: relative; padding-left: 34px; margin-bottom: clamp(24px, 3vw, 36px); }
.sh__leaf {
  position: absolute;
  left: 0;
  top: -6px;
  width: 28px;
  height: 22px;
  color: var(--leaf);
  transform-origin: 10% 90%;
  transform: rotate(-8deg);
}
.sh--r .sh__leaf { transform: rotate(14deg) scaleX(-1); left: 2px; }
.sh h2, .sh h1 { font-family: var(--pop); color: var(--bark); letter-spacing: .04em; line-height: 1.45; font-size: clamp(24px, 2.2vw + 14px, 34px); text-wrap: balance; }
.sh h1 { font-size: clamp(30px, 3vw + 16px, 48px); }
.sh--sub h2 { font-size: clamp(21px, 1.2vw + 15px, 27px); }
.h3 { font-family: var(--pop); color: var(--bark); font-size: clamp(18px, .8vw + 14px, 22px); letter-spacing: .04em; line-height: 1.5; margin-bottom: 12px; }
.fig-title { font-family: var(--pop); color: var(--bark); font-size: clamp(17px, .6vw + 14px, 20px); letter-spacing: .04em; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.fig-title::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--bark); }
.fig-note { font-size: 13px; color: var(--ink-2); margin-top: 14px; line-height: 1.7; }
.note { font-size: 13px; color: var(--ink-2); line-height: 1.75; }

/* 地面の線（細い茶の線に、ところどころ草） */
.ground {
  height: 16px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 260 16'%3E%3Cg fill='none' stroke='%238C6239' stroke-width='1.4' stroke-linecap='round'%3E%3Cpath d='M70 15V8M74 15l2-9M66 15l-2.5-7'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 260px 16px repeat-x,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 410 16'%3E%3Cg fill='none' stroke='%23A7C957' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M300 15V7M304 15l3-8M296 15l-3-6'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 410px 16px repeat-x,
    linear-gradient(var(--bark), var(--bark)) 0 15px / 100% 1px no-repeat;
}
.ground--wrap { width: min(100% - 48px, var(--wrap)); margin-inline: auto; }

/* 写真 */
.ph { position: relative; margin: 0; }
.ph img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r); background: var(--bark-8); }
.ph__leaf { position: absolute; width: 44px; height: 34px; color: var(--leaf); z-index: 2; pointer-events: none; }
.ph__leaf--tl { left: -14px; top: -16px; transform: rotate(-24deg); }
.ph__leaf--tr { right: -12px; top: -14px; transform: rotate(32deg) scaleX(-1); }
.ph__leaf--br { right: -10px; bottom: -14px; transform: rotate(150deg); }
.ph__leaf--bl { left: -12px; bottom: -12px; transform: rotate(-150deg) scaleX(-1); }
.ph__leaf--s { width: 28px; height: 22px; }
.ph__leaf--dark { color: var(--bark); }

/* 足あと */
.paw { width: 1.15em; height: 1.15em; display: inline-block; vertical-align: -.18em; flex-shrink: 0; }
.paw--dog { color: var(--leaf); }
.paw--cat { color: var(--bark); }
.paws { display: inline-flex; gap: 4px; margin-left: 6px; vertical-align: middle; }

/* 小さな表 */
.kv { width: 100%; border-collapse: collapse; font-size: 15px; }
.kv th, .kv td { text-align: left; vertical-align: top; padding: 12px 4px; border-bottom: 1px solid var(--bark-20); line-height: 1.7; }
.kv th { width: 8.5em; font-weight: 700; color: var(--bark); padding-right: 16px; white-space: nowrap; }
.kv tr:first-child th, .kv tr:first-child td { border-top: 1px solid var(--bark-20); }
.kv td { font-variant-numeric: tabular-nums; }

/* ---------- 最初の画面（犬と猫の写真を左右に・真ん中に木） ---------- */
.hero { padding: clamp(28px, 3.4vw, 48px) 0 clamp(40px, 5vw, 64px); position: relative; }
.hero__stage {
  width: min(100% - 48px, 1280px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(16px, 2vw, 32px);
}
.hero__ph { position: relative; margin: 0; }
.hero__ph img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 22px; }
.hero__ph--dog img { object-position: 46% 62%; }
.hero__ph--cat img { object-position: 40% 70%; }
.hero__center { text-align: center; position: relative; z-index: 1; padding: 0 4px; }
.hero__tree { width: min(100%, 360px); height: auto; margin: 0 auto 6px; overflow: visible; }
.hero__crown { transform-origin: 180px 118px; transform-box: view-box; }
.hero__title {
  font-family: var(--pop);
  color: var(--bark);
  font-size: clamp(28px, 2.3vw + 10px, 46px);
  line-height: 1.45;
  letter-spacing: .04em;
  font-feature-settings: "palt";
}
.hero__lead { margin: 18px auto 0; max-width: 26em; font-size: clamp(15px, .3vw + 14px, 17px); line-height: 1.9; text-wrap: pretty; }
.hero__btns { justify-content: center; margin-top: 26px; }
.today {
  width: min(100% - 48px, 560px);
  margin: clamp(26px, 3vw, 40px) auto 0;
  border: 1.5px solid var(--bark);
  border-radius: 18px;
  background: var(--white);
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px 18px;
  flex-wrap: wrap;
  text-align: center;
  position: relative;
}
.today::before {
  content: ""; position: absolute; top: -7px; left: 50%; width: 12px; height: 12px; margin-left: -6px;
  border: 1.5px solid var(--bark); border-radius: 50%; background: var(--white);
}
.today__label { font-family: var(--pop); color: var(--bark); font-size: 16px; letter-spacing: .06em; }
.today__time { font-weight: 700; font-variant-numeric: tabular-nums; font-size: 17px; }
.today small { flex-basis: 100%; color: var(--ink-2); font-size: 13px; }

/* ---------- お知らせ ---------- */
.news__in { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px 56px; align-items: start; }
.news__list { list-style: none; margin: 0; padding: 0; }
.news__list li { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); gap: 4px 20px; padding: 18px 0 20px; position: relative; }
.news__list li::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 16px; background: inherit; }
.news__list li + li { border-top: 0; }
.news__list li { background-image: linear-gradient(var(--bark-20), var(--bark-20)); background-size: 100% 1px; background-position: 0 100%; background-repeat: no-repeat; }
.news__list time { color: var(--bark); font-weight: 700; }
.news__list li::after { display: none; }
.news__more { margin-top: 18px; }

/* ---------- はじめて来られる方へ（トップ） ---------- */
.first__body { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px 56px; margin-top: 40px; align-items: end; }
.first__lead { font-family: var(--pop); color: var(--bark); font-size: clamp(19px, .9vw + 14px, 23px); line-height: 1.6; margin-bottom: 10px; }

/* ---------- 図 Y-3 当日の流れ ---------- */
.flow { margin: 0; }
.flow__list {
  list-style: none; margin: 0; padding: 0 0 6px;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  position: relative;
}
.flow__list::after { /* 地面の線 */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--bark); border-radius: 2px;
}
.flow__step { position: relative; text-align: center; padding: 0 6px 20px; }
.flow__circle {
  position: relative; z-index: 1;
  width: clamp(76px, 7vw, 104px); aspect-ratio: 1; margin: 0 auto 14px;
  border-radius: 50%; border: 2px solid var(--bark); background: var(--white);
  display: grid; place-items: center;
}
.flow__step:nth-child(odd) .flow__circle { background: var(--leaf-12); }
.flow__circle svg { width: 56%; height: 56%; }
.flow__name { display: flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--pop); color: var(--bark); font-size: 18px; letter-spacing: .06em; }
.flow__no {
  display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--leaf); color: var(--ink); font: 700 14px/1 var(--sans); font-variant-numeric: tabular-nums;
}
.flow__text { display: block; font-size: 14px; line-height: 1.7; margin-top: 6px; color: var(--ink); text-wrap: pretty; }
.flow__dots { /* 丸と丸のあいだの点線と足あと */
  position: absolute; z-index: 0; top: calc(clamp(76px, 7vw, 104px) / 2); left: calc(-50% + clamp(76px, 7vw, 104px) / 2 + 6px); width: calc(100% - clamp(76px, 7vw, 104px) - 12px);
  height: 0; border-top: 2px dotted var(--bark);
}
.flow__dots .paw { position: absolute; left: 50%; top: -24px; width: 18px; height: 18px; margin-left: -9px; }
.flow--sm .flow__circle { width: clamp(62px, 5.4vw, 80px); }
.flow--sm .flow__dots { top: calc(clamp(62px, 5.4vw, 80px) / 2); left: calc(-50% + clamp(62px, 5.4vw, 80px) / 2 + 6px); width: calc(100% - clamp(62px, 5.4vw, 80px) - 12px); }
.flow--sm .flow__name { font-size: 16px; }
.flow--sm .flow__text { font-size: 13px; }

/* ---------- 診療のご案内（トップ） ---------- */
.tint { background: var(--leaf-12); }
.tint--bark { background: var(--bark-8); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px clamp(32px, 5vw, 72px); align-items: center; }
.split--wide-l { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.split--wide-r { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
.split .ph img { aspect-ratio: 4 / 3; }
.care__table { margin-top: 26px; }
.care__body .btns { margin-top: 28px; }

/* ---------- 図 Y-4 待合室の配置 ---------- */
.plan { margin: 0; }
.plan svg { width: 100%; height: auto; display: block; overflow: visible; }
.plan text { font-family: var(--sans); fill: var(--ink); }
.plan .t-pop { font-family: var(--pop); fill: var(--bark); }
.plan .t-s { font-size: 17px; }
.plan .t-m { font-size: 21px; }
.plan .t-l { font-size: 24px; }
.machiai__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px clamp(32px, 5vw, 64px); align-items: start; }
.machiai__side .ph img { aspect-ratio: 1; object-position: 50% 60%; }
.machiai__side p:first-of-type { margin-top: 24px; }
.machiai__side .btns { margin-top: 26px; }

/* ---------- 図 Y-1 1年の予定表 ---------- */
.year { margin: 0; }
.year__grid {
  display: grid;
  grid-template-columns: 13.5em repeat(12, minmax(0, 1fr));
  grid-template-rows: auto repeat(4, minmax(72px, auto));
  position: relative;
  font-size: 14px;
  border-top: 1.5px solid var(--bark);
  border-bottom: 1.5px solid var(--bark);
}
.year__col { grid-row: 1 / 6; border-left: 1px dashed var(--bark-20); }
.year__col:nth-of-type(1) { grid-column: 2; } .year__col:nth-of-type(2) { grid-column: 3; } .year__col:nth-of-type(3) { grid-column: 4; }
.year__col:nth-of-type(4) { grid-column: 5; } .year__col:nth-of-type(5) { grid-column: 6; } .year__col:nth-of-type(6) { grid-column: 7; }
.year__col:nth-of-type(7) { grid-column: 8; } .year__col:nth-of-type(8) { grid-column: 9; } .year__col:nth-of-type(9) { grid-column: 10; }
.year__col:nth-of-type(10) { grid-column: 11; } .year__col:nth-of-type(11) { grid-column: 12; } .year__col:nth-of-type(12) { grid-column: 13; }
.year__m { grid-row: 1; text-align: center; padding: 10px 0 8px; border-bottom: 1px solid var(--bark-20); display: grid; justify-items: center; gap: 2px; }
.year__m svg { width: 18px; height: 14px; }
.year__m b { font-family: var(--pop); font-weight: 400; font-size: 20px; color: var(--bark); line-height: 1.1; }
.year__m b span { font-family: var(--sans); font-size: 11px; font-weight: 700; margin-left: 1px; }
.year__lab {
  grid-column: 1; display: flex; align-items: center; gap: 8px; padding: 10px 12px 10px 0;
  font-weight: 700; line-height: 1.45; font-size: 14px; border-bottom: 1px solid var(--bark-20);
}
.year__lab .paws { margin-left: 0; flex-direction: column; gap: 2px; }
.year__lab .paw { width: 15px; height: 15px; }
.year__row-line { grid-column: 1 / -1; border-bottom: 1px solid var(--bark-20); pointer-events: none; }
.y-r1 { grid-row: 2; } .y-r2 { grid-row: 3; } .y-r3 { grid-row: 4; } .y-r4 { grid-row: 5; }
.year__lab.y-r4 { border-bottom: 0; }
.bar { align-self: center; height: 34px; border-radius: 999px; position: relative; display: flex; align-items: center; transform-origin: left center; margin: 0 3px; }
.bar span { font-size: 12.5px; font-weight: 700; padding: 0 12px; white-space: nowrap; line-height: 1.3; }
.bar--rabies { grid-column: 5 / 8; grid-row: 2; background: var(--leaf); color: var(--ink); }
.bar--flea { grid-column: 4 / 13; grid-row: 4; background: var(--leaf-30); border: 1.5px solid var(--leaf); }
.bar--off { grid-row: 4; border: 1.5px dashed var(--bark); background: transparent; color: var(--ink-2); }
.bar--off-a { grid-column: 2 / 4; }
.bar--off-b { grid-column: 13 / 14; }
.fila-test { grid-column: 5; grid-row: 3; align-self: center; justify-self: end; display: grid; justify-items: center; gap: 2px; margin-right: -9px; position: relative; z-index: 1; }
.fila-test i { width: 20px; height: 20px; border-radius: 50%; background: var(--bark); border: 3px solid var(--white); box-shadow: 0 0 0 1.5px var(--bark); }
.fila-test span { font-size: 11.5px; font-weight: 700; white-space: nowrap; color: var(--bark); position: absolute; top: 24px; right: -6px; }
.fila-dots { grid-column: 6 / 14; grid-row: 3; display: grid; grid-template-columns: repeat(8, 1fr); align-items: center; justify-items: center; position: relative; }
.fila-dots i { width: 16px; height: 16px; border-radius: 50%; background: var(--leaf); border: 1.5px solid var(--bark); }
.fila-dots span { position: absolute; left: 50%; top: calc(50% + 12px); transform: translateX(-50%); font-size: 12px; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.vac { grid-column: 2 / 14; grid-row: 5; align-self: center; position: relative; height: 34px; margin: 0 3px; display: flex; align-items: center; justify-content: center; gap: 12px; }
.vac::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1.5px dotted var(--bark-20); }
.vac__mark { position: relative; display: flex; align-items: center; gap: 6px; background: var(--white); padding: 0 10px; }
.vac__mark i { width: 26px; height: 26px; border-radius: 50%; background: var(--leaf); border: 2px solid var(--bark); }
.vac__mark svg { width: 14px; height: 14px; color: var(--bark); }
.vac__mark b { font-size: 13px; font-weight: 700; margin-left: 4px; white-space: nowrap; }

/* ---------- トップの予防の表 ---------- */
.ptable { width: 100%; border-collapse: collapse; margin-top: 40px; font-size: 14.5px; line-height: 1.7; border: 1.5px solid var(--bark); border-radius: 14px; overflow: hidden; border-collapse: separate; border-spacing: 0; }
.ptable th, .ptable td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--bark-20); }
.ptable thead th { background: var(--bark); color: var(--white); font-weight: 700; font-size: 14px; letter-spacing: .06em; border-bottom: 0; }
.ptable tbody th { font-weight: 700; color: var(--bark); width: 15em; }
.ptable td { font-variant-numeric: tabular-nums; }
.ptable tbody tr:nth-child(even) { background: var(--leaf-12); }
.ptable tfoot td { border-bottom: 0; background: var(--bark-8); font-size: 13.5px; }
.ptable tfoot p + p { margin-top: .4em; }
.ptable tfoot .ptable__ask { font-weight: 700; color: var(--ink); }
.ptable__note { margin-top: 0; }

/* ---------- 院長から（トップ） ---------- */
.voice__grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 40px clamp(32px, 5vw, 72px); align-items: center; }
.voice__grid .ph img { aspect-ratio: 5 / 4; object-position: 42% 40%; }
.voice__text p { font-size: clamp(15px, .4vw + 14px, 18px); line-height: 2; }
.sign { margin-top: 22px !important; font-weight: 700; color: var(--bark); display: flex; align-items: center; gap: 12px; }
.sign::before { content: ""; width: 28px; height: 1.5px; background: var(--bark); }
.voice__text .btns { margin-top: 28px; }

/* ---------- 診療時間とアクセス（トップ） ---------- */
.info__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px clamp(32px, 5vw, 72px); align-items: start; }
.hours { width: 100%; border-collapse: separate; border-spacing: 0; font-variant-numeric: tabular-nums; border: 1.5px solid var(--bark); border-radius: 14px; overflow: hidden; }
.hours th, .hours td { text-align: center; padding: 12px 4px; border-bottom: 1px solid var(--bark-20); font-size: 15px; }
.hours thead th { background: var(--bark-8); color: var(--bark); font-weight: 700; }
.hours tbody th { text-align: left; padding-left: 16px; font-weight: 700; white-space: nowrap; font-size: 14.5px; }
.hours tbody tr:last-child th, .hours tbody tr:last-child td { border-bottom: 0; }
.hours .on { display: inline-block; width: 18px; height: 18px; border-radius: 50%; background: var(--leaf); border: 1.5px solid var(--bark); vertical-align: middle; }
.hours .off { color: var(--bark); font-weight: 700; font-size: 14px; }
.hours th.t-time span { display: block; font-size: 13px; font-weight: 400; color: var(--ink-2); }
.hours__note { margin-top: 14px; font-size: 14px; }
.info__access .ph { margin-top: 24px; }
.info__access .ph img { aspect-ratio: 16 / 9; object-position: 50% 60%; }
.info .btns { margin-top: 24px; }

/* ---------- フッター ---------- */
.foot { background: var(--bark-8); padding: 56px 0 0; margin-top: 0; position: relative; }
.foot::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; background: inherit; }
.foot__top { height: 16px; }
.foot__in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px 56px; }
.foot__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--bark); }
.foot__brand svg { width: 58px; height: 58px; }
.foot__brand .brand__name { font-size: 21px; }
.foot__info { margin-top: 18px; font-size: 14px; line-height: 1.85; }
.foot__info p + p { margin-top: .5em; }
.foot__info .num, .foot__info a { font-variant-numeric: tabular-nums; }
.foot__info a { text-decoration: none; font-weight: 700; }
.foot__night { margin-top: 14px !important; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.foot__night b { color: var(--bark); }
.foot__privacy { font-size: 12.5px; color: var(--ink-2); }
.foot__nav { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: 6px 36px; align-content: start; }
.foot__nav a { display: inline-block; padding: 6px 0; text-decoration: none; font-weight: 700; font-size: 14.5px; }
.foot__nav a:hover { color: var(--bark); text-decoration: underline; text-underline-offset: 4px; }
.foot__copy { text-align: center; padding: 28px 0 24px; margin-top: 40px; border-top: 1px solid var(--bark-20); font-size: 12px; color: var(--ink-2); }

/* ---------- 下層ページの頭 ---------- */
.phead { padding: clamp(40px, 5vw, 72px) 0 clamp(40px, 5vw, 64px); }
.phead .sh { margin-bottom: 28px; }
.phead__ph img { aspect-ratio: 21 / 8; object-position: 50% 55%; border-radius: 22px; }
.phead__lead { margin-top: 32px; max-width: 40em; font-size: clamp(15px, .4vw + 14px, 18px); line-height: 1.95; }
.phead--noimg { padding-bottom: 8px; }
.pagelinks { padding: 56px 0 72px; }
.pagelinks .wrap { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* 区画の中の小見出しつきブロック */
.block { padding: clamp(48px, 6vw, 80px) 0; }
.block + .block { padding-top: 0; }
.measure { max-width: 42em; }
.lede { font-family: var(--pop); color: var(--bark); font-size: clamp(19px, 1vw + 14px, 24px); line-height: 1.6; margin-bottom: 12px !important; word-break: auto-phrase; }

/* はじめての方へ */
.bring { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(28px, 4vw, 56px); }
.pet { padding: 26px 0 0; }
.pet__head { display: flex; align-items: center; gap: 12px; font-family: var(--pop); color: var(--bark); font-size: 22px; margin-bottom: 14px; }
.pet__head .paw { width: 34px; height: 34px; }
.pet .ph { margin-top: 22px; }
.pet .ph img { aspect-ratio: 4 / 3; }
.pet--dog .ph img { object-position: 45% 70%; }
.lines p { padding: 14px 0 16px; margin: 0; background: linear-gradient(var(--bark-20), var(--bark-20)) 0 100% / 100% 1px no-repeat; }
.lines p + p { margin-top: 0; }
.fee { max-width: 420px; margin-top: 22px; }
.fee + .note { margin-top: 10px; }
.faq { margin: 0; display: grid; gap: 0; }
.faq__item { padding: 22px 0; background: linear-gradient(var(--bark-20), var(--bark-20)) 0 100% / 100% 1px no-repeat; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 8px 12px; }
.faq dt { grid-column: 2; font-weight: 700; color: var(--bark); font-size: 16.5px; }
.faq dd { grid-column: 2; margin: 0; }
.faq__q { grid-column: 1; grid-row: 1; width: 34px; height: 34px; border-radius: 50%; background: var(--leaf); color: var(--ink); display: grid; place-items: center; font: 400 15px/1 var(--pop); }
.faq__a { grid-column: 1; grid-row: 2; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--bark); color: var(--bark); display: grid; place-items: center; font: 400 15px/1 var(--pop); }

/* 診療のご案内 */
.kinds { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 32px clamp(32px, 5vw, 64px); align-items: center; }
.kinds__pets { text-align: center; border: 1.5px solid var(--bark); border-radius: 50%; aspect-ratio: 1; max-width: 260px; width: 100%; margin: 0 auto; display: grid; place-content: center; gap: 10px; background: var(--white); }
.kinds__pets .icons { display: flex; gap: 16px; justify-content: center; }
.kinds__pets .paw { width: 58px; height: 58px; }
.kinds__pets b { font-family: var(--pop); font-weight: 400; font-size: 26px; color: var(--bark); letter-spacing: .1em; }
.chips { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.chips li { background: var(--leaf); color: var(--ink); border-radius: 999px; padding: 10px 24px; font-family: var(--pop); font-size: 19px; letter-spacing: .1em; }
.calls { padding: 0; }
.calls__in { padding: clamp(48px, 6vw, 80px) 0; }
.calls__list { list-style: none; margin: 26px 0 18px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 32px; }
.calls__list li { display: flex; gap: 12px; align-items: flex-start; font-weight: 700; font-size: 16.5px; padding: 14px 18px; background: var(--white); border-radius: 14px; }
.calls__list svg { width: 24px; height: 18px; color: var(--leaf); flex-shrink: 0; margin-top: 5px; }
.night { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 8px; }
.night__card { border: 2px solid var(--bark); border-radius: 18px; padding: 24px 26px; background: var(--white); }
.night__card--leaf { border-color: var(--leaf); background: var(--leaf-12); }
.night__when { font-family: var(--pop); color: var(--bark); font-size: 22px; letter-spacing: .06em; }
.night__tel { display: block; font-weight: 700; font-size: clamp(22px, 1.4vw + 16px, 28px); font-variant-numeric: tabular-nums; text-decoration: none; margin: 6px 0 2px; letter-spacing: .02em; color: var(--ink); }
.night__who { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.night__card p:last-child { margin-top: 12px; font-size: 14.5px; }
.night + p { margin-top: 22px; }
.price-line { display: inline-flex; gap: 12px; align-items: baseline; margin-top: 18px; padding: 10px 18px; border: 1.5px solid var(--bark); border-radius: 12px; font-variant-numeric: tabular-nums; }
.price-line b { color: var(--bark); }

/* 予防と健康診断の札 */
.tags { display: grid; gap: 28px; margin-top: 8px; }
.tag {
  position: relative;
  border: 1.5px solid var(--bark);
  border-radius: 20px;
  background: var(--white);
  display: grid;
  grid-template-columns: 15.5em minmax(0, 1fr);
}
.tag__head { padding: 28px 22px 24px 52px; border-right: 1.5px dashed var(--bark-20); position: relative; background: var(--leaf-12); border-radius: 19px 0 0 19px; }
.tag__head::before { /* 札のひも穴 */
  content: ""; position: absolute; left: 20px; top: 34px; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--bark); background: var(--white);
}
.tag__name { font-family: var(--pop); color: var(--bark); font-size: 20px; line-height: 1.5; letter-spacing: .04em; }
.tag__for { display: flex; gap: 10px; margin-top: 12px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.tag__for span { display: inline-flex; align-items: center; gap: 4px; }
.tag__for .paw { width: 20px; height: 20px; }
.tag dl { margin: 0; padding: 10px 28px 10px; }
.tag dl > div { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 4px 20px; padding: 16px 0; border-bottom: 1px dashed var(--bark-20); }
.tag dl > div:last-child { border-bottom: 0; }
.tag dt { font-weight: 700; color: var(--bark); font-size: 14.5px; display: flex; gap: 8px; align-items: flex-start; }
.tag dt::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--leaf); margin-top: .62em; flex-shrink: 0; }
.tag dd { margin: 0; font-variant-numeric: tabular-nums; }
.tag dd ul { margin: 6px 0; padding-left: 1.2em; }
.tag dd li + li { margin-top: 4px; }
.tag__foot { grid-column: 1 / -1; padding: 0 28px 26px; }
.law {
  border: 1.5px solid var(--bark); border-radius: 14px; padding: 20px 24px; background: var(--white); font-size: 14.5px;
}
.law__title { font-weight: 700; color: var(--bark); font-size: 16px; margin-bottom: 8px !important; display: flex; gap: 8px; align-items: center; }
.law__title::before { content: ""; width: 14px; height: 2px; background: var(--bark); }
.tag__small { font-size: 13.5px; color: var(--ink-2); margin-bottom: 0; }
.tag__fig { margin-top: 6px; }
.tag__fig > p { margin-top: 14px; }
.linebox { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 24px 40px; align-items: start; padding: clamp(32px, 4vw, 48px); border-radius: 24px; background: var(--leaf-12); }
.linebox__leaf { width: 110px; height: 90px; color: var(--leaf); }
.linebox .note { margin-top: 16px; }
.linebox .btns { margin-top: 22px; }

/* ---------- 図 Y-2 年齢の表 ---------- */
.age { margin: 0; max-width: 640px; }
.age table { width: 100%; border-collapse: separate; border-spacing: 0; font-variant-numeric: tabular-nums; }
.age th, .age td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--bark-20); }
.age thead th { font-size: 13.5px; color: var(--bark); border-bottom: 1.5px solid var(--bark); font-weight: 700; }
.age tbody td:first-child { display: flex; align-items: flex-end; gap: 14px; font-weight: 700; font-size: 17px; }
.age .sil { display: inline-flex; align-items: flex-end; gap: 4px; width: 92px; flex-shrink: 0; }
.age .sil svg { height: auto; }
.age .sil .s-dog { color: var(--leaf); }
.age .sil .s-cat { color: var(--bark); }
.age td:last-child { font-size: 16px; }
.age tr.is-mark td { background: var(--leaf-30); }
.age tr.is-mark td:first-child { border-radius: 12px 0 0 12px; }
.age tr.is-mark td:last-child { border-radius: 0 12px 12px 0; }
.age__flag { display: inline-block; margin-left: 12px; font-size: 13px; font-weight: 700; color: var(--ink); background: var(--white); border: 1.5px solid var(--bark); border-radius: 999px; padding: 2px 12px; }

/* 病院のこと */
.career { margin-top: 26px; }
.career th { width: 5.5em; }
.staff { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 20px 40px; }
.staff li { display: grid; justify-items: center; gap: 8px; font-size: 14px; font-weight: 700; }
.staff svg { width: 84px; height: 84px; }
.name__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 32px clamp(32px, 5vw, 72px); align-items: center; }
.name__grid .ph img { aspect-ratio: 1; object-position: 50% 8%; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 32px; }
.pair .ph img { aspect-ratio: 4 / 3; }
.pair--dogcrop .ph:first-child img { object-position: 74% 50%; }
.pair + p, .pair + .measure { margin-top: 28px; }

/* 診療時間とアクセス */
.map { margin: 0; border: 1.5px solid var(--bark); border-radius: 20px; overflow: hidden; background: var(--white); }
.map svg { display: block; width: 100%; height: auto; }
.map text { font-family: var(--sans); fill: var(--ink); }
.map .t-pop { font-family: var(--pop); fill: var(--bark); }
.map__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 32px clamp(28px, 4vw, 56px); align-items: start; }
.map__grid .ph { margin-top: 22px; }
.map__grid .ph img { aspect-ratio: 16 / 10; }

/* ---------- 動き（JS があるときだけ） ---------- */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .rv.is-in { opacity: 1; transform: none; }
.js .sh .sh__leaf { opacity: 0; }
.js .sh.is-in .sh__leaf { opacity: 1; animation: sway 1.4s var(--ease) both; }
.js .sh--r.is-in .sh__leaf { animation-name: sway-r; }
@keyframes sway { 0% { transform: rotate(-8deg) translateY(-6px); opacity: 0; } 30% { opacity: 1; transform: rotate(-12deg); } 55% { transform: rotate(-4deg); } 78% { transform: rotate(-10deg); } 100% { transform: rotate(-8deg); } }
@keyframes sway-r { 0% { transform: rotate(14deg) scaleX(-1) translateY(-6px); opacity: 0; } 30% { opacity: 1; transform: rotate(18deg) scaleX(-1); } 55% { transform: rotate(10deg) scaleX(-1); } 78% { transform: rotate(16deg) scaleX(-1); } 100% { transform: rotate(14deg) scaleX(-1); } }

.js .hero__ph--dog { animation: from-l 1.1s var(--ease) both .1s; }
.js .hero__ph--cat { animation: from-r 1.1s var(--ease) both .1s; }
@keyframes from-l { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
@keyframes from-r { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
.js .hero__crown { animation: crown 1.8s var(--ease) both .35s; }
@keyframes crown { 0% { transform: rotate(0); } 25% { transform: rotate(-4deg); } 52% { transform: rotate(3deg); } 76% { transform: rotate(-1.5deg); } 100% { transform: rotate(0); } }
.js .hero__leaflet { animation: leaflet 1.6s var(--ease) both .5s; transform-box: fill-box; transform-origin: 0% 100%; }
.js .hero__leaflet--2 { animation-delay: .65s; }
.js .hero__leaflet--3 { animation-delay: .8s; }
@keyframes leaflet { 0% { opacity: 0; transform: rotate(-14deg) translateY(-4px); } 40% { opacity: 1; transform: rotate(4deg); } 70% { transform: rotate(-4deg); } 100% { opacity: 1; transform: rotate(0); } }
.js .hero__tail { stroke-dasharray: 1; stroke-dashoffset: 0; }
.js .ph__leaf { animation: leafdrop 1.3s var(--ease) both .4s; }
@keyframes leafdrop { 0% { opacity: 0; translate: 0 -8px; rotate: -10deg; } 50% { opacity: 1; rotate: 4deg; } 100% { opacity: 1; translate: 0 0; rotate: 0deg; } }

/* 図の動き */
.js .year .bar { transform: scaleX(0); transition: transform 1s var(--ease); }
.js .year .bar--rabies { transition-delay: .1s; }
.js .year .bar--off-a { transition-delay: .35s; }
.js .year .bar--flea { transition-delay: .45s; }
.js .year .bar--off-b { transition-delay: .9s; }
.js .year.is-in .bar { transform: none; }
.js .year .fila-test, .js .year .fila-dots i, .js .year .vac__mark { opacity: 0; transform: scale(.4); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.js .year.is-in .fila-test, .js .year.is-in .fila-dots i, .js .year.is-in .vac__mark { opacity: 1; transform: none; }
.js .year.is-in .fila-test { transition-delay: .3s; }
.js .year.is-in .fila-dots i:nth-child(1) { transition-delay: .4s; } .js .year.is-in .fila-dots i:nth-child(2) { transition-delay: .47s; }
.js .year.is-in .fila-dots i:nth-child(3) { transition-delay: .54s; } .js .year.is-in .fila-dots i:nth-child(4) { transition-delay: .61s; }
.js .year.is-in .fila-dots i:nth-child(5) { transition-delay: .68s; } .js .year.is-in .fila-dots i:nth-child(6) { transition-delay: .75s; }
.js .year.is-in .fila-dots i:nth-child(7) { transition-delay: .82s; } .js .year.is-in .fila-dots i:nth-child(8) { transition-delay: .89s; }
.js .year.is-in .vac__mark { transition-delay: 1s; }

.js .flow .flow__step { opacity: 0; transform: translateY(12px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .flow.is-in .flow__step { opacity: 1; transform: none; }
.js .flow.is-in .flow__step:nth-child(2) { transition-delay: .15s; }
.js .flow.is-in .flow__step:nth-child(3) { transition-delay: .3s; }
.js .flow.is-in .flow__step:nth-child(4) { transition-delay: .45s; }
.js .flow.is-in .flow__step:nth-child(5) { transition-delay: .6s; }

.js .plan .pz { opacity: 0; transform: scale(.96); transform-box: fill-box; transform-origin: center; transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .plan.is-in .pz { opacity: 1; transform: none; }
.js .plan.is-in .pz-2 { transition-delay: .12s; } .js .plan.is-in .pz-3 { transition-delay: .24s; }
.js .plan.is-in .pz-4 { transition-delay: .36s; } .js .plan.is-in .pz-5 { transition-delay: .48s; }

.js .age tbody tr { opacity: 0; transform: translateX(-10px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .age.is-in tbody tr { opacity: 1; transform: none; }
.js .age.is-in tbody tr:nth-child(2) { transition-delay: .1s; } .js .age.is-in tbody tr:nth-child(3) { transition-delay: .2s; }
.js .age.is-in tbody tr:nth-child(4) { transition-delay: .3s; } .js .age.is-in tbody tr:nth-child(5) { transition-delay: .4s; }
.js .age.is-in tbody tr:nth-child(6) { transition-delay: .5s; }

.js .map .route { stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease) .2s; }
.js .map.is-in .route { stroke-dashoffset: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- 画面の幅ごと ---------- */
@media (max-width: 1180px) {
  .gnav a { padding-inline: 8px; font-size: 14px; }
  .brand__name { font-size: 17px; }
}
@media (max-width: 1080px) {
  .menu { display: inline-flex; }
  .head__tel { margin-left: auto; }
  .head__tel + .menu { margin-left: 0; }
  .gnav {
    position: fixed; inset: 0 0 auto 0; top: var(--head-h, 120px);
    background: var(--white); border-bottom: 1.5px solid var(--bark);
    padding: 12px 24px 28px; margin: 0;
    max-height: calc(100vh - var(--head-h, 120px)); overflow: auto;
    display: none;
  }
  .is-menu .gnav { display: block; }
  .gnav ul { flex-direction: column; gap: 0; }
  .gnav a { padding: 16px 4px 16px 30px; font-size: 16px; border-bottom: 1px solid var(--bark-20); }
  .gnav a[aria-current="page"]::after { left: 0; bottom: auto; top: 50%; margin: -7px 0 0; }
  .hero__stage { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1fr); }
  .news__in { grid-template-columns: 1fr; }
  .year__grid { font-size: 13px; grid-template-columns: 11em repeat(12, minmax(0, 1fr)); }
  .bar span { font-size: 11.5px; padding: 0 8px; }
  .tag { grid-template-columns: 1fr; }
  .tag__head { border-right: 0; border-bottom: 1.5px dashed var(--bark-20); border-radius: 19px 19px 0 0; padding: 22px 24px 18px 52px; }
  .tag__head::before { top: 28px; }
}
@media (max-width: 860px) {
  .hero__stage { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .hero__ph--dog { grid-column: 1; grid-row: 1; }
  .hero__ph--cat { grid-column: 2; grid-row: 1; }
  .hero__ph img { aspect-ratio: 4 / 5; border-radius: 18px; }
  .hero__center { grid-column: 1 / -1; grid-row: 2; margin-top: -54px; }
  .hero__tree { width: min(78%, 330px); }
  .split, .split--wide-l, .split--wide-r, .voice__grid, .info__grid, .machiai__grid, .first__body, .name__grid, .map__grid, .kinds { grid-template-columns: 1fr; }
  .first__body { align-items: start; }
  .bring { grid-template-columns: 1fr; }
  .night { grid-template-columns: 1fr; }
  .calls__list { grid-template-columns: 1fr; }
  .foot__in { grid-template-columns: 1fr; }
  .phead__ph img { aspect-ratio: 16 / 9; }
  .linebox { grid-template-columns: 1fr; }
  .linebox__leaf { width: 70px; height: 56px; }

  /* Y-1 はスマホで縦（上から 1月→12月） */
  .year__grid {
    grid-template-columns: 3.4em repeat(4, minmax(0, 1fr));
    grid-template-rows: auto repeat(12, minmax(46px, auto));
    border-top: 0; border-bottom: 1.5px solid var(--bark);
  }
  .year__col { grid-row: auto; border-left: 0; border-top: 1px dashed var(--bark-20); grid-column: 1 / -1 !important; }
  .year__col:nth-of-type(1) { grid-row: 2; } .year__col:nth-of-type(2) { grid-row: 3; } .year__col:nth-of-type(3) { grid-row: 4; }
  .year__col:nth-of-type(4) { grid-row: 5; } .year__col:nth-of-type(5) { grid-row: 6; } .year__col:nth-of-type(6) { grid-row: 7; }
  .year__col:nth-of-type(7) { grid-row: 8; } .year__col:nth-of-type(8) { grid-row: 9; } .year__col:nth-of-type(9) { grid-row: 10; }
  .year__col:nth-of-type(10) { grid-row: 11; } .year__col:nth-of-type(11) { grid-row: 12; } .year__col:nth-of-type(12) { grid-row: 13; }
  .year__m { grid-column: 1 !important; border-bottom: 0; display: flex; align-items: center; gap: 4px; padding: 0 4px 0 0; justify-content: flex-start; }
  .year__m svg { width: 13px; height: 10px; }
  .year__m b { font-size: 17px; }
  .year__lab {
    grid-row: 1 !important; flex-direction: column; align-items: flex-start; gap: 4px;
    padding: 12px 4px 12px 6px; font-size: 11.5px; border-bottom: 1.5px solid var(--bark); border-top: 1.5px solid var(--bark);
    position: sticky; top: 0;
  }
  .year__lab .paws { flex-direction: row; }
  .year__lab.y-r1 { grid-column: 2; } .year__lab.y-r2 { grid-column: 3; } .year__lab.y-r3 { grid-column: 4; } .year__lab.y-r4 { grid-column: 5; border-bottom: 1.5px solid var(--bark); }
  .year__grid > .year__corner { grid-column: 1; grid-row: 1; border-bottom: 1.5px solid var(--bark); border-top: 1.5px solid var(--bark); }
  .bar { height: auto; width: 16px; margin: 4px 0 4px 4px; justify-self: start; align-self: stretch; transform-origin: center top; }
  .bar span { position: absolute; left: 22px; top: 6px; white-space: normal; width: calc(100% + 40px); padding: 0; font-size: 11px; color: var(--ink); }
  .bar--rabies { grid-column: 2; grid-row: 5 / 8; }
  .bar--rabies span { width: 3.6em; }
  .bar--flea { grid-column: 4; grid-row: 4 / 13; }
  .bar--off { grid-column: 4 !important; }
  .bar--off-a { grid-row: 2 / 4; }
  .bar--off-a span { width: 4.4em; color: var(--ink-2); }
  .bar--off-b { grid-row: 13 / 14; }
  .fila-test { grid-column: 3; grid-row: 5; align-self: end; justify-self: start; margin: 0 0 -8px 2px; }
  .fila-test span { top: -2px; right: auto; left: 24px; white-space: normal; width: 3.4em; line-height: 1.3; }
  .fila-dots { grid-column: 3; grid-row: 6 / 14; grid-template-columns: none; grid-template-rows: repeat(8, 1fr); justify-items: start; padding-left: 4px; }
  .fila-dots span { left: 28px; top: 8px; transform: none; white-space: normal; width: 3em; line-height: 1.3; font-size: 11px; }
  .vac { grid-column: 5; grid-row: 2 / 14; height: auto; flex-direction: column; justify-content: center; margin: 4px 0; }
  .vac::before { left: 50%; right: auto; top: 0; bottom: 0; border-top: 0; border-left: 1.5px dotted var(--line); }
  .vac__mark { flex-direction: column; padding: 8px 0; }
  .vac__mark svg { transform: rotate(90deg); }
  .vac__mark b { margin: 4px 0 0; white-space: normal; font-size: 11px; text-align: center; line-height: 1.4; width: 5em; }
  .js .year .bar { transform: scaleY(0); }
  .js .year.is-in .bar { transform: none; }

  /* Y-3 はスマホで縦 */
  .flow__list { grid-template-columns: 1fr; padding: 0; }
  .flow__list::after { display: none; }
  .flow__step { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 0 16px; align-items: center; text-align: left; padding: 0 0 26px; }
  .flow__circle, .flow--sm .flow__circle { width: 68px; margin: 0; grid-row: 1 / 3; }
  .flow__name { justify-content: flex-start; font-size: 17px; }
  .flow__text { margin-top: 0; font-size: 14px; }
  .flow__dots, .flow--sm .flow__dots { top: -26px; left: 33px; width: 0; height: 26px; border-top: 0; border-left: 2px dotted var(--bark); }
  .flow__dots .paw { left: 10px; top: 4px; margin-left: 0; width: 15px; height: 15px; }

  /* トップの予防の表はスマホで1件ずつ */
  .ptable, .ptable tbody, .ptable tr, .ptable td, .ptable th, .ptable tfoot { display: block; width: 100%; }
  .ptable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ptable tbody tr { border-bottom: 1.5px solid var(--bark-20); padding: 6px 0; }
  .ptable tbody th { width: auto; padding: 12px 16px 4px; font-size: 16px; border-bottom: 0; }
  .ptable tbody td { border-bottom: 0; padding: 6px 16px; display: grid; grid-template-columns: 6.8em minmax(0, 1fr); gap: 10px; }
  .ptable tbody td::before { content: attr(data-label); font-weight: 700; color: var(--bark); font-size: 12.5px; line-height: 1.9; }
  .ptable tbody tr:nth-child(even) { background: var(--leaf-12); }
  .tag dl { padding: 4px 20px; }
  .tag dl > div { grid-template-columns: 1fr; gap: 4px; padding: 14px 0; }
  .tag__foot { padding: 0 20px 22px; }
  .pair { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .wrap, .ground--wrap { width: min(100% - 36px, var(--wrap)); }
  .topbar { font-size: 12px; }
  .topbar__in { gap: 2px 10px; padding: 7px 0; }
  .topbar__label { flex-basis: 100%; }
  .head__in { min-height: 66px; gap: 10px; width: min(100% - 24px, 1280px); }
  .brand__mark { width: 40px; height: 40px; }
  .brand__name { font-size: 15px; }
  .brand__sub { font-size: 10.5px; }
  .brand { gap: 7px; }
  .head__tel { display: none; }
  .menu { margin-left: auto !important; padding: 0 12px; }
  .demo { font-size: 9px; padding: 0 4px; }
  .hero__stage { width: min(100% - 28px, 1280px); gap: 10px; }
  .hero__title { font-size: 27px; }
  .hero__btns .btn { width: 100%; }
  .today { width: min(100% - 36px, 560px); padding: 12px 14px; }
  .today__time { font-size: 15.5px; }
  .hours th, .hours td { padding: 10px 2px; font-size: 13.5px; }
  .hours tbody th { padding-left: 8px; font-size: 12.5px; }
  .hours .on { width: 15px; height: 15px; }
  .kv th { width: 6.5em; white-space: normal; }
  .chips li { font-size: 17px; padding: 8px 18px; }
  .tag__head { padding-left: 46px; }
  .tag__head::before { left: 18px; }
  .night__card { padding: 20px; }
  .age .sil { width: 70px; }
  .age th, .age td { padding: 10px 8px; }
  .age__flag { display: block; margin: 6px 0 0; width: fit-content; }
  .foot__nav { grid-template-columns: 1fr 1fr; gap: 0 20px; }
}

/* 追記: 札の費用の注記・時間外の札はスマホでも左右に */
.tag__inc { display: block; font-size: 13.5px; color: var(--ink-2); margin-bottom: 2px; }
@media (max-width: 860px) { .night { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .night { gap: 10px; }
  .night__card { padding: 16px 12px; border-radius: 14px; }
  .night__when { font-size: 16px; }
  .night__tel { font-size: 16px; letter-spacing: 0; }
  .night__who { font-size: 11.5px; }
  .night__card p:last-child { font-size: 13px; line-height: 1.7; }
}
.foot__info a, .topbar__tel, .night__tel, .kv a, .ptable a { white-space: nowrap; }
.split .ph--scale img { aspect-ratio: 2 / 1; object-position: 50% 100%; }
.phead__ph--rec img { object-position: 50% 75%; }
.pair--dogcrop .ph img { aspect-ratio: 1; }
.pair--dogcrop .ph:first-child img { object-position: 80% 50%; }
.phead__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.phead__row .sh { margin-bottom: 0; }
.phead__mark { width: clamp(64px, 8vw, 110px); height: auto; margin-bottom: -4px; }
.phead--noimg .ground { margin-top: 0; }

/* Y-1 の月の位置 */
.ym-1 { grid-column: 2; } .ym-2 { grid-column: 3; } .ym-3 { grid-column: 4; } .ym-4 { grid-column: 5; } .ym-5 { grid-column: 6; } .ym-6 { grid-column: 7; } .ym-7 { grid-column: 8; } .ym-8 { grid-column: 9; } .ym-9 { grid-column: 10; } .ym-10 { grid-column: 11; } .ym-11 { grid-column: 12; } .ym-12 { grid-column: 13; } 
@media (max-width: 860px) { .ym-1 { grid-row: 2; } .ym-2 { grid-row: 3; } .ym-3 { grid-row: 4; } .ym-4 { grid-row: 5; } .ym-5 { grid-row: 6; } .ym-6 { grid-row: 7; } .ym-7 { grid-row: 8; } .ym-8 { grid-row: 9; } .ym-9 { grid-row: 10; } .ym-10 { grid-row: 11; } .ym-11 { grid-row: 12; } .ym-12 { grid-row: 13; } 
  .fila-dots span { top: 50%; }
}
@media (max-width: 860px) and (min-width: 561px) {
  .bar--rabies span { width: 8em; }
  .machiai__side .ph { max-width: 480px; }
  .machiai__side .ph img { aspect-ratio: 4 / 3; }
}
