/* ============================================
   VET NIKUKYU TEMPLATE
   動物病院・肉球と手描きのかわいい系
   クリーム × こげ茶 × ピンク の3色だけ
   点線・スタンプ・マスキングテープ、肉球の足あと（動きは控えめ）
============================================ */

:root {
  /* Color — 3色（クリーム／こげ茶／ピンク）とその濃淡だけ */
  --cream: #fbf1df;
  --cream-deep: #f3e1c2;
  --paper: #fffaf1;
  --choco: #5a3a28; /* 文字・線 */
  --choco-soft: #8b6a54;
  --choco-line: rgba(90, 58, 40, 0.28);
  --rule: rgba(90, 58, 40, 0.1); /* ノートの罫線 */
  --pink: #f2a2b1;
  --pink-soft: #fcdfe4;
  --pink-ink: #d46b84; /* スタンプのインク */

  /* Font */
  --font-body: "Klee One", "Hiragino Mincho ProN", serif;
  --font-hand: "Yomogi", "Klee One", cursive;

  /* Line — 点線と破線 */
  --dot: 3px dotted var(--choco);
  --dash: 2px dashed var(--choco-line);
  --radius: 14px;
  --radius-full: 999px;

  /* 肉球のマスク（アイコン・箇条書き・足あとに使う） */
  --paw: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg fill='%23000'%3E%3Cellipse cx='20' cy='27' rx='9.5' ry='8'/%3E%3Cellipse cx='8' cy='16' rx='4' ry='5' transform='rotate(-18 8 16)'/%3E%3Cellipse cx='15.5' cy='9' rx='4' ry='5.2' transform='rotate(-6 15.5 9)'/%3E%3Cellipse cx='24.5' cy='9' rx='4' ry='5.2' transform='rotate(6 24.5 9)'/%3E%3Cellipse cx='32' cy='16' rx='4' ry='5' transform='rotate(18 32 16)'/%3E%3C/g%3E%3C/svg%3E");

  --container: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;

  --press: cubic-bezier(0.2, 0.7, 0.2, 1); /* 跳ねない ease-out */
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  background: var(--cream);
  color: var(--choco);
  line-height: 1.95;
  letter-spacing: 0.03em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* 演出で一瞬はみ出しても横スクロールを出さない（clip は sticky を壊さない） */
main {
  overflow-x: clip;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

:focus-visible {
  outline: 3px dotted var(--pink-ink);
  outline-offset: 4px;
}

section[id] {
  scroll-margin-top: calc(var(--header-h) + 8px);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  padding: 8px 16px;
  background: var(--choco);
  color: var(--paper);
  border-radius: var(--radius-full);
}

.skip-link:focus {
  top: 12px;
}

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

.sp-only {
  display: none;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- 見出し（手書き風） ---------- */
.section-title {
  font-family: var(--font-hand);
  font-weight: 400;
  font-size: clamp(28px, 3.8vw, 40px);
  line-height: 1.4;
  letter-spacing: 0.04em;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

/* 下に肉球の点線をひく見出し */
.section-title--line {
  display: inline-block;
  padding-bottom: 10px;
  margin-bottom: 28px;
  background:
    radial-gradient(circle, var(--choco) 1.6px, transparent 2.2px) left bottom / 10px 4px repeat-x;
}

/* ---------- スタンプ（にじんだインク風の丸判） ---------- */
.stamp {
  display: inline-grid;
  place-content: center;
  text-align: center;
  width: 112px;
  height: 112px;
  font-family: var(--font-hand);
  line-height: 1.15;
  color: var(--pink-ink);
  border: 3px solid var(--pink-ink);
  border-radius: 50%;
  box-shadow: inset 0 0 0 4px var(--paper), inset 0 0 0 6px var(--pink-ink);
  background: var(--paper);
  transform: rotate(-12deg);
}

.stamp span {
  font-size: 13px;
}

.stamp strong {
  font-weight: 400;
  font-size: 28px;
  letter-spacing: 0.08em;
}

/* 足あとが一度だけ、うっすら付く（ループしない） */
@keyframes pawPrint {
  from {
    opacity: 0;
  }
  to {
    opacity: 0.18;
  }
}

/* 診療状況のスタンプの文字が変わったときだけ、そっと出し直す */
@keyframes stampFade {
  from {
    opacity: 0.35;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 12px 26px;
  font-weight: 600;
  font-size: 16px;
  border-radius: var(--radius-full);
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--choco {
  background: var(--choco);
  color: var(--paper);
}

.btn--choco:hover {
  background: #472d1f;
}

.btn--dot {
  background: var(--paper);
  border: var(--dot);
}

.btn--block {
  width: 100%;
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
}

/* 背景と点線は疑似要素に（ヘッダー本体には効果を付けない） */
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--cream);
  border-bottom: var(--dot);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.header.is-scrolled::before {
  opacity: 1;
}

.header__inner {
  max-width: 1280px;
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo__stamp {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--pink);
  fill: var(--choco);
  transform: rotate(-14deg);
  transition: transform 0.3s var(--press);
}

.logo:hover .logo__stamp {
  transform: rotate(-14deg) scale(1.03);
}

.logo__text {
  font-family: var(--font-hand);
  font-size: 18px;
  line-height: 1.15;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__link {
  display: block;
  padding: 8px 12px;
  font-size: 15px;
  border-bottom: 3px dotted transparent;
  transition: border-color 0.2s ease;
}

.nav__link:hover {
  border-bottom-color: var(--pink-ink);
}

.nav__link--cta {
  margin-left: 8px;
  padding: 8px 20px;
  background: var(--pink);
  border: none;
  border-radius: var(--radius-full);
}

.nav__link--cta:hover {
  background: var(--pink-ink);
  color: var(--paper);
}

.nav-toggle {
  display: none;
  position: relative;
  z-index: 110;
  width: 50px;
  height: 50px;
  background: var(--paper);
  border: var(--dot);
  border-radius: 50%;
}

.nav-toggle span {
  position: absolute;
  left: 12px;
  width: 20px;
  height: 2.5px;
  background: var(--choco);
  border-radius: 3px;
  transition: transform 0.3s ease, opacity 0.2s;
}

.nav-toggle span:nth-child(1) {
  top: 15px;
}
.nav-toggle span:nth-child(2) {
  top: 22px;
}
.nav-toggle span:nth-child(3) {
  top: 29px;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: var(--header-h);
  overflow: hidden;
}

.hero__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px var(--gutter) 110px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
}

.hero__place {
  display: inline-block;
  margin-bottom: 18px;
  padding: 2px 14px;
  font-size: 14px;
  border: 2px dashed var(--choco);
  border-radius: var(--radius-full);
}

.hero__title {
  font-family: var(--font-hand);
  font-weight: 400;
  font-size: clamp(36px, 5.4vw, 64px);
  line-height: 1.3;
  letter-spacing: 0.02em;
  word-break: keep-all;
}

.hero__title span {
  display: block;
}

.hero__title span:nth-child(even) {
  padding-left: 1em; /* 手書きっぽく行頭をずらす */
}

.hero__title em {
  font-style: normal;
  color: var(--pink-ink);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 8'%3E%3Cpath d='M1 5q7-5 14 0t14 0' fill='none' stroke='%23f2a2b1' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E")
    left bottom / 30px 8px repeat-x;
  padding-bottom: 4px;
}

/* ヒーローは1行ずつすっと出る（ローダーなし。JSタイマーでも必ず表示）
   写真やスタンプ自身の rotate とぶつからないよう、移動は translate プロパティで行う */
.js-paw .hero__title span,
.js-paw .hero__lead,
.js-paw .hero__btns,
.js-paw .polaroid,
.js-paw .stamp--hero {
  opacity: 0;
  translate: 0 12px;
}

.hero.is-ready .hero__title span,
.hero.is-ready .hero__lead,
.hero.is-ready .hero__btns,
.hero.is-ready .polaroid,
.hero.is-ready .stamp--hero {
  opacity: 1;
  translate: none;
  transition:
    opacity 0.8s ease-out,
    translate 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.hero.is-ready .hero__title span:nth-child(2) {
  transition-delay: 0.1s;
}
.hero.is-ready .hero__title span:nth-child(3) {
  transition-delay: 0.2s;
}
.hero.is-ready .hero__title span:nth-child(4) {
  transition-delay: 0.3s;
}
.hero.is-ready .hero__lead {
  transition-delay: 0.45s;
}
.hero.is-ready .hero__btns {
  transition-delay: 0.55s;
}
.hero.is-ready .polaroid--main {
  transition-delay: 0.15s;
}
.hero.is-ready .polaroid--sub {
  transition-delay: 0.35s;
}
.hero.is-ready .stamp--hero {
  transition-delay: 0.5s;
}

.hero__lead {
  margin: 24px 0 28px;
  font-size: 16px;
}

.hero__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__pics {
  position: relative;
  padding-bottom: 60px;
}

/* ポラロイド＋マスキングテープ */
.polaroid {
  position: relative;
  padding: 12px 12px 10px;
  background: var(--paper);
  box-shadow: 0 6px 16px rgba(90, 58, 40, 0.16);
}

.polaroid::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 50%;
  width: 110px;
  height: 28px;
  margin-left: -55px;
  background: repeating-linear-gradient(
    -45deg,
    rgba(242, 162, 177, 0.75) 0 8px,
    rgba(252, 223, 228, 0.75) 8px 16px
  );
  transform: rotate(-4deg);
}

.polaroid figcaption {
  padding-top: 8px;
  font-family: var(--font-hand);
  font-size: 16px;
  text-align: center;
}

.polaroid--main {
  width: 78%;
  margin-left: auto;
  transform: rotate(3deg);
}

.polaroid--main figcaption {
  text-align: right;
}

.polaroid--main img {
  aspect-ratio: 8 / 9;
  object-fit: cover;
  width: 100%;
}

.polaroid--sub {
  position: absolute;
  left: -2%;
  bottom: -4px;
  width: 44%;
  transform: rotate(-7deg);
}

.polaroid--sub::before {
  width: 70px;
  margin-left: -35px;
  transform: rotate(6deg);
}

.polaroid--sub img {
  aspect-ratio: 5 / 4.2;
  object-fit: cover;
}

.stamp--hero {
  position: absolute;
  top: -8px;
  left: 6%;
  z-index: 2;
}

/* ---------- 肉球の足あと（見えたときに一度だけ順に付く） ---------- */
.paw-trail {
  position: absolute;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 60px;
  padding: 0 4%;
  pointer-events: none;
}

.paw-trail svg {
  width: 26px;
  height: 26px;
  fill: var(--choco);
  opacity: 0.18; /* JSが動かないときも、うっすら見える */
  transform: rotate(90deg);
}

/* 左右の足が交互になるようにジグザグ */
.paw-trail svg:nth-child(odd) {
  margin-top: -22px;
}
.paw-trail svg:nth-child(even) {
  margin-top: 22px;
}

.paw-trail.is-walking svg {
  animation: pawPrint 0.5s ease-out calc(var(--i, 0) * 0.08s) backwards;
}

.paw-trail--hero {
  bottom: 22px;
}

.paw-trail--hero svg {
  fill: var(--pink-ink);
}

.paw-trail--foot {
  position: relative;
  margin-top: 40px;
}

/* ---------- 院長のひとこと ---------- */
.hello {
  padding: 40px 0 88px;
}

.hello__inner {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 48px;
  align-items: center;
}

.hello__pic {
  border-radius: 50%;
  overflow: hidden;
  border: 6px solid var(--paper);
  outline: var(--dot);
  outline-offset: 6px;
}

.hello__pic img {
  aspect-ratio: 1;
  object-fit: cover;
}

.hello__note {
  position: relative;
  padding: 32px 36px;
  background: var(--paper);
  border-radius: 4px;
  box-shadow: 0 4px 0 var(--cream-deep);
}

/* ふち取りの点線 */
.hello__note::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: var(--dash);
  border-radius: 2px;
  pointer-events: none;
}

.hello__title {
  font-family: var(--font-hand);
  font-weight: 400;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.45;
  margin-bottom: 14px;
  word-break: keep-all;
}

.hello__note p + p {
  margin-top: 10px;
}

.hello__sign {
  text-align: right;
  font-family: var(--font-hand);
  font-size: 18px;
}

/* ---------- 診療時間（診察券ふうのカード） ---------- */
.hours {
  padding: 72px 0;
  background:
    radial-gradient(circle, rgba(90, 58, 40, 0.08) 1.5px, transparent 2px) 0 0 / 22px 22px,
    var(--cream-deep);
}

.hours__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: start;
}

.card-ticket {
  position: relative;
  padding: 30px 34px 26px;
  background: var(--paper);
  border-radius: 18px;
  box-shadow: 0 8px 0 rgba(90, 58, 40, 0.1);
}

/* 診察券の切りかき（左右の半円） */
.card-ticket::before,
.card-ticket::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 26px;
  height: 26px;
  margin-top: -13px;
  border-radius: 50%;
  background: var(--cream-deep);
}

.card-ticket::before {
  left: -13px;
}

.card-ticket::after {
  right: -13px;
}

.card-ticket__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.stamp--status {
  width: 96px;
  height: 96px;
  flex-shrink: 0;
  transform: rotate(10deg);
}

.stamp--status strong {
  font-size: 19px;
}

.stamp--status.is-open {
  color: var(--choco);
  border-color: var(--choco);
  box-shadow: inset 0 0 0 4px var(--paper), inset 0 0 0 6px var(--choco);
}

.stamp--status.is-pressed {
  animation: stampFade 0.4s ease-out;
}

.days {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
}

.days th,
.days td {
  padding: 8px 6px;
  font-size: 16px;
  border-bottom: var(--dash);
}

.days thead th {
  font-weight: 600;
  font-size: 15px;
  line-height: 1.4;
  border-bottom: var(--dot);
}

.days thead th small {
  display: block;
  font-size: 13px;
  color: var(--choco-soft);
}

.days tbody th {
  position: relative;
  width: 30%;
  font-family: var(--font-hand);
  font-weight: 400;
  font-size: 20px;
}

.days td small {
  margin-left: 4px;
  font-size: 13px;
  color: var(--choco-soft);
}

.days tr.is-off {
  color: var(--choco-soft);
}

/* きょうの行（JSが .is-today を付ける） */
.days tr.is-today {
  background: var(--pink-soft);
}

.days tr.is-today th::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 50%;
  width: 22px;
  height: 22px;
  margin-top: -11px;
  background: var(--pink-ink);
  -webkit-mask: var(--paw) center / contain no-repeat;
  mask: var(--paw) center / contain no-repeat;
  transform: rotate(-15deg);
}

.days tr.is-today th::after {
  content: "きょう";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--pink-ink);
}

