/* little・zoo ＆ ‘ilio デザイン案 v2「生まれた日から、おうちへ行く日まで。」
   ブリーダーさんの手元にある「子猫・子犬の成長のきろく」そのものを、ページにする。
   - 2026-10-19 v2.1：先方のロゴ（ピンクの輪の中で寄りそう子猫と子犬。ピンク #FCC0C0 × ココアの線 #B08478）と
     ヒアリングの「パステルな感じ・可愛い感じ」に合わせて、色と文字を変えた。
   - 紙：区画ごとに パステルの方眼紙（いちごミルク・バター・ミント・白）。文字は ココア色。しるしは ローズの朱肉。
   - 文字：印刷の部分は 丸ゴシック（Zen Maru Gothic。ロゴの丸い字に合わせた）、書きこんだ部分は手書き（Zen Kurenaido）、印鑑は Yuji Syuku、体重計の数字は自作の液晶。
   - 主役（体重のきろく）以外は静かに。角丸のカードの並び・回るバッジ・ふきだし・波の区切りは使わない。 */

:root {
  --paper: #FFFCFB;
  --grid: #F3E6E3;
  --grid2: #EBD6D2;
  --ink: #4E3B36;
  --ink2: #7A6460;
  --ink3: #A38D88;
  --rule: #E3D2CD;
  --pencil: #4A4042;
  --shu: #DE5466;
  --pink: #F9C2C6;
  --pink-l: #FFF6F6;
  --pink-d: #CF6B7C;
  --aqua: #B6E0D6;
  --aqua-l: #F1FAF7;
  --aqua-d: #3E8E80;
  --butter: #FBE7A1;
  --lav: #DCD2F2;
  --hl: #FFEF8E;
  --cocoa: #B08478;
  --line-green: #06C755;

  --ff: 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', 'Yu Gothic', sans-serif;
  --ff-hand: 'Zen Kurenaido', 'Klee One', cursive;
  --ff-seal: 'Yuji Syuku', serif;

  --gx: clamp(16px, 5vw, 72px);
  --max: 1120px;
  --hd: 64px;
  --ease: cubic-bezier(.22, .8, .24, 1);
}
@media (max-width: 899px) { :root { --hd: 56px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hd) + 16px); }
body {
  margin: 0;
  color: var(--ink);
  font: 500 15.5px/1.95 var(--ff);
  letter-spacing: .03em;
  font-feature-settings: 'palt' 1;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  /* 方眼紙：細い線 4mm ごと、少し濃い線 5本ごと */
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid2) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid2) 1px, transparent 1px),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: -1px -1px;
}
@media (max-width: 899px) { body { background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px; font-size: 15px; } }
/* 区画ごとのパステルの方眼紙 */
.paper { --pg1: var(--grid); --pg2: var(--grid2); background-color: var(--pbg, var(--paper)); background-image: linear-gradient(var(--pg2) 1px, transparent 1px), linear-gradient(90deg, var(--pg2) 1px, transparent 1px), linear-gradient(var(--pg1) 1px, transparent 1px), linear-gradient(90deg, var(--pg1) 1px, transparent 1px); background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px; background-position: -1px -1px; }
.paper--pink { --pbg: #FFF7F7; --pg1: #F8E4E6; --pg2: #F3D2D6; }
.paper--butter { --pbg: #FFFCEF; --pg1: #F6EDCB; --pg2: #EFE1B0; }
.paper--mint { --pbg: #F4FBF8; --pg1: #DDEFE8; --pg2: #C8E5DA; }
@media (max-width: 899px) { .paper { background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px; } }
/* 見出しの蛍光ペン（パステル） */
.hl { background: linear-gradient(transparent 58%, var(--hc) 58%, var(--hc) 92%, transparent 92%); color: inherit; padding: 0 .08em; }
.hl--pink { --hc: #F9C9CE; }
.hl--butter { --hc: #FCE79A; }
.hl--mint { --hc: #BFE6DB; }
.hl--lav { --hc: #DCD2F4; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
w-b, .nw { display: inline-block; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 6px; }
.skip:focus { top: 12px; }
.hand { font-family: var(--ff-hand); font-weight: 400; letter-spacing: .04em; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
:focus-visible { outline: 2px solid var(--shu); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: calc(var(--max) + var(--gx) * 2); margin: 0 auto; padding-inline: var(--gx); }
main > section:not(.rec) { padding-block: clamp(88px, 11vw, 150px); }

/* 見出し：手書きの見出しが、印刷の罫線にのる */
.ttl { font-family: var(--ff-hand); font-weight: 400; font-size: clamp(30px, 3.5vw, 46px); line-height: 1.3; letter-spacing: .03em; padding-bottom: 14px; border-bottom: 1.5px solid var(--ink); }
.ttl small { display: inline-block; margin-left: 16px; font: 700 12px/1 var(--ff); letter-spacing: .14em; color: var(--ink3); vertical-align: .4em; }
.ttl { border-bottom-color: var(--ink2); }
.lead { margin-top: 20px; max-width: 40em; color: var(--ink2); font-size: 16px; }
.note { margin-top: 18px; font-size: 12.5px; line-height: 1.8; color: var(--ink3); }
@media (max-width: 899px) { .lead { font-size: 15px; } }

/* ボタン */
.btn { --bc: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px; border-radius: 10px; background: var(--bc); color: #fff; text-decoration: none; font: 700 15px/1.2 var(--ff); letter-spacing: .06em; transition: transform .3s var(--ease), box-shadow .3s; box-shadow: 0 2px 0 rgba(0, 0, 0, .14); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 5px 0 rgba(0, 0, 0, .12); }
.btn--line { --bc: var(--line-green); }
.btn--tel { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1.8px var(--ink); }
.btn--tel:hover { box-shadow: inset 0 0 0 1.8px var(--ink), 0 4px 0 rgba(0, 0, 0, .08); }
.btn--big { min-height: 62px; padding: 0 30px; font-size: 17px; }

/* ── ヘッダー ── */
.hd { position: fixed; inset: 0 0 auto; z-index: 60; height: var(--hd); display: flex; align-items: center; gap: 22px; padding: 0 var(--gx); background: rgba(255, 251, 250, .95); border-bottom: 1px solid var(--rule); }
.hd__brand { display: flex; align-items: center; gap: 12px; margin-right: auto; text-decoration: none; }
.hd__logo { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.hd__name { font: 700 15px/1 var(--ff); letter-spacing: .06em; white-space: nowrap; }
.hd__name i { font-style: normal; color: var(--ink3); margin: 0 .15em; }
.hd__nav { display: flex; gap: clamp(14px, 1.7vw, 26px); }
.hd__nav a { font: 700 13px/1 var(--ff); letter-spacing: .08em; text-decoration: none; padding: 8px 0; background: linear-gradient(var(--hl), var(--hl)) 0 85% / 0 8px no-repeat; transition: background-size .35s var(--ease); }
.hd__nav a:hover { background-size: 100% 8px; }
.hd__line { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border-radius: 8px; background: var(--line-green); color: #fff; text-decoration: none; font: 700 13.5px/1 var(--ff); letter-spacing: .06em; }
.hd__line svg { width: 20px; height: 20px; }
.hd__menu { display: none; }
@media (max-width: 1099px) { .hd__nav { display: none; } }
@media (max-width: 899px) {
  .hd { gap: 10px; }
  .hd__logo { width: 38px; height: 38px; }
  .hd__name { font-size: 13.5px; }
  .hd__line { display: none; }
  .hd__menu { display: block; height: 38px; padding: 0 14px; border: 0; border-radius: 8px; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--ink); font: 700 13px/1 var(--ff); letter-spacing: .1em; cursor: pointer; }
  .hd__menu[aria-expanded="true"] { background: var(--ink); color: #fff; }
}
.capture .hd { position: absolute; }

/* もくじ（スマホ） */
.toc { position: fixed; inset: var(--hd) 0 0; z-index: 55; padding: 28px var(--gx) 40px; background-color: var(--paper); overflow-y: auto; display: flex; flex-direction: column; gap: 26px; }
.toc[hidden] { display: none; }
.toc__ttl { font: 700 12px/1 var(--ff); letter-spacing: .3em; color: var(--ink3); padding-bottom: 12px; border-bottom: 3px double var(--ink); }
.toc ol { counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc li a { display: flex; align-items: baseline; gap: 14px; padding: 15px 2px; border-bottom: 1px solid var(--rule); text-decoration: none; font-family: var(--ff-hand); font-size: 22px; }
.toc li a::before { content: counter(toc); font: 700 12px/1 var(--ff); color: var(--ink3); width: 1.2em; }

/* ── 体重のきろく（主役） ── */
.rec { position: relative; height: 430vh; }
.rec__stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
/* 方眼紙は、貼り付いた画面のほうに敷く（スクロールで紙が流れないように） */
.rec.paper { background-image: none; }
.rec__stage { background-color: var(--pbg); background-image: linear-gradient(var(--pg2) 1px, transparent 1px), linear-gradient(90deg, var(--pg2) 1px, transparent 1px), linear-gradient(var(--pg1) 1px, transparent 1px), linear-gradient(90deg, var(--pg1) 1px, transparent 1px); background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px; background-position: -1px -1px; }
@media (max-width: 899px) { .rec__stage { background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px; } }
.rec__head { position: absolute; left: var(--gx); top: calc(var(--hd) + 3.2vh); width: min(64vw, 900px); z-index: 3; }
.rec__form { display: flex; align-items: center; gap: 14px; font: 700 12px/1 var(--ff); letter-spacing: .14em; color: var(--ink2); }
.rec__form span:first-child { padding: 6px 10px 5px; border: 1.5px solid var(--ink); color: var(--ink); }
.rec__title { margin-top: 2.4vh; font-family: var(--ff-hand); font-weight: 400; font-size: clamp(40px, min(5vw, 8.2vh), 78px); line-height: 1.24; letter-spacing: .02em; }
.rec__lead { margin-top: 1.8vh; font-size: 16px; color: var(--ink2); }

.rec__panel { position: absolute; right: var(--gx); top: calc(var(--hd) + 3.2vh); width: 300px; z-index: 3; }
/* キッチンスケールの表示 */
.scale { background: #fff; border-radius: 14px; padding: 12px 14px; box-shadow: 0 1px 2px rgba(60, 35, 30, .12), 0 16px 28px -18px rgba(60, 35, 30, .45), inset 0 0 0 1px rgba(60, 35, 30, .08); transition: opacity .5s, transform .6s var(--ease); }
.scale__row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 6px; background: #C6D6C7; box-shadow: inset 0 2px 5px rgba(20, 40, 25, .28); }
.scale__row + .scale__row { margin-top: 8px; }
.scale__lab { font: 700 11px/1.3 var(--ff); letter-spacing: .1em; color: #3F5546; writing-mode: vertical-rl; }
.scale__num { display: flex; gap: 5px; margin-left: auto; }
.scale__num svg { width: 28px; height: 48px; }
.scale__row--day .scale__num svg { width: 20px; height: 34px; }
.scale__unit { font: 700 16px/1 var(--ff); color: #23332A; width: 1.2em; }
.seg { fill: #22302A; transition: opacity .12s; }
.seg.off { opacity: .07; }
.rec__note { margin-top: 18px; padding-left: 14px; border-left: 2px solid var(--ink); min-height: 92px; transition: opacity .3s; }
.rec__note-ph { display: none; }
.rec__note-ttl { font-family: var(--ff-hand); font-size: 23px; line-height: 1.35; }
.rec__note-ttl small { font: 700 11px/1 var(--ff); letter-spacing: .12em; color: var(--shu); margin-right: 10px; vertical-align: .3em; }
.rec__note-txt { margin-top: 6px; font-size: 13.5px; line-height: 1.85; color: var(--ink2); }
.rec__note.is-swap { opacity: 0; }
.rec__panel .rec__final { position: absolute; top: -6px; right: 30px; width: 214px; opacity: 0; transform: translateY(-30px) rotate(10deg) scale(.9); transition: opacity .5s, transform .9s cubic-bezier(.3, 1.5, .5, 1); pointer-events: none; }
.rec.is-home .rec__final { opacity: 1; transform: rotate(var(--r)); }
.rec.is-home .scale, .rec.is-home .rec__note { opacity: 0; transform: translateY(-8px); }

.rec__chart { position: absolute; left: var(--gx); right: var(--gx); top: 47%; bottom: 10%; z-index: 2; }
.chart { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.chart .ax { fill: none; stroke: var(--ink2); stroke-width: 1.4; stroke-linecap: round; stroke-dasharray: 2000; stroke-dashoffset: 2000; animation: drawAx 1.4s var(--ease) .15s forwards; }
@keyframes drawAx { to { stroke-dashoffset: 0; } }
.capture .chart .ax, .reduced .chart .ax { animation: none; stroke-dashoffset: 0; }
.chart .tick { fill: none; stroke: var(--ink3); stroke-width: 1; }
.chart .lab { font: 400 11px var(--ff); fill: var(--ink3); letter-spacing: .04em; }
.chart .lab--b { font-weight: 700; fill: var(--ink2); }
.chart .hl { fill: var(--hl); mix-blend-mode: multiply; }
.chart .hl-t { font: 400 17px var(--ff-hand); fill: var(--ink); }
.chart .goal { fill: none; stroke: var(--ink3); stroke-width: 1.4; stroke-dasharray: 2 6; stroke-linecap: round; }
.chart .goal-t { font: 400 15px var(--ff-hand); fill: var(--ink2); }
.chart .pencil { fill: none; stroke: var(--pencil); stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.chart .pencil2 { fill: none; stroke: var(--pencil); stroke-width: 1.1; stroke-opacity: .5; stroke-linecap: round; }
.chart .dot { fill: var(--pencil); }
/* えんぴつ */
.chart .pen__body { fill: #F4C542; }
.chart .pen__line { stroke: #D9A520; stroke-width: 1.2; }
.chart .pen__wood { fill: #F1D3A8; }
.chart .pen__lead { fill: var(--pencil); }
.chart .pen__band { fill: #B9BEC2; }
.chart .pen__eraser { fill: #F2A1B1; }
.chart .pen { filter: drop-shadow(0 3px 2px rgba(60, 35, 30, .18)); transition: opacity .4s; }
.rec.is-home .chart .pen { opacity: 0; }
/* 体重計の電源が入るまで */
.rec.is-boot .seg.off { opacity: .07; }
.rec.is-boot .scale__row { animation: lcdOn .65s steps(2) 1; }
@keyframes lcdOn { 0%, 40% { filter: brightness(.82); } 41%, 100% { filter: none; } }
/* 日付印を押したときのゆれ */
.rec__stage.is-thud .rec__chart { animation: thud .32s ease-out .18s 1; }
@keyframes thud { 30% { transform: translate(1.5px, 2px); } 60% { transform: translate(-1px, -1px); } }
.chart .mk { fill: var(--paper); stroke: var(--shu); stroke-width: 2; opacity: 0; transition: opacity .3s; }
.chart .mk.on { opacity: 1; }
.chart .mk-t { font: 400 13px var(--ff-hand); fill: var(--shu); opacity: 0; transition: opacity .3s; }
.chart .mk-t.on { opacity: 1; }

/* グラフにチェキを貼る（PC） */
.rec__prints { position: absolute; inset: 0; pointer-events: none; }
.rec__prints .print { position: absolute; width: var(--pw, 132px); padding: 7px 7px 0; opacity: 0; transform: translateY(-26px) rotate(calc(var(--r) * 3)) scale(.92); transition: opacity .35s, transform .7s cubic-bezier(.3, 1.45, .5, 1); }
.rec__prints .print.on { opacity: 1; transform: rotate(var(--r)); }
.rec__prints .print figcaption { font-size: 14px; padding: 5px 2px 7px; }
.rec__prints .print::before { width: 54px; height: 17px; margin-left: -27px; top: -9px; }

/* 日付印「おうちへ」 */
.rec__stamp { position: absolute; width: 132px; height: 132px; margin: -66px 0 0 -66px; left: var(--sx, 90%); top: var(--sy, 10%); color: var(--shu); opacity: 0; transform: scale(1.7) rotate(-24deg); pointer-events: none; -webkit-mask: url(images/grain.png) 0 0 / 128px; mask: url(images/grain.png) 0 0 / 128px; }
.rec__stamp svg { width: 100%; height: 100%; display: block; }
.rec.is-home .rec__stamp { animation: thump .55s cubic-bezier(.2, .9, .3, 1.2) forwards; }
@keyframes thump { 0% { opacity: 0; transform: scale(1.7) rotate(-24deg); } 55% { opacity: .95; transform: scale(.94) rotate(-13deg); } 75% { transform: scale(1.03) rotate(-14deg); } 100% { opacity: .92; transform: scale(1) rotate(-14deg); } }

.rec__hint { position: absolute; left: 50%; bottom: 1.6vh; z-index: 4; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 2px; font-family: var(--ff-hand); font-size: 15px; color: var(--ink2); transition: opacity .4s; }
.rec__hint svg { width: 16px; height: 28px; fill: none; stroke: var(--ink2); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; animation: nudge 2.2s var(--ease) infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
.rec.is-going .rec__hint { opacity: 0; }

@media (max-width: 899px) {
  .rec { height: 400vh; }
  .rec__stage { display: flex; flex-direction: column; gap: 10px; padding: calc(var(--hd) + 12px) 16px 12px; }
  .rec__head, .rec__panel, .rec__chart { position: relative; inset: auto; width: auto; }
  .rec__form { gap: 10px; font-size: 11px; }
  .rec__title { margin-top: 12px; font-size: clamp(29px, 8.6vw, 38px); line-height: 1.3; }
  .rec__lead { margin-top: 6px; font-size: 13.5px; line-height: 1.75; }
  .rec__panel { display: grid; grid-template-columns: 1fr; gap: 8px; }
  .scale { display: flex; gap: 8px; padding: 6px; border-radius: 10px; }
  .scale__row { flex: 1; padding: 5px 8px; }
  .scale__row + .scale__row { margin-top: 0; }
  .scale__row--day { flex: .62; }
  .scale__num svg { width: 18px; height: 30px; }
  .scale__row--day .scale__num svg { width: 18px; height: 30px; }
  .scale__unit { font-size: 13px; }
  .rec__note { margin-top: 0; display: grid; grid-template-columns: 72px 1fr; column-gap: 12px; align-items: start; min-height: 0; padding-left: 0; border-left: 0; }
  .rec__note-ph { display: block; grid-row: span 2; width: 72px; padding: 4px 4px 12px; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .12), 0 8px 14px -10px rgba(0, 0, 0, .4); transform: rotate(-3deg); }
  .rec__note-ph img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
  .rec__note-ttl { font-size: 19px; }
  .rec__note-txt { margin-top: 2px; font-size: 12.5px; line-height: 1.7; }
  .rec__final { display: none; }
  .rec.is-home .scale, .rec.is-home .rec__note { opacity: 1; transform: none; }
  .rec__chart { flex: 1; min-height: 150px; margin-bottom: 20px; }
  .rec__prints { display: none; }
  .rec__stamp { width: 96px; height: 96px; margin: -48px 0 0 -48px; }
  .rec__hint { display: none; }
  .chart .lab { font-size: 10px; }
  .chart .hl-t { font-size: 13.5px; }
  .chart .goal-t { font-size: 12px; }
}

/* ── チェキ（共通） ── */
.print { position: relative; background: #fff; padding: 9px 9px 0; box-shadow: 0 1px 2px rgba(60, 35, 30, .12), 0 16px 28px -18px rgba(60, 35, 30, .5); transform: rotate(var(--r, 0deg)); }
.print img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.print figcaption { font-family: var(--ff-hand); font-size: 16px; line-height: 1.4; padding: 9px 4px 12px; text-align: center; color: var(--ink); }
.print:not(:has(figcaption)) { padding-bottom: 28px; }
/* マスキングテープ */
.print::before { content: ''; position: absolute; z-index: 2; left: 50%; top: -12px; width: 78px; height: 22px; margin-left: -39px; background: var(--tape, rgba(166, 219, 212, .78)); transform: rotate(-3deg); clip-path: polygon(2% 8%, 98% 0, 100% 46%, 97% 100%, 3% 92%, 0 50%); }
.print:nth-of-type(3n+2)::before, .baby:nth-child(even) .print::before { --tape: rgba(245, 192, 203, .82); transform: rotate(4deg); }
.print:nth-of-type(3n)::before { --tape: rgba(255, 242, 122, .8); transform: rotate(-6deg); }
.print--wide img { aspect-ratio: 16 / 10; }

/* 出てくる動き（静かに） */
[data-in] { opacity: 0; transform: translateY(18px) rotate(var(--r, 0deg)); transition: opacity .9s var(--ease), transform .9s var(--ease); }
[data-in].is-in { opacity: 1; transform: rotate(var(--r, 0deg)); }
.capture [data-in], .reduced [data-in] { opacity: 1; transform: rotate(var(--r, 0deg)); transition: none; }

/* 印鑑・スタンプ：朱肉のかすれ。見えたら ポンと押す */
.seal, .stamp, .award { color: var(--shu); -webkit-mask: url(images/grain.png) 0 0 / 128px; mask: url(images/grain.png) 0 0 / 128px; }
.js-stamp { opacity: 0; }
.js-stamp.is-stamped { animation: press .5s cubic-bezier(.2, .9, .3, 1.2) forwards; }
@keyframes press { 0% { opacity: 0; scale: 1.6; } 60% { opacity: .95; scale: .95; } 100% { opacity: .92; scale: 1; } }
.capture .js-stamp, .reduced .js-stamp { opacity: .92; animation: none; }

/* 余白の書きこみ（えんぴつ） */
.memo { font-size: 17px; line-height: 1.5; color: var(--ink2); display: flex; align-items: flex-end; gap: 6px; transform: rotate(-2deg); }
.memo svg { width: 46px; height: 30px; flex: none; fill: none; stroke: var(--ink2); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.memo--babies { margin: -6px 0 18px 4px; }
.memo--babies svg { transform: scaleY(-1) rotate(8deg); order: -1; }
.memo--vow { position: absolute; left: 10px; bottom: -40px; transform: rotate(-3deg); font-size: 16px; }
.memo--voices { justify-content: flex-end; margin: 18px 0 -8px; transform: rotate(-1.5deg); }
@media (max-width: 899px) { .memo { font-size: 15px; } .memo--vow { position: static; margin-top: 18px; } .memo--voices { justify-content: flex-start; } .memo--voices svg { display: none; } }

/* 記入欄 */
.field > div { display: grid; grid-template-columns: 6.6em 1fr; align-items: end; gap: 14px; padding: 11px 0 9px; border-bottom: 1px solid var(--rule); }
.field dt { font: 700 11.5px/1.6 var(--ff); letter-spacing: .12em; color: var(--ink3); }
.field dd { font-size: 15px; line-height: 1.7; }
.field dd.hand, .field .hand { font-size: 21px; line-height: 1.3; }
.field--row { display: flex; flex-wrap: wrap; gap: 0 28px; }
.field--row > div { grid-template-columns: auto auto; gap: 12px; border-bottom: 0; padding: 4px 0; }

/* ── 育てている人 ── */
.years { display: flex; flex-wrap: wrap; gap: 14px 48px; margin-top: 26px; }
.years > div { display: flex; align-items: baseline; gap: 14px; padding: 6px 18px 4px 0; border-bottom: 1.5px solid var(--ink2); }
.years dt { font: 700 12px/1 var(--ff); letter-spacing: .14em; color: var(--ink3); }
.years dd { font: 700 15px/1 var(--ff); }
.years b { font-size: clamp(38px, 4vw, 52px); font-weight: 400; line-height: 1; margin-right: 4px; color: var(--ink); }
.people__grid { display: grid; grid-template-columns: .82fr 1fr 1fr; gap: clamp(28px, 4vw, 56px); margin-top: clamp(40px, 5vw, 64px); align-items: start; }
.people__photo { margin-top: 18px; }
.person__hd { display: flex; align-items: center; gap: 16px; padding-bottom: 14px; }
.person__hd img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px #fff, 0 0 0 4.5px var(--c), 0 8px 16px -10px rgba(0, 0, 0, .4); }
.person--cat { --c: var(--pink); --cd: var(--pink-d); }
.person--dog { --c: var(--aqua); --cd: var(--aqua-d); }
.person__brand { font: 700 24px/1.2 var(--ff); letter-spacing: .02em; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.person__brand small { font-size: 11.5px; letter-spacing: .14em; color: var(--ink3); }
.person__role { margin-top: 6px; font: 700 12px/1.6 var(--ff); letter-spacing: .06em; color: var(--cd); }
.person .field { border-top: 1.5px solid var(--ink); }
.person .field dd { display: flex; align-items: center; gap: 12px; }
.seal { width: 46px; height: 46px; flex: none; transform: rotate(-9deg); }
.person__text { margin-top: 18px; font-size: 15px; }
.ig { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font: 700 13.5px/1 var(--ff); letter-spacing: .04em; text-decoration: none; }
.ig svg { width: 20px; height: 20px; }
.ig small { margin-left: 6px; font-size: 11px; color: var(--ink3); }
.ig:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 899px) {
  .people__grid { grid-template-columns: 1fr; gap: 44px; }
  .people__photo { width: 72%; margin: 6px auto 0; }
}

/* ── いま、家族を待っている子（手帳のインデックス） ── */
.book { margin-top: clamp(40px, 5vw, 60px); }
.book__tabs { display: flex; gap: 6px; padding-left: clamp(12px, 3vw, 28px); }
.tab { --tc: var(--aqua); position: relative; top: 5px; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 12px 24px 12px; border: 0; border-radius: 12px 12px 0 0; background: var(--tc); cursor: pointer; font-family: var(--ff-hand); font-size: 22px; line-height: 1.1; opacity: .62; transition: top .3s var(--ease), opacity .3s, padding .3s; }
.tab small { font: 700 11px/1 var(--ff); letter-spacing: .1em; color: rgba(0, 0, 0, .55); }
.tab--cat { --tc: var(--pink); }
.tab[aria-selected="true"] { top: 0; opacity: 1; padding-bottom: 17px; }
.tab:hover { opacity: .9; }
.book__page { position: relative; z-index: 1; padding: clamp(30px, 4vw, 54px) clamp(20px, 4vw, 54px); border-radius: 4px 16px 16px 16px; border-top: 8px solid var(--tc); box-shadow: 0 1px 2px rgba(60, 35, 30, .08), 0 26px 44px -34px rgba(60, 35, 30, .5); }
.book__page--dog { --tc: var(--aqua); background: var(--aqua-l); }
.book__page--cat { --tc: var(--pink); background: var(--pink-l); }
.book__page[hidden] { display: none; }
.book__page.is-enter { animation: pageIn .55s var(--ease) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(12px); } }

.babies { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 2.6vw, 34px); }
.babies--sample { grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3.4vw, 48px); }
.status { position: relative; padding: 4px 0 30px; border-bottom: 1px dashed var(--ink3); }
.status__big { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.45; padding-right: 110px; }
.status__txt { margin-top: 10px; color: var(--ink2); max-width: 36em; }
.status__links { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 28px; margin-top: 22px; }
.minbri { font: 700 14px/1.5 var(--ff); text-decoration: none; border-bottom: 1.5px solid currentColor; }
.minbri::after { content: ' →'; }
.minbri small { margin-left: 8px; font-weight: 500; font-size: 12px; color: var(--ink3); }
.status .stamp--soon { top: 0; right: 4px; font-size: 16px; padding: 6px 12px 5px; transform: rotate(-8deg); }
.memo--sample { margin: 28px 0 22px 4px; }
.memo--sample svg { transform: scaleY(-1) rotate(8deg); order: -1; }
.baby__links { margin-top: 12px; font: 700 13.5px/1.5 var(--ff); }
.baby__links a { text-decoration: none; color: var(--aqua-d); border-bottom: 1.5px solid currentColor; }
.book__page--cat .baby__links a { color: var(--pink-d); }
.baby__links a::after { content: ' →'; }
.baby { position: relative; display: flex; flex-direction: column; }
.baby .print { padding-bottom: 9px; }
.baby .print img { aspect-ratio: 4 / 5; }
.baby__f { margin-top: 20px; }
.baby__f > div { display: grid; grid-template-columns: 5.6em 1fr; gap: 8px; align-items: end; padding: 6px 0 5px; border-bottom: 1px solid var(--rule); font-size: 13.5px; line-height: 1.6; }
.baby__f dt { font: 700 10.5px/1.6 var(--ff); letter-spacing: .1em; color: var(--ink3); }
.baby__f dd.hand { font-size: 21px; line-height: 1.25; }
.baby__memo { margin-top: 10px; font-size: 16px; line-height: 1.5; color: var(--ink2); }
.baby__price { margin-top: 10px; font: 700 22px/1.2 var(--ff); letter-spacing: .02em; }
.baby__price small { font-size: 11.5px; margin-left: 3px; color: var(--ink2); }
.stamp { position: absolute; top: 22px; right: -8px; z-index: 3; padding: 4px 9px 3px; border: 2.4px solid currentColor; border-radius: 5px; font: 700 13px/1.3 var(--ff); letter-spacing: .16em; transform: rotate(8deg); }
.baby__ask { margin-top: 12px; align-self: flex-start; font: 700 13.5px/1.5 var(--ff); letter-spacing: .04em; text-decoration: none; color: var(--aqua-d); padding-bottom: 2px; border-bottom: 1.5px solid currentColor; }
.baby__ask::after { content: ' →'; }
.baby__ask:hover { color: var(--ink); }

.breeds { margin-top: clamp(44px, 5vw, 64px); padding-top: 18px; border-top: 1px dashed var(--ink3); }
.breeds__ttl { font: 700 12px/1 var(--ff); letter-spacing: .16em; color: var(--ink2); }
.breeds ul { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; margin-top: 20px; }
.breeds li { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.breeds img { width: min(96px, 100%); aspect-ratio: 1; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 4px #fff, 0 6px 12px -6px rgba(0, 0, 0, .35); }
.breeds li:nth-child(odd) img { transform: rotate(-4deg); }
.breeds span { font-family: var(--ff-hand); font-size: 16px; line-height: 1.3; }
.breeds span small { display: block; font-size: 13px; color: var(--ink2); }
.breeds__more { margin-top: 18px; font-size: 13px; color: var(--ink2); }
.empty { max-width: 640px; padding: 10px 0 0; }
.empty__big { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.45; }
.empty__txt { margin: 12px 0 24px; color: var(--ink2); }
@media (max-width: 1099px) { .babies, .babies--sample { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 899px) {
  .tab { padding: 10px 18px; font-size: 19px; }
  .babies { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(clamp(20px, 4vw, 54px) * -1); padding: 14px clamp(20px, 4vw, 54px) 14px; scrollbar-width: none; }
  .babies::-webkit-scrollbar { display: none; }
  .baby { flex: none; width: 68%; scroll-snap-align: center; }
  .status__big { padding-right: 0; font-size: 22px; padding-top: 34px; }
  .status .stamp--soon { right: auto; left: 0; top: -2px; font-size: 14px; }
  .breeds ul { grid-template-columns: repeat(3, 1fr); gap: 20px 10px; }
  .breeds span { font-size: 13px; letter-spacing: 0; }
}

/* ── 見学から、お迎えまで（見学のしおり） ── */
.visit__grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: clamp(28px, 4vw, 56px); margin-top: clamp(40px, 5vw, 64px); align-items: start; }
.slip { background: #fff; padding: clamp(24px, 3vw, 40px); box-shadow: 0 1px 2px rgba(60, 35, 30, .1), 0 22px 36px -28px rgba(60, 35, 30, .5); }
.slip__hd { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 3px double var(--ink); font: 700 12.5px/1.4 var(--ff); letter-spacing: .14em; }
.slip__hd span:last-child { font-weight: 400; color: var(--ink3); letter-spacing: .06em; }
.checks li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.checks li:last-child { border-bottom: 0; }
.box { position: relative; width: 24px; height: 24px; margin-top: 3px; border: 1.8px solid var(--ink2); border-radius: 3px; }
.box svg { position: absolute; left: -3px; top: -10px; width: 34px; height: 34px; overflow: visible; fill: none; stroke: var(--pencil); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 48; stroke-dashoffset: 48; }
.slip.is-in .box svg { transition: stroke-dashoffset .45s var(--ease); stroke-dashoffset: 0; }
.slip.is-in li:nth-child(1) .box svg { transition-delay: .3s; }
.slip.is-in li:nth-child(2) .box svg { transition-delay: .65s; }
.slip.is-in li:nth-child(3) .box svg { transition-delay: 1s; }
.slip.is-in li:nth-child(4) .box svg { transition-delay: 1.35s; }
.slip.is-in li:nth-child(5) .box svg { transition-delay: 1.7s; }
.slip.is-in li:nth-child(6) .box svg { transition-delay: 2.05s; }
.capture .box svg, .reduced .box svg { stroke-dashoffset: 0; }
.checks b { display: block; font-size: 16px; font-weight: 700; line-height: 1.6; }
.checks small { display: block; margin-top: 4px; font-size: 13.5px; line-height: 1.8; color: var(--ink2); }
.checks .is-key b { text-decoration: underline wavy var(--shu) 1.5px; text-underline-offset: 7px; }
.vow { position: relative; background: #fff; padding: clamp(24px, 3vw, 36px); margin-top: 26px; box-shadow: 0 1px 2px rgba(60, 35, 30, .1), 0 22px 36px -28px rgba(60, 35, 30, .5); --r: 1.2deg; }
.vow::before { content: ''; position: absolute; left: 50%; top: -12px; width: 88px; height: 22px; margin-left: -44px; background: rgba(245, 192, 203, .82); transform: rotate(-3deg); clip-path: polygon(2% 8%, 98% 0, 100% 46%, 97% 100%, 3% 92%, 0 50%); }
.vow__ttl { font-size: 26px; line-height: 1.4; }
.vow ul { margin-top: 12px; }
.vow li { position: relative; padding: 8px 0 8px 1.5em; border-bottom: 1px solid var(--rule); font-size: 15px; }
.vow li::before { content: '・'; position: absolute; left: .2em; }
.vow__seals { display: flex; justify-content: flex-end; gap: 18px; margin-top: 22px; }
.vow__slot { display: grid; place-items: center; width: 66px; height: 66px; border-radius: 50%; border: 1.5px dashed var(--ink3); font-size: 11px; color: var(--ink3); }
.seal--lg { width: 66px; height: 66px; transform: rotate(12deg); }
@media (max-width: 899px) {
  .visit__grid { grid-template-columns: 1fr; }
  .checks b { font-size: 15px; }
  .checks small { font-size: 13px; }
}

/* ── わんこのトリミング ── */
.trim__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); margin-top: clamp(36px, 4.5vw, 56px); align-items: start; }
.menu__ttl { font-family: var(--ff-hand); font-weight: 400; font-size: 27px; line-height: 1.3; display: flex; align-items: baseline; gap: 12px; }
.menu__ttl small { font: 700 11.5px/1 var(--ff); letter-spacing: .12em; color: var(--ink3); }
.menu__row { display: flex; align-items: baseline; gap: 10px; margin-top: 12px; font-weight: 700; font-size: 17px; }
.menu__row i { flex: 1; border-bottom: 2px dotted var(--ink3); transform: translateY(-5px); }
.menu__row span:last-child { font-weight: 500; color: var(--ink2); font-size: 15px; }
.menu__note { margin-top: 10px; font-size: 14px; color: var(--ink2); line-height: 1.85; }
.trim__menu .field--row { margin-top: 30px; padding: 12px 18px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--ink2); }
.trim__menu .field--row dd { font-weight: 700; }
.trim__photo img { aspect-ratio: 4 / 3; }
@media (max-width: 899px) {
  .trim__grid { grid-template-columns: 1fr; }
  .trim__photo { order: -1; width: 92%; margin: 0 auto; }
}

/* ── Instagram ── */
.insta__accounts { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.4vw, 28px); margin-top: clamp(32px, 4vw, 48px); max-width: 860px; }
.acct { position: relative; display: grid; grid-template-columns: 76px 1fr; grid-template-rows: auto auto auto; column-gap: 18px; align-items: center; padding: 18px 22px; background: #fff; text-decoration: none; box-shadow: 0 1px 2px rgba(60, 30, 30, .1), 0 18px 30px -24px rgba(60, 30, 30, .45); transition: transform .4s var(--ease); }
.acct:hover { transform: translateY(-3px) rotate(var(--r, 0deg)); }
.acct img { grid-row: span 3; width: 76px; height: 76px; border-radius: 50%; object-fit: cover; }
.acct__name { font: 700 19px/1.3 var(--ff); }
.acct__name small { margin-left: 8px; font-size: 11.5px; color: var(--ink3); letter-spacing: .1em; }
.acct__id { font-size: 13px; color: var(--ink2); }
.acct__go { margin-top: 4px; font: 700 13px/1.4 var(--ff); color: var(--pink-d); }
.acct__go::after { content: ' →'; }
.acct::before { content: ''; position: absolute; left: 50%; top: -11px; width: 70px; height: 20px; margin-left: -35px; background: rgba(249, 194, 198, .8); transform: rotate(-3deg); clip-path: polygon(2% 8%, 98% 0, 100% 46%, 97% 100%, 3% 92%, 0 50%); }
.acct + .acct::before { background: rgba(182, 224, 214, .85); transform: rotate(3deg); }
.insta__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 28px; }
.insta__grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; }
@media (max-width: 899px) {
  .insta__accounts { grid-template-columns: 1fr; }
  .insta__grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
}

/* ── 阿蘇・一の宮 ── */
.place__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 4vw, 56px) clamp(32px, 5vw, 72px); margin-top: clamp(40px, 5vw, 64px); align-items: center; }
.map { position: relative; display: block; text-decoration: none; padding: 14px; background: rgba(255, 255, 255, .6); box-shadow: inset 0 0 0 1.5px var(--ink2); }
.map svg { display: block; width: 100%; height: auto; }
.map__open { display: inline-block; margin-top: 8px; font: 700 13px/1.5 var(--ff); letter-spacing: .06em; border-bottom: 1.5px solid currentColor; }
.map__open::after { content: ' →'; }
.place__info { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(28px, 4vw, 56px); border-top: 1.5px solid var(--ink); }
@media (max-width: 899px) {
  .place__grid { grid-template-columns: 1fr; }
  .place__info { grid-template-columns: 1fr; }
}

/* ── 連絡 ── */
.contact { text-align: center; }
.contact__logo { width: clamp(150px, 16vw, 210px); height: auto; aspect-ratio: 1; margin: 0 auto 18px; border-radius: 50%; box-shadow: 0 0 0 6px #fff, 0 16px 30px -18px rgba(60, 30, 30, .45); }
.contact__ttl { font-size: clamp(42px, 6vw, 82px); line-height: 1.25; }
.contact__lead { margin-top: 14px; color: var(--ink2); }
.contact__btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.contact__ig { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 28px; margin-top: 22px; }
@media (max-width: 899px) { .contact__btns { flex-direction: column; } .contact__btns .btn { width: 100%; } }

/* ── 奥付 ── */
.colophon { padding: 0 0 calc(48px + env(safe-area-inset-bottom)); }
.colophon .wrap { padding-top: 46px; border-top: 3px double var(--ink); max-width: calc(var(--max) + var(--gx) * 2); }
.colophon__name { display: flex; align-items: center; gap: 12px; font: 700 20px/1.3 var(--ff); letter-spacing: .06em; }
.colophon__name img { width: 48px; height: 48px; border-radius: 50%; }
.reg td small { display: block; font-size: 11px; color: var(--ink3); }
.colophon__info { margin-top: 16px; display: grid; gap: 4px; font-size: 13px; }
.colophon__info div { display: grid; grid-template-columns: 5em 1fr; gap: 10px; }
.colophon__info dt { color: var(--ink3); }
.colophon__info a { text-decoration: none; }
.colophon__ttl { margin-top: 32px; font: 700 12.5px/1 var(--ff); letter-spacing: .14em; }
.reg-wrap { margin-top: 12px; overflow-x: auto; }
.reg { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 12.5px; line-height: 1.6; background: rgba(255, 255, 255, .7); }
.reg th, .reg td { padding: 8px 10px; border: 1px solid var(--rule); text-align: left; white-space: nowrap; }
.reg th { font-weight: 700; color: var(--ink2); background: rgba(249, 194, 198, .3); }
.colophon__addr { margin-top: 10px; font-size: 12px; color: var(--ink3); }
.colophon__draft { margin-top: 26px; font-size: 12px; color: var(--ink3); }
.colophon__copy { margin-top: 6px; font-size: 12px; }
@media (max-width: 899px) { .colophon { padding-bottom: calc(100px + env(safe-area-inset-bottom)); } }

/* ── スマホの下のボタン ── */
.dock { display: none; }
@media (max-width: 899px) {
  .dock { position: fixed; z-index: 50; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: 1fr; transform: translateY(150%); transition: transform .5s var(--ease); }
  .dock.is-on { transform: none; }
  .dock a { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 52px; border-radius: 12px; text-decoration: none; font: 700 15px/1 var(--ff); color: #fff; box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .4); }
  .dock svg { width: 22px; height: 22px; }
  .dock__line { background: var(--line-green); }
  .dock__tel { background: var(--ink); padding: 0 22px; }
  .capture .dock { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
