/* inucho.com — 方眼の手帳 × 子犬の首輪色。设计说明见 DESIGN-NOTES.md */

:root {
  --paper: #F6F8FA;
  --paper-2: #EEF2F6;
  --card: #FFFFFF;
  --grid: #D3E0EC;
  --grid-soft: #E3EBF3;
  --ink: #131A22;
  --graphite: #5B6673;
  --graphite-2: #7C8793;
  --tint: #2F6BFF;
  --tint-ink: #1F54D6;
  --tint-wash: #E8EFFF;
  --night: #0F1720;
  --night-2: #16212D;
  --lamp: #FFB45C;
  --ok: #16A67A;
  --warn: #D9480F;
  --collar-1: #E5484D;
  --collar-2: #F59E2B;
  --collar-3: #86C232;
  --collar-4: #16A67A;
  --collar-5: #23AEE0;
  --collar-6: #E0579C;

  --f-head: "Zen Kaku Gothic New", "Hiragino Sans", "Noto Sans JP", system-ui, sans-serif;
  --f-body: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", Meiryo, system-ui, sans-serif;
  --f-hand: "Klee One", "Hiragino Maru Gothic ProN", var(--f-body);
  --f-ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Hiragino Sans", var(--f-body);

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --radius: 14px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.85;
  font-feature-settings: "palt" 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: var(--tint-ink); text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--tint); outline-offset: 3px; border-radius: 4px; }
button { font: inherit; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }

.wrap { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }
.wrap-narrow { width: min(760px, 100% - var(--gutter) * 2); margin-inline: auto; }

/* 方眼の地模様：本文ページの背景にごく薄く */
.grid-bg {
  background-image:
    linear-gradient(var(--grid-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-soft) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* ───────── header ───────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 78%, transparent);
  backdrop-filter: saturate(1.6) blur(18px);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--grid); }
.site-header__inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; margin-right: auto; }
.brand__mark { width: 30px; height: 30px; color: var(--ink); }
.brand__name { font-family: var(--f-head); font-weight: 700; font-size: 17px; letter-spacing: .02em; }
.site-nav__list { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.site-nav__list a { color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500; padding: 6px 0; position: relative; }
.site-nav__list a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--tint); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out); }
.site-nav__list a:hover::after, .site-nav__list a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav__toggle { display: none; }
.store-badge { display: inline-block; line-height: 0; border-radius: 10px; }
.store-badge img { height: auto; }
.store-badge--sm img { width: 109px; }
.store-badge--lg img { width: 163px; }

@media (max-width: 860px) {
  .site-header__inner { gap: 12px; }
  .site-nav { order: 3; }
  .site-nav__toggle { display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; }
  .site-nav__bars, .site-nav__bars::before, .site-nav__bars::after { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease-out), opacity .2s; }
  .site-nav__bars { position: relative; }
  .site-nav__bars::before, .site-nav__bars::after { content: ""; position: absolute; left: 0; }
  .site-nav__bars::before { top: -6px; } .site-nav__bars::after { top: 6px; }
  .site-nav__toggle[aria-expanded="true"] .site-nav__bars { background: transparent; }
  .site-nav__toggle[aria-expanded="true"] .site-nav__bars::before { transform: translateY(6px) rotate(45deg); }
  .site-nav__toggle[aria-expanded="true"] .site-nav__bars::after { transform: translateY(-6px) rotate(-45deg); }
  .site-nav__list {
    position: fixed; inset: 64px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--grid);
    padding: 8px var(--gutter) 20px;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .25s, transform .35s var(--ease-out), visibility .25s;
  }
  .site-nav__list.is-open { transform: none; opacity: 1; visibility: visible; }
  .site-nav__list a { display: block; padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--grid-soft); }
  .site-nav__list a::after { display: none; }
  .store-badge--sm img { width: 96px; }
}
@media (max-width: 380px) { .brand__name { font-size: 15px; } }

/* ───────── type ───────── */
.section-title {
  font-family: var(--f-head); font-weight: 900;
  font-size: clamp(30px, 4.6vw, 56px); line-height: 1.22; letter-spacing: .01em;
  margin: 0 0 22px; word-break: keep-all; overflow-wrap: anywhere; line-break: strict;
}
.section-lead { font-size: clamp(16px, 1.4vw, 18px); color: var(--graphite); max-width: 36em; margin: 0 0 20px; }
.fine { font-size: 13px; color: var(--graphite); line-height: 1.7; }
.more-link a { font-weight: 700; }