.o,
.t,
.x {
  font-size: 18px;
}

.o {
  color: var(--choco);
}

.t {
  color: var(--pink-ink);
}

.x {
  font-size: 15px;
  color: var(--choco-soft);
}

.days__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 18px;
  margin-top: 12px;
  font-size: 14px;
}

.days__now {
  margin-top: 8px;
  padding: 8px 14px;
  font-size: 15px;
  background: var(--cream);
  border-radius: 10px;
}

/* お知らせ（回覧板） */
.board {
  position: relative;
  padding: 44px 28px 24px;
  background: var(--paper);
  border-radius: 6px;
  box-shadow: 0 8px 0 rgba(90, 58, 40, 0.1);
}

/* 回覧板のクリップ */
.board::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 50%;
  width: 120px;
  height: 30px;
  margin-left: -60px;
  background: var(--choco);
  border-radius: 8px 8px 14px 14px;
}

.board__title {
  font-family: var(--font-hand);
  font-weight: 400;
  font-size: 26px;
  text-align: center;
  margin-bottom: 8px;
}

.board__list li {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  padding: 12px 0;
  font-size: 15px;
  line-height: 1.8;
  border-bottom: var(--dash);
}

.board__list time {
  font-family: var(--font-hand);
  font-size: 18px;
  color: var(--pink-ink);
}

.board__tag {
  display: inline-block;
  margin-right: 6px;
  padding: 0 8px;
  font-size: 13px;
  color: var(--paper);
  background: var(--pink-ink);
  border-radius: 4px;
}

.board__memo {
  margin-top: 16px;
  padding: 10px 14px;
  font-family: var(--font-hand);
  font-size: 16px;
  background: var(--pink-soft);
  transform: rotate(-1deg);
}

/* ---------- 診療対象動物（まるいスタンプ） ---------- */
.animals {
  padding: 88px 0 72px;
  text-align: center;
}

.animals__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px 34px;
}

.ani {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 150px;
}

.ani__ring {
  display: block;
  width: 140px;
  height: 140px;
  padding: 8px;
  border: 3px dashed var(--choco);
  border-radius: 50%;
  transition: scale 0.3s var(--press);
}

.ani:nth-child(odd) .ani__ring {
  transform: rotate(-6deg);
}

.ani:nth-child(even) .ani__ring {
  border-color: var(--pink-ink);
  transform: rotate(5deg);
}

.ani:hover .ani__ring {
  scale: 1.03;
}

.ani__ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.ani strong {
  font-family: var(--font-hand);
  font-weight: 400;
  font-size: 21px;
  line-height: 1.3;
}

.animals__note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 36px;
  font-size: 15px;
  text-align: left;
}