/* ───────── ① hero ───────── */
.hero { position: relative; height: 320vh; margin-top: -64px; } /* 画布从页头下方开始，页头是半透明玻璃 */
.hero__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hero__canvas, .hero__fallback { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__fallback { object-fit: cover; opacity: 0; transition: opacity .6s; }
.hero.is-fallback .hero__fallback { opacity: 1; }
.hero__canvas { opacity: 0; transition: opacity 1.2s var(--ease-out); }
.hero__stage { background: #EDF1F5; }
.hero__stage::after { /* 文字下的柔和遮罩：左下向透明过渡，保证标题可读 */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(237,241,245,.94) 0%, rgba(237,241,245,.82) 28%, rgba(237,241,245,0) 58%),
    linear-gradient(0deg, var(--paper) 0%, rgba(246,248,250,.9) 8%, rgba(237,241,245,0) 38%);
}
.hero__copy { z-index: 1; }
@media (max-width: 860px) {
  .hero__stage::after { background: linear-gradient(0deg, var(--paper) 0%, rgba(237,241,245,.94) 30%, rgba(237,241,245,0) 50%); }
}
.hero.is-ready .hero__canvas { opacity: 1; }
.hero__copy {
  position: absolute; left: 0; right: 0; bottom: clamp(28px, 8vh, 88px);
  pointer-events: none;
}
.hero__copy a, .hero__copy .hero__cta { pointer-events: auto; }
.hero__title {
  font-family: var(--f-head); font-weight: 900; margin: 0 0 18px;
  font-size: clamp(38px, 6vw, 88px); line-height: 1.1; letter-spacing: -.005em;
}
.hero__line { display: block; }
.hero__line { transition: opacity .6s var(--ease-out); }
.hero__lead { max-width: 30em; font-size: clamp(15px, 1.35vw, 18px); color: #3E4955; margin: 0 0 22px; }
.hero__cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hero__meta { margin: 0; font-size: 13px; color: var(--graphite); }
.hero__beats {
  position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%);
  list-style: none; margin: 0; padding: 0; display: grid; gap: 14px;
  font-family: var(--f-hand); font-size: 15px; color: var(--graphite-2);
}
.hero__beats li { display: flex; align-items: center; gap: 10px; transition: color .4s; }
.hero__beats li::before { content: ""; width: 22px; height: 2px; background: currentColor; transition: width .4s var(--ease-out); }
.hero__beats li.is-on { color: var(--ink); }
.hero__beats li.is-on::before { width: 40px; background: var(--tint); }
.hero__share {
  position: absolute; left: 0; right: 0; top: clamp(90px, 16vh, 150px);
  font-family: var(--f-hand); font-size: clamp(18px, 2vw, 26px); color: var(--ink);
  opacity: 0; transform: translateY(10px);
}
@media (max-width: 860px) {
  .hero { height: 260vh; }
  .hero__beats { display: none; }
  .hero__copy { bottom: 24px; }
  .hero__lead { font-size: 14.5px; }
}

/* ───────── iPhone mock（iOS 27 風） ───────── */
.phone {
  --w: 300px;
  width: var(--w); aspect-ratio: 300 / 632; flex: none;
  border-radius: calc(var(--w) * .165);
  padding: calc(var(--w) * .035);
  background: linear-gradient(145deg, #2A3038, #0B0E12 55%, #262B31);
  box-shadow:
    inset 0 0 0 1.5px #3A414A,
    0 1px 0 #fff inset,
    0 40px 80px -30px rgba(19, 26, 34, .45),
    0 18px 36px -18px rgba(19, 26, 34, .35);
  position: relative;
}
.phone__screen {
  position: relative; height: 100%; overflow: hidden;
  border-radius: calc(var(--w) * .135);
  background: #F2F2F7; color: #000;
  font-family: var(--f-ui); font-size: calc(var(--w) * .047); line-height: 1.35;
  letter-spacing: 0;
}
.phone__screen::before { /* Dynamic Island */
  content: ""; position: absolute; z-index: 3; top: 3%; left: 50%; transform: translateX(-50%);
  width: 31%; height: 4.4%; background: #000; border-radius: 999px;
}
.phone--sm { --w: 236px; }
.ios-status { display: flex; justify-content: space-between; align-items: center; height: 9%; padding: 4% 9% 0; font-weight: 600; font-size: .95em; }
.ios-status__r { display: flex; gap: 5px; align-items: center; }
.ios-status .sig { width: 16px; height: 9px; background: linear-gradient(90deg, #000 0 20%, transparent 20% 27%, #000 27% 47%, transparent 47% 54%, #000 54% 74%, transparent 74% 81%, #000 81%); clip-path: polygon(0 100%, 100% 0, 100% 100%); }
.ios-status .bat { width: 22px; height: 10px; border: 1.5px solid #000; border-radius: 3px; position: relative; }
.ios-status .bat::after { content: ""; position: absolute; inset: 1px; right: 4px; background: #000; border-radius: 1px; }
.ios-scroll { padding: 0 5.5% 30%; height: 91%; overflow: hidden; }
.ios-date { margin: 2% 0 0; font-size: .78em; font-weight: 600; color: #8A8A8E; text-transform: none; }
.ios-large { margin: 0 0 3%; font-size: 2.05em; font-weight: 700; letter-spacing: -.01em; line-height: 1.15; }
.ios-large--sm { font-size: 1.8em; margin-top: 4%; }
.ios-sub { margin: -1% 0 4%; color: #8A8A8E; font-size: .82em; }
.ios-back { display: flex; align-items: center; gap: 2px; margin: 3% 0 2%; color: var(--tint); font-size: .95em; }
.ios-back svg { width: 1.1em; height: 1.1em; transform: rotate(180deg); }
.ios-section { margin: 5% 0 1.5%; padding-left: 3%; font-size: .74em; color: #8A8A8E; font-weight: 500; }
.ios-card { background: #fff; border-radius: 14px; padding: 4% 4.5%; }
.ios-card__row { display: flex; justify-content: space-between; font-size: .86em; }
.ios-card__k { font-weight: 700; color: var(--collar-6); }
.ios-card__v { color: #3C3C43; }
.ios-card__foot { margin: 2% 0 0; font-size: .74em; color: #8A8A8E; }
.collar-dots { display: flex; gap: 6px; margin: 4% 0 3%; }
.collar-dots i { width: 14%; aspect-ratio: 1; max-width: 26px; border-radius: 50%; background: color-mix(in srgb, var(--c) 18%, #fff); box-shadow: inset 0 0 0 2.5px var(--c); }
.ios-progress { height: 6px; background: #E5E5EA; border-radius: 3px; overflow: hidden; }
.ios-progress span { display: block; height: 100%; background: var(--tint); border-radius: 3px; }
.ios-list { list-style: none; margin: 0; padding: 0; background: #fff; border-radius: 14px; overflow: hidden; }
.ios-list li { display: flex; align-items: center; gap: 3.5%; padding: 3.2% 4.5%; position: relative; font-size: .9em; }
.ios-list li + li::before { content: ""; position: absolute; top: 0; left: 15%; right: 0; height: .5px; background: #C6C6C8; }
.ios-list__t { flex: 1; min-width: 0; }
.ios-list__t small { display: block; color: #8A8A8E; font-size: .8em; }
.ios-list__m { color: #8A8A8E; font-size: .82em; font-variant-numeric: tabular-nums; }
.ios-list .tick { width: 1.35em; height: 1.35em; border-radius: 50%; border: 1.6px solid #C7C7CC; display: grid; place-items: center; flex: none; }
.ios-list .tick svg { width: 80%; height: 80%; color: #fff; }
.ios-list .is-done .tick { background: var(--ok); border-color: var(--ok); }
.ios-list .is-done .ios-list__t { color: #8A8A8E; text-decoration: line-through; text-decoration-color: #C7C7CC; }
.ios-list .is-due .ios-list__m { color: var(--warn); font-weight: 600; }
.ios-list .is-due::after { content: ""; position: absolute; left: 0; top: 18%; bottom: 18%; width: 3px; border-radius: 0 3px 3px 0; background: var(--warn); }
.ios-note { display: flex; gap: 3%; background: #fff; border-radius: 14px; padding: 4%; font-size: .84em; }
.ios-note svg { width: 1.3em; height: 1.3em; color: var(--collar-2); flex: none; margin-top: 1px; }
.ios-note p { margin: 0; }
.ios-note span { display: block; color: #8A8A8E; font-size: .86em; margin-top: 2px; }
.ios-chart { padding: 3% 3% 2%; margin-bottom: 4%; }
.mini-chart { width: 100%; height: auto; aspect-ratio: 280 / 120; }
.mini-chart__grid path { stroke: #E5E5EA; stroke-width: 1; fill: none; }
.mini-chart polyline { fill: none; stroke: var(--c); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.ios-list--pups .dot { width: 1em; height: 1em; border-radius: 50%; background: var(--c); flex: none; }
.ios-list__w { font-weight: 600; font-variant-numeric: tabular-nums; }
.ios-list__w em { font-style: normal; color: var(--ok); font-weight: 500; font-size: .8em; margin-left: 4px; }
.ios-list--pups .is-watch .ios-list__w em { color: var(--warn); }
.ios-button { margin: 5% 0 0; text-align: center; background: var(--tint); color: #fff; font-weight: 600; border-radius: 14px; padding: 3.6%; font-size: .92em; }
.ios-dog { display: flex; align-items: center; gap: 4%; margin: 2% 0 5%; }
.ios-dog__avatar { width: 20%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--collar-6) 20%, #fff); color: var(--collar-6); font-weight: 700; font-size: 1.3em; }
.ios-dog__name { margin: 0; font-size: 1.55em; font-weight: 700; line-height: 1.2; }
.ios-dog .ios-sub { margin: 0; }
.ios-seg { display: flex; background: #E4E4E9; border-radius: 9px; padding: 2px; margin-bottom: 5%; font-size: .8em; }
.ios-seg span { flex: 1; text-align: center; padding: 1.6% 0; border-radius: 7px; font-weight: 500; }
.ios-seg .is-on { background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.12); font-weight: 600; }
.ios-timeline { list-style: none; margin: 0 0 5%; padding: 3% 4.5%; background: #fff; border-radius: 14px; }
.ios-timeline li { display: grid; grid-template-columns: 26% 1fr; gap: 4%; padding: 2.2% 0 2.2% 5%; position: relative; font-size: .86em; }
.ios-timeline li::before { content: ""; position: absolute; left: 0; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--collar-6); }
.ios-timeline li::after { content: ""; position: absolute; left: 3px; top: 50%; bottom: -50%; width: 1px; background: #D1D1D6; }
.ios-timeline li:last-child::after { display: none; }
.ios-timeline b { font-weight: 600; font-variant-numeric: tabular-nums; }
.ios-timeline .is-next::before { background: var(--tint); box-shadow: 0 0 0 3px var(--tint-wash); }
.ios-timeline .is-future { color: #8A8A8E; }
.ios-timeline .is-future::before { background: #fff; box-shadow: inset 0 0 0 1.5px #AEAEB2; }
.ios-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3%; }
.ios-stat { background: #fff; border-radius: 12px; padding: 5% 7%; }
.ios-stat span { display: block; font-size: .7em; color: #8A8A8E; }
.ios-stat b { font-size: 1.2em; font-variant-numeric: tabular-nums; }
.ios-stat small { font-size: .6em; margin-left: 2px; color: #8A8A8E; }
.ios-stat .ok { color: var(--ok); font-size: 1em; }
.ios-list--dogs .av { width: 1.9em; height: 1.9em; border-radius: 50%; display: grid; place-items: center; background: var(--tint-wash); color: var(--tint-ink); font-weight: 700; font-size: .85em; flex: none; }
.ios-toast { position: absolute; left: 7%; right: 7%; bottom: 12%; display: flex; align-items: center; gap: 8px; justify-content: center; padding: 3% 4%; border-radius: 999px; font-size: .84em; font-weight: 600; color: #fff; background: rgba(28, 28, 30, .86); backdrop-filter: blur(10px); opacity: 0; transform: translateY(8px); margin: 0; }
.ios-toast svg { width: 1.2em; height: 1.2em; color: #34C759; }
/* Liquid Glass tab bar */
.ios-tabbar {
  position: absolute; left: 5%; right: 5%; bottom: 3.2%; height: 9.6%;
  display: flex; justify-content: space-around; align-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, .62);
  backdrop-filter: blur(14px) saturate(1.8); -webkit-backdrop-filter: blur(14px) saturate(1.8);
  box-shadow: inset 0 0 0 .5px rgba(255,255,255,.9), inset 0 1px 1px rgba(255,255,255,.8), 0 6px 20px rgba(0,0,0,.12), 0 0 0 .5px rgba(0,0,0,.06);
  font-size: .62em; font-weight: 600; color: #3C3C43;
}
.ios-tabbar span { display: grid; justify-items: center; gap: 1px; padding: 1.2% 4.5%; border-radius: 999px; }
.ios-tabbar svg { width: 2em; height: 2em; }
.ios-tabbar .is-on { color: var(--tint); background: rgba(47, 107, 255, .1); }

/* ───────── ② daily ───────── */
.daily { padding: clamp(80px, 12vw, 160px) 0 0; position: relative; }
.daily__head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: end; margin-bottom: clamp(36px, 6vw, 72px); }
.daily__rail { overflow: hidden; padding-bottom: clamp(80px, 10vw, 140px); }
.daily__track { display: flex; gap: clamp(28px, 5vw, 80px); padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); width: max-content; }
.daily__item { margin: 0; display: grid; gap: 22px; justify-items: start; }
.daily__item .phone { --w: clamp(260px, 26vw, 320px); }
.daily__item figcaption { max-width: 300px; font-size: 14.5px; color: var(--graphite); line-height: 1.7; }
.daily__item figcaption strong { display: block; font-family: var(--f-head); font-size: 19px; color: var(--ink); margin-bottom: 4px; }
@media (max-width: 860px) {
  .daily__head { grid-template-columns: 1fr; gap: 0; }
  .daily__rail { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .daily__rail::-webkit-scrollbar { display: none; }
  .daily__item { scroll-snap-align: center; }
  .daily__item .phone { --w: min(72vw, 290px); }
}

/* ───────── ③ migrate ───────── */
.migrate { padding: clamp(80px, 11vw, 150px) 0; background: var(--card); border-block: 1px solid var(--grid); position: relative; overflow: hidden; }
.migrate__grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.plain-list { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 12px; }
.plain-list li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; color: var(--graphite); font-size: 15px; }
.plain-list svg { width: 22px; height: 22px; color: var(--tint); margin-top: 3px; }
.migrate__demo { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 20px; min-height: 520px; }
.sheet { background: #fff; border: 1px solid var(--grid); border-radius: 12px; box-shadow: 0 30px 60px -40px rgba(19,26,34,.4); overflow: hidden; font-family: var(--f-ui); font-size: 13px; }
.sheet__bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: var(--paper-2); border-bottom: 1px solid var(--grid); }
.sheet__bar span { width: 10px; height: 10px; border-radius: 50%; background: #D5DCE3; }
.sheet__bar p { margin: 0 0 0 8px; font-size: 12px; color: var(--graphite); }
.sheet table { border-collapse: collapse; width: 100%; }
.sheet th, .sheet td { border: 1px solid var(--grid-soft); padding: 7px 10px; text-align: left; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sheet thead th { background: var(--paper-2); color: var(--graphite-2); font-weight: 500; font-size: 11px; text-align: center; }
.sheet td:first-child, .sheet th:first-child { background: var(--paper-2); color: var(--graphite-2); text-align: center; width: 30px; font-size: 11px; }
.sheet__head td:not(:first-child) { font-weight: 700; }
.sheet [data-col].is-hl { background: var(--tint-wash); box-shadow: inset 0 0 0 2px var(--tint); }
.sheet tr.is-sent td:not(:first-child) { color: var(--graphite-2); background: #FAFBFC; }
.map-chips { position: absolute; left: 4%; bottom: 2%; display: flex; flex-wrap: wrap; gap: 8px; max-width: 70%; }
.map-chips span { font-size: 12.5px; padding: 5px 11px; background: var(--ink); color: #fff; border-radius: 6px; opacity: 0; transform: translateY(6px); }
.ios-list--dogs li { opacity: 0; transform: translateX(-10px); }
@media (max-width: 960px) {
  .migrate__grid { grid-template-columns: 1fr; }
  .migrate__demo { grid-template-columns: 1fr; justify-items: center; min-height: 0; }
  .sheet { width: 100%; overflow-x: auto; }
  .map-chips { position: static; max-width: none; }
}
@media (max-width: 560px) { .sheet th:nth-child(4), .sheet td:nth-child(4) { display: none; } }

/* ───────── ④ ledger ───────── */
.ledger { padding: clamp(90px, 12vw, 170px) 0; }
.ledger__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.ledger__papers { position: relative; aspect-ratio: 1 / 1.05; perspective: 1400px; }
.paper {
  position: absolute; inset: 6% 10% 10% 6%; background: #fff; border-radius: 4px; padding: 7% 7%;
  box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 30px 50px -30px rgba(19,26,34,.35);
  transform-origin: 50% 100%;
}
.paper--3 { transform: rotate(-7deg) translate(-4%, 2%); background: #FBFCFD; }
.paper--2 { transform: rotate(4deg) translate(5%, -2%); background: #FDFEFE; }
.paper--1 { transform: rotate(-1.5deg); }
.paper__title { margin: 0 0 6%; font-family: var(--f-head); font-weight: 700; font-size: clamp(15px, 1.6vw, 20px); letter-spacing: .08em; text-align: center; border-bottom: 1.5px solid var(--ink); padding-bottom: 4%; }
.paper__lines { height: 60%; background: repeating-linear-gradient(var(--grid-soft) 0 1px, transparent 1px 28px); }
.paper__table { width: 100%; border-collapse: collapse; font-size: clamp(10px, 1vw, 13px); font-variant-numeric: tabular-nums; }
.paper__table th, .paper__table td { border: 1px solid #C9D3DD; padding: 7px 6px; text-align: center; }
.paper__table th { background: var(--paper-2); font-weight: 500; }
.paper__table td:nth-child(2) { font-family: var(--f-hand); font-size: 1.1em; }
.quick-check { margin-top: 30px; padding: 22px; background: var(--card); border: 1px solid var(--grid); border-radius: var(--radius); }
.quick-check__title { margin: 0 0 14px; font-weight: 700; font-family: var(--f-head); font-size: 18px; }
.quick-check__fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.quick-check label { display: grid; gap: 6px; font-size: 12.5px; color: var(--graphite); }
.quick-check input, .tool input, .tool select {
  font: inherit; font-size: 16px; color: var(--ink); width: 100%; min-height: 44px;
  padding: 8px 12px; border: 1px solid #C5D2DE; border-radius: 10px; background: #fff;
}
.quick-check input:focus, .tool input:focus, .tool select:focus { outline: 3px solid color-mix(in srgb, var(--tint) 35%, transparent); border-color: var(--tint); }
.quick-check__result { display: block; margin: 16px 0 8px; padding: 14px 16px; border-radius: 10px; background: var(--paper); font-weight: 500; min-height: 3.2em; }
.quick-check__result[data-state="ok"] { background: color-mix(in srgb, var(--ok) 12%, #fff); color: #0B6B4F; }
.quick-check__result[data-state="ng"] { background: color-mix(in srgb, var(--warn) 10%, #fff); color: #9A3412; }
.quick-check__result[data-state="check"] { background: color-mix(in srgb, var(--collar-2) 14%, #fff); color: #8A4B06; }
@media (max-width: 960px) {
  .ledger__grid { grid-template-columns: 1fr; }
  .ledger__papers { max-width: 520px; width: 100%; margin-inline: auto; }
}
@media (max-width: 560px) { .quick-check__fields { grid-template-columns: 1fr; } }

/* ───────── ⑤ night ───────── */
.night { position: relative; background: var(--night); color: #E9EEF4; padding: clamp(100px, 13vw, 190px) 0; overflow: hidden; isolation: isolate; }
.night__photo { position: absolute; inset: 0; z-index: -2; }
.night__photo img { width: 100%; height: 100%; object-fit: cover; opacity: .38; filter: saturate(.9); }
.night::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--night) 0%, rgba(15,23,32,.55) 35%, rgba(15,23,32,.75) 70%, var(--night) 100%); }
.night__lamp {
  position: absolute; z-index: 0; pointer-events: none;
  width: 900px; height: 900px; left: 0; top: 0; margin: -450px 0 0 -450px;
  background: radial-gradient(circle, rgba(255,180,92,.22) 0%, rgba(255,180,92,.08) 35%, transparent 65%);
  transform: translate(var(--lx, 70vw), var(--ly, 30%));
  transition: transform .9s var(--ease-out);
  mix-blend-mode: screen;
}
.night__inner { position: relative; z-index: 1; }
.night .section-lead { color: #AAB6C3; }
.night__cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: clamp(40px, 6vw, 70px); background: rgba(255,255,255,.08); border-radius: 18px; overflow: hidden; }
.night-card { background: rgba(15,23,32,.72); backdrop-filter: blur(12px); padding: 28px 24px 30px; }
.night-card svg { width: 28px; height: 28px; color: var(--lamp); margin-bottom: 18px; }
.night-card h3 { font-family: var(--f-head); font-size: 18px; margin: 0 0 8px; color: #fff; }
.night-card p { margin: 0; font-size: 14px; color: #AAB6C3; line-height: 1.75; }
.night-note {
  margin: 48px 0 0 auto; width: min(380px, 100%);
  padding: 14px 16px 16px; border-radius: 22px;
  background: rgba(255,255,255,.14); backdrop-filter: blur(24px) saturate(1.6); -webkit-backdrop-filter: blur(24px) saturate(1.6);
  box-shadow: inset 0 0 0 .5px rgba(255,255,255,.3), 0 20px 40px rgba(0,0,0,.35);
  font-family: var(--f-ui);
}
.night-note__head { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 12px; color: #D4DCE5; text-transform: none; }
.night-note__head svg { width: 20px; height: 20px; padding: 3px; border-radius: 5px; background: #fff; color: var(--ink); }
.night-note__head span { margin-left: auto; color: #9FAAB6; }
.night-note__body { margin: 0; font-size: 14.5px; color: #fff; line-height: 1.55; }
@media (max-width: 960px) { .night__cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .night__cards { grid-template-columns: 1fr; } .night__lamp { display: none; } }

/* ───────── ⑥ compare ───────── */
.compare { padding: clamp(90px, 12vw, 160px) 0 clamp(60px, 8vw, 100px); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--grid); border-radius: var(--radius); background: var(--card); }
.table-wrap table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 14.5px; }
.table-wrap th, .table-wrap td { padding: 14px 16px; border-bottom: 1px solid var(--grid-soft); text-align: left; vertical-align: top; }
.table-wrap thead th { font-family: var(--f-head); font-size: 14px; color: var(--graphite); background: var(--paper); font-weight: 700; }
.table-wrap tbody tr:last-child > * { border-bottom: 0; }
.table-wrap tbody th { font-weight: 700; white-space: nowrap; }
.compare__table .is-us { background: var(--tint-wash); color: var(--ink); font-weight: 500; }
.compare__table tbody th, .compare__table thead th:first-child { position: sticky; left: 0; z-index: 1; background: var(--card); box-shadow: 1px 0 0 var(--grid-soft); }
.compare__table thead th:first-child { background: var(--paper); }
.compare__table thead .is-us { color: var(--tint-ink); background: #DCE6FF; }

/* ───────── ⑦ faq ───────── */
.faq { padding: clamp(60px, 8vw, 110px) 0 clamp(90px, 12vw, 150px); }
.faq__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: start; }
.faq__list details { border-top: 1px solid var(--grid); }
.faq__list details:last-child { border-bottom: 1px solid var(--grid); }
.faq__list summary { list-style: none; cursor: pointer; padding: 20px 44px 20px 0; font-weight: 700; font-size: 17px; position: relative; }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after { content: ""; position: absolute; right: 10px; top: 50%; width: 11px; height: 11px; margin-top: -8px; border-right: 2px solid var(--graphite); border-bottom: 2px solid var(--graphite); transform: rotate(45deg); transition: transform .3s var(--ease-out); }
.faq__list details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq__list details p { margin: 0 0 22px; color: var(--graphite); }
@media (max-width: 860px) { .faq__grid { grid-template-columns: 1fr; gap: 0; } }

/* ───────── ⑧ download ───────── */
.get-app { padding: clamp(90px, 12vw, 160px) 0; background: var(--card); border-top: 1px solid var(--grid); }
.get-app__grid { display: grid; grid-template-columns: 1.4fr .6fr; gap: 40px; align-items: center; }
.get-app__qr { justify-self: end; text-align: center; max-width: 220px; }
.get-app__qr img { width: 168px; height: 168px; margin: 0 auto 12px; padding: 12px; background: #fff; border: 1px solid var(--grid); border-radius: 16px; }
.get-app__qr p { margin: 0; font-size: 13px; color: var(--graphite); }
@media (max-width: 760px) { .get-app__grid { grid-template-columns: 1fr; } .get-app__qr { display: none; } }

/* ───────── footer ───────── */
.site-footer { background: var(--night); color: #C9D2DC; padding: 72px 0 28px; font-size: 14px; }
.site-footer a { color: #E9EEF4; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.site-footer__name { font-family: var(--f-head); font-size: 20px; font-weight: 700; color: #fff; margin: 0 0 8px; }
.site-footer__lead { margin: 0 0 20px; color: #9FAAB6; max-width: 26em; }
.site-footer__h { margin: 0 0 12px; font-weight: 700; color: #fff; font-size: 13px; letter-spacing: .06em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer__base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; border-top: 1px solid rgba(255,255,255,.1); margin-top: 56px; padding-top: 22px; color: #8795A4; font-size: 12.5px; }
.site-footer__base p { margin: 0; }
@media (max-width: 860px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }

/* ───────── 下層ページ共通 ───────── */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 18px auto 0; padding: 0; font-size: 12.5px; color: var(--graphite); }
.crumbs li + li::before { content: "／"; margin-right: 6px; color: var(--grid); }
.crumbs a { color: var(--graphite); }
.page-hero { padding: clamp(40px, 7vw, 90px) 0 clamp(28px, 4vw, 48px); }
.page-hero h1 { font-family: var(--f-head); font-weight: 900; font-size: clamp(30px, 5vw, 58px); line-height: 1.2; margin: 0 0 16px; max-width: 18em; text-wrap: balance; word-break: auto-phrase; }
.page-hero .lead { font-size: clamp(16px, 1.5vw, 19px); color: var(--graphite); max-width: 38em; margin: 0 0 10px; }
.updated { font-size: 12.5px; color: var(--graphite-2); margin: 0; }
.prose { padding-bottom: clamp(60px, 8vw, 110px); font-size: 16.5px; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-family: var(--f-head); font-weight: 900; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.35; margin: 2.4em 0 .6em; padding-top: .8em; border-top: 2px solid var(--ink); }
.prose h3 { font-family: var(--f-head); font-weight: 700; font-size: 19px; margin: 1.8em 0 .4em; }
.prose p, .prose li, .prose dd { color: #28313B; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .35em; }
.prose dl { display: grid; gap: 0; border-top: 1px solid var(--grid); }
.prose dt { font-weight: 700; padding-top: 14px; }
.prose dd { margin: 4px 0 0; padding-bottom: 14px; border-bottom: 1px solid var(--grid); }
.prose .table-wrap table { min-width: 520px; }
.fact { font-size: 17px; font-weight: 500; padding: 18px 20px; background: var(--card); border: 1px solid var(--grid); border-left: 4px solid var(--tint); border-radius: 10px; }
.callout { padding: 16px 20px; border-radius: 12px; background: var(--tint-wash); font-size: 15px; }
.callout--warn { background: #FFF3E6; }
.callout > :first-child { margin-top: 0; } .callout > :last-child { margin-bottom: 0; }
.sources { margin-top: 3em; font-size: 13.5px; }
.sources h2 { font-size: 18px !important; border-top: 1px solid var(--grid) !important; }
.sources li { word-break: break-all; }
.disclaimer { font-size: 13px; color: var(--graphite); }
.app-cta { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px 24px; padding: 22px 24px; border-radius: 16px; background: var(--card); border: 1px solid var(--grid); margin: 2.4em 0; }
.app-cta__title { font-family: var(--f-head); font-weight: 700; font-size: 18px; margin: 0; }
.app-cta p { margin: 0; }
.app-cta .store-badge { grid-row: 1 / span 2; grid-column: 2; }
@media (max-width: 560px) { .app-cta { grid-template-columns: 1fr; } .app-cta .store-badge { grid-row: auto; grid-column: auto; } }
.card-list { list-style: none; margin: 0 0 clamp(60px, 8vw, 110px); padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.card { display: block; height: 100%; padding: 24px; background: var(--card); border: 1px solid var(--grid); border-radius: var(--radius); color: var(--ink); text-decoration: none; transition: border-color .25s, transform .35s var(--ease-out); }
.card:hover { border-color: var(--tint); transform: translateY(-2px); }
.card__title { font-family: var(--f-head); font-weight: 700; font-size: 19px; line-height: 1.4; margin: 0 0 8px; }
.card p { margin: 0; font-size: 14.5px; color: var(--graphite); }
.tool { padding: 24px; background: var(--card); border: 1px solid var(--grid); border-radius: 16px; display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: 14.5px; }
.field__hint { margin: 0; font-size: 12.5px; color: var(--graphite); }
.tool__result { display: block; padding: 18px 20px; border-radius: 12px; background: var(--paper); min-height: 3em; }
.tool__result:empty { display: none; }
.tool button, .button {
  font: inherit; font-weight: 700; font-size: 16px; min-height: 48px; padding: 10px 22px; border: 0; border-radius: 12px;
  background: var(--tint); color: #fff; cursor: pointer; justify-self: start;
}
.tool button:hover, .button:hover { background: var(--tint-ink); }
.download-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.download { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; border: 1px solid var(--grid); border-radius: 12px; background: var(--card); color: var(--ink); text-decoration: none; }
.download:hover { border-color: var(--tint); }
.download__name { font-weight: 700; }
.download__meta { font-size: 13px; color: var(--graphite); white-space: nowrap; }
.legal { padding-bottom: clamp(60px, 8vw, 110px); }
.legal h2 { font-size: 20px !important; }

/* 動きを減らす設定 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
  .hero { height: 100vh; }
  .ios-list--dogs li, .map-chips span, .ios-toast { opacity: 1; transform: none; }
}

/* ───────── ①' collars ───────── */
.collars { padding: clamp(90px, 12vw, 170px) 0 0; position: relative; z-index: 1; background: var(--paper); }
.collars__grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.collars__photo { margin: 0; border-radius: 20px; overflow: hidden; aspect-ratio: 3 / 2; background: var(--paper-2); }
.collars__photo img { width: 100%; height: 112%; object-fit: cover; transform: translateY(-6%); will-change: transform; }
.collars__chips { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.collars__chips li { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-hand); font-size: 17px; padding: 4px 12px 4px 6px; border-radius: 8px; background: var(--card); border: 1px solid var(--grid); }
.collars__chips li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 4px var(--c); }
@media (max-width: 860px) { .collars__grid { grid-template-columns: 1fr; } }

h1, h2, h3, .section-lead { word-break: auto-phrase; }

/* ───────── 工具・指南（内容页补充） ───────── */
.tool > * { min-width: 0; }
.tool textarea { font: inherit; font-size: 16px; color: var(--ink); width: 100%; min-height: 96px; padding: 10px 12px; border: 1px solid #C5D2DE; border-radius: 10px; background: #fff; }
.tool__group { border: 1px solid var(--grid); border-radius: 12px; padding: 14px 16px 16px; margin: 0; display: grid; gap: 12px; }
.tool__group legend { font-weight: 700; font-size: 14.5px; padding: 0 6px; }
.tool__result[data-state="ok"], .tool__verdict[data-state="ok"] { background: color-mix(in srgb, var(--ok) 12%, #fff); color: #0B6B4F; }
.tool__result[data-state="ng"], .tool__verdict[data-state="ng"] { background: color-mix(in srgb, var(--warn) 10%, #fff); color: #9A3412; }
.tool__result[data-state="check"], .tool__verdict[data-state="check"] { background: color-mix(in srgb, var(--collar-2) 14%, #fff); color: #8A4B06; }
.tool__verdict { display: inline-block; font-weight: 700; padding: 2px 10px; border-radius: 6px; }
.tool__headline { font-family: var(--f-head); font-weight: 900; font-size: clamp(22px, 3vw, 30px); line-height: 1.3; margin: 0 0 8px; color: inherit; }
.tool__summary { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 12px 0; }
.tool__summary dt { font-weight: 700; color: var(--graphite); }
.tool__summary dd { margin: 0; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .tool__summary { grid-template-columns: 1fr; gap: 0; } .tool__summary dd { margin-bottom: 8px; } }
.tool__subhead { font-weight: 700; margin: 16px 0 6px; font-size: 15px; }
.tool__reasons, .tool__steps { margin: 0; padding-left: 1.3em; }
.tool__reasons li + li, .tool__steps li + li { margin-top: .3em; }
.tool__note { font-size: 13px; color: var(--graphite); margin: 12px 0 0; }
.tool__timeline { list-style: none; margin: 8px 0 0; padding: 0; border-left: 2px solid var(--grid); }
.tool__timeline li { position: relative; padding: 6px 0 10px 18px; }
.tool__timeline li::before { content: ""; position: absolute; left: -6px; top: 13px; width: 10px; height: 10px; border-radius: 50%; background: var(--card); box-shadow: inset 0 0 0 2px var(--graphite-2); }
.tool__timeline li.is-now::before { background: var(--tint); box-shadow: 0 0 0 4px var(--tint-wash); }
.tool__timeline li.is-now { font-weight: 700; }
.tool__when { display: block; font-size: 13px; color: var(--graphite); font-variant-numeric: tabular-nums; }
.guide-faq { margin-top: 3em; }
.guide-faq details { border-top: 1px solid var(--grid); }
.guide-faq details:last-of-type { border-bottom: 1px solid var(--grid); }
.guide-faq summary { cursor: pointer; padding: 16px 36px 16px 0; font-weight: 700; list-style: none; position: relative; }
.guide-faq summary::-webkit-details-marker { display: none; }
.guide-faq summary::after { content: "＋"; position: absolute; right: 6px; top: 14px; color: var(--graphite); }
.guide-faq details[open] summary::after { content: "－"; }
.guide-faq details > :not(summary) { margin: 0 0 16px; color: #28313B; }
.index-heading { font-family: var(--f-head); font-weight: 900; font-size: clamp(20px, 2.4vw, 26px); margin: 8px 0 16px; }
dl.glossary dt { font-family: var(--f-head); font-size: 17px; }
.faq-page { padding-bottom: clamp(60px, 8vw, 110px); }
.prose code { word-break: break-all; font-size: .9em; background: var(--paper-2); padding: 1px 5px; border-radius: 4px; }
.prose a { overflow-wrap: anywhere; }