.i-paw {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  fill: var(--pink-ink);
}

/* ---------- 診療内容（罫線ノート） ---------- */
.menu {
  padding: 40px 0 96px;
}

.menu__inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.notebook {
  position: relative;
  padding: 36px 32px 28px 64px;
  background:
    linear-gradient(90deg, transparent 44px, var(--pink) 44px 46px, transparent 46px),
    repeating-linear-gradient(transparent 0 35px, var(--rule) 35px 36px),
    var(--paper);
  background-position: 0 0, 0 14px, 0 0;
  border-radius: 4px 14px 14px 4px;
  box-shadow: 0 6px 0 var(--cream-deep);
}

/* リングノートの穴 */
.notebook::before {
  content: "";
  position: absolute;
  top: 20px;
  bottom: 20px;
  left: 14px;
  width: 14px;
  background: radial-gradient(circle, var(--cream) 5px, transparent 5.5px) center top / 14px 36px repeat-y;
}

.notebook .section-title {
  margin-bottom: 10px;
}

.notebook__list li {
  position: relative;
  padding: 10px 0 10px 32px;
  line-height: 1.75;
}

.notebook__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 20px;
  height: 20px;
  background: var(--choco);
  -webkit-mask: var(--paw) center / contain no-repeat;
  mask: var(--paw) center / contain no-repeat;
  transform: rotate(-12deg);
}

.notebook__list li:nth-child(even)::before {
  background: var(--pink-ink);
  transform: rotate(14deg);
}

.notebook__list strong {
  display: block;
  font-family: var(--font-hand);
  font-weight: 400;
  font-size: 20px;
}

.notebook__list span {
  font-size: 15px;
  color: var(--choco-soft);
}

.notebook__memo {
  margin-top: 12px;
  font-size: 14px;
  color: var(--choco-soft);
}

.menu__pics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.snap {
  position: relative;
  padding: 10px 10px 8px;
  background: var(--paper);
  box-shadow: 0 4px 12px rgba(90, 58, 40, 0.14);
}

.snap::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 18px;
  width: 64px;
  height: 22px;
  background: rgba(242, 162, 177, 0.7);
  transform: rotate(-8deg);
}

.snap img {
  width: 100%;
  aspect-ratio: 6 / 5;
  object-fit: cover;
}

.snap figcaption {
  padding-top: 6px;
  font-family: var(--font-hand);
  font-size: 15px;
  line-height: 1.5;
}

.snap--a {
  grid-column: 1 / -1;
  transform: rotate(-2deg);
}

.snap--b {
  transform: rotate(3deg);
  margin-top: 8px;
}

.snap--c {
  transform: rotate(-3deg);
}

/* ---------- 初診の流れ（足あとでつなぐ） ---------- */
.flow {
  padding: 88px 0;
  background: var(--pink-soft);
}

.flow__inner {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.flow__head {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.flow__head p {
  margin-top: 14px;
  font-size: 15px;
}

.steps {
  position: relative;
}

/* 縦に続く肉球の足あと */
.steps::before {
  content: "";
  position: absolute;
  top: 40px;
  bottom: 40px;
  left: 26px;
  width: 18px;
  background: var(--pink-ink);
  opacity: 0.45;
  -webkit-mask: var(--paw) center top / 18px 34px repeat-y;
  mask: var(--paw) center top / 18px 34px repeat-y;
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 18px;
  padding: 18px 0;
}

.step__no {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  font-family: var(--font-hand);
  font-size: 30px;
  background: var(--paper);
  border: var(--dot);
  border-radius: 50%;
}

.step:nth-child(even) .step__no {
  background: var(--pink);
}

.step h3 {
  font-family: var(--font-hand);
  font-weight: 400;
  font-size: 22px;
  margin: 10px 0 4px;
}

.step p {
  font-size: 15px;
}

/* ---------- 設備（横に並ぶスナップ。スマホは横スクロール） ---------- */
.facility {
  padding: 88px 0;
}

.facility__head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 0 32px;
  margin-bottom: 28px;
}

.facility__head .section-title--line {
  margin-bottom: 0;
}

.facility__head p {
  max-width: 420px;
  font-size: 15px;
}

.facility__strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 10px var(--gutter) 20px;
}

.fac {
  padding: 10px;
  background: var(--paper);
  border-radius: 10px;
  box-shadow: 0 4px 0 var(--cream-deep);
}

.fac:nth-child(odd) {
  transform: rotate(-1.5deg);
}

.fac:nth-child(even) {
  transform: rotate(1.5deg) translateY(14px);
}

.fac img {
  width: 100%;
  aspect-ratio: 7 / 5.2;
  object-fit: cover;
  border-radius: 6px;
}

.fac p {
  padding: 10px 4px 2px;
  font-size: 14px;
  line-height: 1.7;
}

.fac p strong {
  display: block;
  font-family: var(--font-hand);
  font-weight: 400;
  font-size: 19px;
}

.fac--text {
  padding: 18px;
  background: var(--choco);
  color: var(--paper);
}

.fac__list li {
  position: relative;
  padding: 6px 0 6px 24px;
  font-size: 15px;
  border-bottom: 1px dashed rgba(255, 250, 241, 0.35);
}

.fac__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 16px;
  height: 16px;
  background: var(--pink);
  -webkit-mask: var(--paw) center / contain no-repeat;
  mask: var(--paw) center / contain no-repeat;
}

/* ---------- スタッフ ---------- */
.staff {
  padding: 40px 0 96px;
}

.staff__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px 40px;
}

.member {
  display: grid;
  gap: 14px;
  align-content: start;
}

.member--boss {
  grid-column: 1 / -1;
  grid-template-columns: 0.62fr 1.38fr;
  gap: 40px;
  align-items: center;
  padding-bottom: 36px;
  border-bottom: var(--dash);
}

.member__pic {
  position: relative;
  padding: 10px;
  background: var(--paper);
  box-shadow: 0 4px 12px rgba(90, 58, 40, 0.14);
  transform: rotate(-2deg);
}

.member:nth-child(3) .member__pic {
  transform: rotate(2deg);
}

/* テープ2枚で左右の角を留める */
.member__pic::before,
.member__pic::after {
  content: "";
  position: absolute;
  top: -8px;
  width: 54px;
  height: 20px;
  background: rgba(242, 162, 177, 0.72);
}

.member__pic::before {
  left: -14px;
  transform: rotate(-30deg);
}

.member__pic::after {
  right: -14px;
  transform: rotate(30deg);
}

.member__pic img {
  width: 100%;
  aspect-ratio: 5 / 4.2;
  object-fit: cover;
}

.member--boss .member__pic img {
  aspect-ratio: 6 / 7;
}

.member__role {
  display: inline-block;
  padding: 0 12px;
  font-size: 13px;
  border: 2px solid var(--pink-ink);
  color: var(--pink-ink);
  border-radius: var(--radius-full);
}

.member__name {
  font-family: var(--font-hand);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.4;
  margin: 6px 0 8px;
}

.member__name small {
  margin-left: 10px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--choco-soft);
}

.member:not(.member--boss) .member__name {
  font-size: 23px;
}

.member__body p {
  font-size: 15px;
}

/* 手書きのメモ（ピンクのマーカー） */
.memo {
  margin-top: 12px;
  font-family: var(--font-hand);
  font-size: 17px !important;
  line-height: 1.8;
}

.memo::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 6px;
  vertical-align: -2px;
  background: var(--pink-ink);
  -webkit-mask: var(--paw) center / contain no-repeat;
  mask: var(--paw) center / contain no-repeat;
}

/* ---------- 夜間・緊急 ---------- */
.emergency {
  padding: 0 0 88px;
}

.emergency__box {
  position: relative;
  padding: 40px 44px 32px;
  background: var(--pink-soft);
  border: 3px dashed var(--pink-ink);
  border-radius: 24px;
}

.stamp--urgent {
  position: absolute;
  top: -30px;
  right: 30px;
  width: 80px;
  height: 80px;
  transform: rotate(14deg);
}

.stamp--urgent strong {
  font-size: 36px;
}

.emergency__title {
  font-family: var(--font-hand);
  font-weight: 400;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.4;
  margin-bottom: 18px;
  word-break: keep-all;
}

.emergency__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 36px;
}

.emergency__cols > div {
  padding: 18px 20px;
  background: var(--paper);
  border-radius: 14px;
}

.emergency__label {
  display: inline-block;
  margin-bottom: 6px;
  padding: 0 10px;
  font-size: 14px;
  color: var(--paper);
  background: var(--choco);
  border-radius: 4px;
}

.emergency__cols p {
  font-size: 15px;
}

.emergency__tel {
  display: inline-block;
  margin-top: 6px;
  padding: 4px 0;
  font-family: var(--font-hand);
  font-size: 28px;
  letter-spacing: 0.04em;
  color: var(--pink-ink);
  border-bottom: 3px dotted var(--pink-ink);
}

.emergency__check {
  margin-top: 18px;
  font-size: 15px;
}

/* ---------- 予約・相談 ---------- */
.contact {
  padding: 88px 0;
  background: var(--cream-deep);
}

.contact__inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: start;
}

.contact__side > p {
  margin: 12px 0 20px;
  font-size: 15px;
}

.contact__btns {
  display: grid;
  gap: 12px;
}

.cbtn {
  display: grid;
  min-height: 64px;
  padding: 12px 22px;
  font-family: var(--font-hand);
  font-size: 22px;
  line-height: 1.3;
  background: var(--paper);
  border: var(--dot);
  border-radius: 16px;
  transition: transform 0.2s var(--press);
}

.cbtn small {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--choco-soft);
}

.cbtn:hover {
  transform: translateY(-2px);
}

.cbtn--tel {
  font-size: 28px;
  color: var(--paper);
  background: var(--choco);
  border-color: var(--choco);
}

.cbtn--tel small {
  color: var(--cream-deep);
}

.cbtn--line {
  background: var(--pink);
  border-color: var(--choco);
}

.cbtn--line small {
  color: var(--choco);
}

.contact__pic {
  margin-top: 24px;
  width: 76%;
  padding: 8px;
  background: var(--paper);
  transform: rotate(2deg);
  box-shadow: 0 4px 12px rgba(90, 58, 40, 0.14);
}

/* 問診票ふうのフォーム */
.sheet {
  position: relative;
  padding: 34px 32px 28px;
  background: var(--paper);
  border-radius: 6px;
  box-shadow: 0 8px 0 rgba(90, 58, 40, 0.1);
}

.sheet::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: var(--dash);
  pointer-events: none;
}

.sheet__title {
  font-family: var(--font-hand);
  font-weight: 400;
  font-size: 24px;
}

.sheet__note {
  margin: 2px 0 16px;
  font-size: 14px;
  color: var(--choco-soft);
}

.row {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 4px;
  margin-bottom: 16px;
}

.row--half {
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.row--half > div {
  display: grid;
  gap: 4px;
}

.row label {
  font-size: 15px;
}

.row em {
  margin-left: 6px;
  font-style: normal;
  font-size: 12px;
  color: var(--pink-ink);
}

/* 入力欄は点線の下線だけ（紙に書きこむ感じ） */
.row input,
.row select,
.row textarea {
  width: 100%;
  min-height: 46px;
  padding: 8px 10px;
  font-size: 16px;
  background: var(--cream);
  border: none;
  border-bottom: var(--dot);
  border-radius: 6px 6px 0 0;
}

.row textarea {
  resize: vertical;
  line-height: 1.7;
}

.row input:focus,
.row select:focus,
.row textarea:focus {
  outline: none;
  background: var(--pink-soft);
  border-bottom-color: var(--pink-ink);
}

.sheet .btn {
  position: relative;
  z-index: 1;
}

.sheet__msg {
  position: relative;
  z-index: 1;
  min-height: 1.6em;
  margin-top: 12px;
  font-size: 15px;
  color: var(--pink-ink);
}

/* ---------- アクセス ---------- */
.access {
  padding: 88px 0 40px;
}

.access__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.access__map {
  padding: 10px;
  border: var(--dot);
  border-radius: 20px;
  background: var(--paper);
}

.access__map iframe {
  display: block;
  width: 100%;
  height: 360px;
  border: 0;
  border-radius: 12px;
}

.access__dl {
  display: grid;
  grid-template-columns: 74px 1fr;
  margin-top: 8px;
}

.access__dl dt,
.access__dl dd {
  padding: 12px 0;
  font-size: 15px;
  border-bottom: var(--dash);
}

.access__dl dt {
  font-family: var(--font-hand);
  font-size: 18px;
  color: var(--pink-ink);
}

.access__dl a {
  display: inline-block;
  padding: 10px 0;
  margin: -10px 0;
  border-bottom: 2px dotted var(--choco);
}

/* ---------- Footer ---------- */
.footer {
  padding: 44px 0 36px;
  background: var(--choco);
  color: var(--cream);
  text-align: center;
}

.footer__name {
  font-family: var(--font-hand);
  font-size: 24px;
}

.footer__addr {
  font-size: 14px;
  opacity: 0.9;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 20px;
  margin: 12px 0;
}

.footer__nav a {
  display: inline-block;
  padding: 10px 4px;
  font-size: 14px;
  border-bottom: 2px dotted transparent;
}

.footer__nav a:hover {
  border-bottom-color: var(--pink);
}

.footer__copy {
  font-size: 12px;
  opacity: 0.75;
}

.to-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  fill: var(--choco);
  background: var(--pink);
  border-radius: 50%;
  opacity: 0;
  visibility: hidden;
  transform: rotate(-12deg) translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s var(--press), visibility 0.3s;
}

.to-top.is-show {
  opacity: 1;
  visibility: visible;
  transform: rotate(-12deg);
}

.to-top:hover {
  transform: rotate(-12deg) translateY(-3px);
}

/* ---------- Scroll reveal（すっと浮かんで出る。跳ねない） ----------
   html.js-paw のときだけ隠す＝JSが動かなければ最初から見える
   要素自身の rotate とぶつからないよう translate プロパティで動かす */
.js-paw [data-stamp] {
  transition:
    opacity 0.7s ease-out,
    translate 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js-paw [data-stamp]:not(.is-visible) {
  opacity: 0;
  translate: 0 18px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav__link {
    padding: 8px 8px;
    font-size: 14px;
  }
}

@media (max-width: 960px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    inset: 0;
    z-index: 105;
    display: grid;
    place-items: center;
    background:
      radial-gradient(circle, rgba(90, 58, 40, 0.08) 1.5px, transparent 2px) 0 0 / 22px 22px,
      var(--cream);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-16px);
    transition:
      opacity 0.3s ease-out,
      transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1),
      visibility 0.3s;
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav__list {
    flex-direction: column;
    gap: 4px;
  }

  .nav__link {
    padding: 12px 24px;
    font-family: var(--font-hand);
    font-size: 22px;
    text-align: center;
  }

  .nav__link--cta {
    margin: 12px 0 0;
  }

  body.nav-open {
    overflow: hidden;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    padding-top: 32px;
  }

  .hero__pics {
    max-width: 520px;
    width: 100%;
    margin: 0 auto;
  }

  .hello__inner,
  .hours__inner,
  .menu__inner,
  .flow__inner,
  .contact__inner,
  .access__inner {
    grid-template-columns: 1fr;
  }

  .hello__pic {
    max-width: 260px;
    margin: 0 auto;
  }

  .flow__head {
    position: static;
  }

  .menu__pics {
    grid-template-columns: repeat(3, 1fr);
  }

  .snap--a {
    grid-column: auto;
  }

  .facility__strip {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(250px, 42%);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 var(--gutter);
    padding-bottom: 28px;
    -webkit-overflow-scrolling: touch;
  }

  .fac {
    scroll-snap-align: start;
  }

  .fac:nth-child(even) {
    transform: rotate(1.5deg);
  }

  .contact__pic {
    display: none;
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 64px;
  }

  body {
    font-size: 15px;
  }

  .sp-only {
    display: inline;
  }

  .pc-only {
    display: none;
  }

  .section-title {
    font-size: 28px;
  }

  .logo__stamp {
    width: 40px;
    height: 40px;
  }

  .logo__text {
    font-size: 16px;
  }

  .hero__inner {
    padding-bottom: 96px;
  }

  .hero__title {
    font-size: 38px;
  }

  .hero__lead {
    font-size: 15px;
  }

  .hero__btns .btn {
    flex: 1 1 100%;
  }

  .stamp--hero {
    width: 92px;
    height: 92px;
    left: 0;
  }

  .stamp--hero strong {
    font-size: 22px;
  }

  .stamp--hero span {
    font-size: 11px;
  }

  .polaroid--main {
    width: 84%;
  }

  .polaroid--main figcaption {
    padding-left: 40%;
    font-size: 14px;
    line-height: 1.5;
  }

  .polaroid--sub figcaption {
    font-size: 14px;
  }

  .paw-trail svg {
    width: 20px;
    height: 20px;
  }

  .paw-trail svg:nth-child(n + 8) {
    display: none;
  }

  .hello {
    padding-bottom: 64px;
  }

  .hello__note {
    padding: 26px 22px;
  }

  .hours {
    padding: 56px 0;
  }

  .card-ticket {
    padding: 24px 18px 20px;
  }

  .stamp--status {
    width: 84px;
    height: 84px;
  }

  .stamp--status strong {
    font-size: 16px;
  }

  .stamp--status span {
    font-size: 11px;
  }

  .days th,
  .days td {
    padding: 8px 4px;
    font-size: 15px;
  }

  .days thead th small {
    font-size: 12px;
  }

  .days tbody th {
    width: 32%;
    font-size: 19px;
  }

  .days tr.is-today th::before {
    left: 2px;
    width: 18px;
    height: 18px;
    margin-top: -9px;
  }

  .days tr.is-today th::after {
    right: 0;
    font-size: 11px;
  }

  .days td small {
    display: block;
    margin: 0;
    font-size: 12px;
    line-height: 1.2;
  }

  .board {
    padding: 40px 18px 20px;
  }

  .board__list li {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .animals {
    padding: 64px 0 56px;
  }

  .animals__list {
    gap: 20px 12px;
  }

  .ani {
    width: calc(50% - 6px);
  }

  .ani__ring {
    width: 124px;
    height: 124px;
  }

  .animals__note {
    font-size: 14px;
  }

  .notebook {
    padding: 28px 16px 20px 46px;
    background:
      linear-gradient(90deg, transparent 34px, var(--pink) 34px 36px, transparent 36px),
      repeating-linear-gradient(transparent 0 35px, var(--rule) 35px 36px),
      var(--paper);
  }

  .notebook::before {
    left: 9px;
  }

  .menu__pics {
    grid-template-columns: 1fr 1fr;
  }

  .snap--a {
    grid-column: 1 / -1;
  }

  .notebook__list li {
    padding-left: 28px;
  }

  .notebook__list strong {
    font-size: 19px;
  }

  .notebook__list span {
    font-size: 14px;
  }

  .flow {
    padding: 64px 0;
  }

  .steps::before {
    left: 20px;
  }

  .step {
    grid-template-columns: 58px 1fr;
    gap: 14px;
  }

  .step__no {
    width: 58px;
    height: 58px;
    font-size: 26px;
  }

  .step h3 {
    font-size: 20px;
    margin-top: 6px;
  }

  .step p {
    font-size: 14px;
  }

  .facility {
    padding: 64px 0;
  }

  .facility__strip {
    grid-auto-columns: 78%;
    gap: 14px;
  }

  .staff__grid {
    grid-template-columns: 1fr;
  }

  .member--boss {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .member__pic {
    margin: 0 8px;
  }

  .member__name {
    font-size: 25px;
  }

  .emergency__box {
    padding: 36px 18px 22px;
  }

  .stamp--urgent {
    width: 66px;
    height: 66px;
    right: 14px;
    top: -26px;
  }

  .stamp--urgent strong {
    font-size: 28px;
  }

  .emergency__cols {
    grid-template-columns: 1fr;
  }

  .emergency__tel {
    font-size: 26px;
  }

  .contact {
    padding: 64px 0;
  }

  .cbtn {
    font-size: 20px;
  }

  .cbtn--tel {
    font-size: 26px;
  }

  .sheet {
    padding: 28px 18px 22px;
  }

  .row--half {
    grid-template-columns: 1fr;
  }

  .access {
    padding-top: 64px;
  }

  .access__map iframe {
    height: 280px;
  }

  .access__dl {
    grid-template-columns: 64px 1fr;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
  }

  .js-paw [data-stamp],
  .js-paw .hero__title span,
  .js-paw .hero__lead,
  .js-paw .hero__btns,
  .js-paw .polaroid,
  .js-paw .stamp--hero {
    opacity: 1 !important;
    translate: none !important;
    animation: none !important;
  }

  /* 足あとは止めて、うっすら表示だけ */
  .paw-trail.is-walking svg {
    opacity: 0.18 !important;
    animation: none !important;
  }
}
