/* Apple Watch の画面イメージ（/watch とトップの紹介で使う）。画面の中だけ watchOS の黒 */
.watch { --wc: #F2661F; position: relative; width: 188px; flex: none; margin: 34px auto; font-family: -apple-system, "SF Pro Text", "Hiragino Sans", "Noto Sans JP", sans-serif; letter-spacing: 0; line-height: 1.25; color: #fff; }
.watch.lg { width: 212px; }
/* バンド（上下） */
.watch::before, .watch::after { content: ""; position: absolute; left: 50%; width: 64%; height: 46px; transform: translateX(-50%); background: #E3DCD2; z-index: 0; }
.watch::before { top: -34px; border-radius: 14px 14px 4px 4px; }
.watch::after { bottom: -34px; border-radius: 4px 4px 14px 14px; }
.w-case { position: relative; z-index: 1; aspect-ratio: 188 / 228; border-radius: 50px; background: #2A2521; padding: 9px; box-shadow: 0 24px 48px -26px rgba(26, 22, 19, .55); }
/* リューズとサイドボタン */
.w-case::before { content: ""; position: absolute; right: -6px; top: 26%; width: 8px; height: 30px; border-radius: 4px; background: #3A332D; }
.w-case::after { content: ""; position: absolute; right: -4px; top: 50%; width: 5px; height: 40px; border-radius: 3px; background: #3A332D; }
.w-screen { position: relative; height: 100%; border-radius: 42px; background: #000; overflow: hidden; }
.scr { position: relative; height: 100%; padding: 14px 13px 12px; display: flex; flex-direction: column; }
:where(.watch) button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; letter-spacing: 0; }
.w-top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 600; margin: 0 4px 6px; }
.w-top .w-app { color: var(--wc); }
.w-top .w-time { font-variant-numeric: tabular-nums; }
.w-ic { --c: #F2661F; width: 36px; height: 36px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; flex: none; }
.w-ic svg { width: 18px; height: 18px; }

/* 1. 記録ボタン：2列×3段のタイルで画面を埋める */
.w-grid { flex: 1; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, 1fr); gap: 5px; min-height: 0; }
.w-btn { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border-radius: 14px; background: #1C1916; font-size: 10.5px; font-weight: 600; color: #fff; white-space: nowrap; }
.w-btn .w-ic { position: relative; width: 28px; height: 28px; }
.w-btn .w-ic svg { width: 15px; height: 15px; }
.w-ripple { position: absolute; inset: -3px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .75); opacity: 0; pointer-events: none; }
.w-done { position: absolute; inset: 0; background: rgba(0, 0, 0, .88); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-size: 12.5px; font-weight: 600; text-align: center; opacity: 0; border-radius: 42px; }
.w-done .w-ic { --c: #2E9E6B; width: 40px; height: 40px; }
.w-done small { font-size: 10px; color: rgba(255, 255, 255, .6); font-weight: 500; }
@media (prefers-reduced-motion: no-preference) {
  .w-anim .w-ripple { animation: wRipple 5s ease-out infinite; }
  .w-anim .w-btn.first { animation: wPress 5s ease infinite; }
  .w-anim .w-done { animation: wDone 5s ease infinite; }
}
@keyframes wRipple { 0%, 14% { opacity: 0; transform: scale(.8); } 18% { opacity: 1; transform: scale(1); } 30% { opacity: 0; transform: scale(1.8); } 100% { opacity: 0; } }
@keyframes wPress { 0%, 15% { transform: scale(1); } 18% { transform: scale(.94); } 22%, 100% { transform: scale(1); } }
@keyframes wDone { 0%, 24% { opacity: 0; } 30%, 62% { opacity: 1; } 70%, 100% { opacity: 0; } }

/* 2. 散歩：上に時間と距離、下に大きなボタン2つ、終了は丸いボタン */
.w-walk { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.w-label { font-size: 10.5px; color: rgba(255, 255, 255, .6); margin: 0 4px; }
.w-big { font-size: 44px; font-weight: 600; color: var(--wc); font-variant-numeric: tabular-nums; letter-spacing: -.02em; margin: 0 4px; line-height: 1.05; }
.w-mid { display: flex; align-items: center; justify-content: space-between; margin: 6px 2px 0 4px; }
.w-dist { font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.w-dist small { font-size: 12px; color: rgba(255, 255, 255, .6); margin-left: 2px; }
.w-stop { width: 36px; height: 36px; border-radius: 50%; background: #3A1A0C; color: var(--wc); display: grid; place-items: center; flex: none; }
.w-stop svg { width: 15px; height: 15px; }
.w-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: auto; }
.w-pill { display: flex; align-items: center; justify-content: center; gap: 4px; height: 50px; border-radius: 25px; background: #222; font-size: 11px; font-weight: 600; white-space: nowrap; padding: 0 6px; }
.w-pill svg { width: 14px; height: 14px; flex: none; }
.w-pill.pee svg { color: #E2B640; }
.w-pill.poo svg { color: #C08A63; }

/* 3. お薬の通知 */
.w-notif { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.w-notif .w-head { display: flex; align-items: center; gap: 7px; }
.w-notif .w-head .w-ic { width: 28px; height: 28px; }
.w-notif .w-head .w-ic svg { width: 15px; height: 15px; }
.w-notif .w-head span { font-size: 10px; color: rgba(255, 255, 255, .6); }
.w-notif b { font-size: 13.5px; line-height: 1.3; font-weight: 600; }
.w-notif p { margin: 0; font-size: 11px; color: rgba(255, 255, 255, .7); line-height: 1.35; }
.w-action { display: grid; place-items: center; height: 38px; border-radius: 19px; white-space: nowrap; background: var(--wc); color: #fff; font-size: 12.5px; font-weight: 600; margin-top: auto; }
.w-action.sub { background: #222; color: #fff; margin-top: 0; }

/* 4. 文字盤 */
.w-face { flex: 1; display: flex; flex-direction: column; padding: 2px 4px; }
.w-comp { display: flex; align-items: center; gap: 7px; background: #171412; border-radius: 12px; padding: 7px 9px; }
.w-comp .w-ic { width: 26px; height: 26px; }
.w-comp .w-ic svg { width: 14px; height: 14px; }
.w-comp span { display: flex; flex-direction: column; font-size: 10px; color: rgba(255, 255, 255, .6); }
.w-comp b { font-size: 13px; color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.w-clock { font-size: 50px; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; letter-spacing: -.02em; margin: 6px 0 0; line-height: 1; }
.w-date { text-align: right; font-size: 11px; color: var(--wc); font-weight: 600; margin-top: 2px; }
.w-ring { display: flex; align-items: center; gap: 6px; margin-top: auto; font-size: 10px; color: rgba(255, 255, 255, .6); }
.w-ring svg { width: 34px; height: 34px; transform: rotate(-90deg); }
.w-ring b { color: #fff; font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* 5. 家族のお知らせ */
.w-fam { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px; }
.w-av { width: 54px; height: 54px; border-radius: 50%; background: #2E9E6B center 25% / cover no-repeat; border: 2px solid #000; box-shadow: 0 0 0 2px #2E9E6B; }
.w-fam b { font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.w-fam span { font-size: 10.5px; color: rgba(255, 255, 255, .6); }
.w-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; border-radius: 12px; background: #222; font-size: 10.5px; font-weight: 600; }
.w-chip svg { width: 12px; height: 12px; color: var(--wc); }
@media (prefers-reduced-motion: no-preference) {
  .w-anim .w-fam > * { animation: wIn 6s ease infinite both; }
  .w-anim .w-fam > :nth-child(2) { animation-delay: .08s; }
  .w-anim .w-fam > :nth-child(3) { animation-delay: .16s; }
  .w-anim .w-fam > :nth-child(4) { animation-delay: .24s; }
}
@keyframes wIn { 0%, 6% { opacity: 0; transform: translateY(14px); } 14%, 86% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; transform: translateY(-6px); } }

/* ---------- ページ側 ---------- */
.plan-tag { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--sub); font-size: 12px; font-weight: 700; letter-spacing: .04em; background: transparent; vertical-align: middle; }
.w-hero { text-align: center; padding-top: 40px; padding-bottom: 8px; }
.w-hero .t-h1 { margin-top: 14px; }
.w-hero .t-lead { margin-left: auto; margin-right: auto; }
.w-note { font-size: 13px; color: var(--sub); margin: 0; }
.w-stage { display: flex; justify-content: center; min-width: 0; padding: 8px 0; }
.w-teaser { display: grid; gap: 28px; align-items: center; }
@media (min-width: 860px) { .w-teaser { grid-template-columns: 1fr 1fr; gap: 64px; } }
.w-link { display: inline-block; margin-top: 4px; font-weight: 700; text-decoration: none; }
.w-link::after { content: " ›"; }
.w-link:hover { text-decoration: underline; }

/* ---------- 操作できる画面（/watch のツアー） ---------- */
.w-btn { background: #1C1916; transition: transform .18s var(--spring, ease), background-color .2s ease; }
.w-btn:active, .w-btn.press { transform: scale(.93); background: #26221F; }
.w-btn .w-ic { transition: transform .35s var(--spring, ease); }
.w-btn.press .w-ic { transform: scale(1.12); }
.w-btn.tap .w-ripple { animation: wTap .6s ease-out; }
@keyframes wTap { 0% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.9); } }
.w-done { transition: opacity .25s ease; pointer-events: none; }
.w-done .w-ic { transform: scale(.4); transition: transform .45s var(--spring, ease); }
.scr.done .w-done { opacity: 1; }
.scr.done .w-done .w-ic { transform: none; }
.w-pill { transition: transform .18s var(--spring, ease), background-color .2s ease; position: relative; }
.w-pill:active, .w-pill.press { transform: scale(.94); background: #2E2A26; }
.w-cnt { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: rgba(255, 255, 255, .14); font-size: 10.5px; font-weight: 700; display: grid; place-items: center; font-variant-numeric: tabular-nums; margin-left: 2px; }
.w-cnt.pop { animation: wPop .45s var(--spring, ease); }
@keyframes wPop { 0% { transform: scale(1); } 40% { transform: scale(1.45); background: var(--wc); } 100% { transform: scale(1); } }
.w-stop { position: relative; }
.w-hold { position: absolute; inset: -1px; width: 38px; height: 38px; transform: rotate(-90deg); pointer-events: none; }
.w-hold circle { fill: none; stroke: var(--wc); stroke-width: 3; stroke-dasharray: 101; stroke-dashoffset: 101; stroke-linecap: round; }
.w-stop.holding .w-hold circle { stroke-dashoffset: 0; transition: stroke-dashoffset .9s linear; }
.w-toast { position: absolute; left: 10px; right: 10px; top: 10px; padding: 7px 10px; border-radius: 14px; background: #2A2521; font-size: 11px; font-weight: 600; text-align: center; opacity: 0; transform: translateY(-8px); transition: opacity .2s ease, transform .35s var(--spring, ease); pointer-events: none; }
.w-toast.show { opacity: 1; transform: none; }
.w-action { position: relative; overflow: hidden; width: 100%; transition: background-color .3s ease, transform .18s var(--spring, ease); }
.w-action:active { transform: scale(.96); }
.w-a-ok { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 4px; opacity: 0; transform: translateY(8px); transition: opacity .2s ease, transform .35s var(--spring, ease); }
.w-a-ok svg { width: 14px; height: 14px; }
.w-a-l { transition: opacity .15s ease; }
.w-action.ok { background: #2E9E6B; }
.w-action.ok .w-a-l { opacity: 0; }
.w-action.ok .w-a-ok { opacity: 1; transform: none; }
.w-ring-v { transition: stroke-dashoffset 1.2s var(--soft, ease) .2s; }
.scr.on .w-ring-v, .step-mock .w-ring-v.go { stroke-dashoffset: 35; }
.w-clock span { display: inline-block; }
.w-clock span.tick { animation: wTick .4s var(--spring, ease); }
@keyframes wTick { 0% { transform: translateY(0); opacity: 1; } 40% { transform: translateY(-6px); opacity: .3; } 100% { transform: none; opacity: 1; } }

/* ツアー：PC は左に説明、右に付いてくる時計。スマホは説明と時計を順に積む */
.tour { position: relative; }
.tour-stage { display: none; }
.step { padding: 56px 0; border-top: 1px solid var(--line); }
.step-copy { max-width: 30em; }
.st-num { display: inline-block; font-family: Inter, sans-serif; font-weight: 600; color: var(--sub); margin-right: 10px; font-variant-numeric: tabular-nums; }
.step-hint { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; margin: 4px 0 0; }
.step-mock { display: flex; flex-direction: column; align-items: center; gap: 4px; padding-top: 8px; }
.w-index { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 26px auto 0; max-width: 640px; }
.w-index a { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--card); color: var(--ink); font-size: 13.5px; text-decoration: none; transition: border-color .2s ease, transform .2s var(--spring, ease); }
.w-index a:hover { border-color: var(--ink); transform: translateY(-1px); }
.w-index .st-num { margin-right: 6px; font-size: 12px; }

/* 家族の iPhone に届くお知らせ（記録したときに下から出る） */
.ph-card { display: flex; align-items: center; gap: 10px; width: 260px; max-width: 100%; padding: 10px 14px 10px 10px; border-radius: 18px; background: var(--card); border: 1px solid var(--line-strong); box-shadow: 0 8px 20px rgba(26, 22, 19, .1); opacity: 0; transform: translateY(12px) scale(.97); transition: opacity .3s ease, transform .5s var(--spring, ease); }
.ph-card.show { opacity: 1; transform: none; }
.ph-av { width: 34px; height: 34px; border-radius: 50%; background: #F2661F center 25% / cover no-repeat; flex: none; }
.ph-t { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.ph-t b { font-size: 13px; }
.ph-t small { font-size: 11px; color: var(--sub); }

.step.intro { border-top: 0; padding-top: 32px; padding-bottom: 40px; }
@media (min-width: 960px) {
  .tour { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; }
  .tour-stage { display: block; }
  .step { min-height: 72vh; display: flex; align-items: center; border-top: 0; padding: 0; opacity: .32; transition: opacity .4s ease; }
  .step.on { opacity: 1; }
  .step.intro { min-height: calc(100vh - 96px); text-align: left; padding: 0; }
  .step.intro .t-lead { margin-left: 0; }
  .step.intro .w-index { justify-content: flex-start; margin: 22px 0 0; max-width: none; }
  .step-mock { display: none; }
  .tour-sticky { position: sticky; top: calc(50vh - 240px); height: 480px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
  .tour-stage .watch { margin: 34px auto 44px; }
  .tour-stage .ph-card { position: absolute; left: 50%; bottom: 52px; transform: translate(-50%, 12px) scale(.97); z-index: 2; }
  .tour-stage .ph-card.show { transform: translate(-50%, 0); }
  .tour-stage .scr { position: absolute; inset: 0; opacity: 0; transform: scale(.94); transition: opacity .35s ease, transform .5s var(--spring, ease); pointer-events: none; }
  .tour-stage .scr.on { opacity: 1; transform: none; pointer-events: auto; }
  .tour-dots { display: flex; gap: 8px; }
  .tour-dot { width: 8px; height: 8px; border-radius: 4px; background: var(--line-strong); transition: width .35s var(--spring, ease), background-color .2s ease; }
  .tour-dot.on { width: 24px; background: var(--ink); }
}
@media (prefers-reduced-motion: reduce) {
  .tour-stage .scr, .step, .ph-card, .w-btn, .w-pill, .w-action, .w-ring-v, .w-done .w-ic, .w-toast { transition: none !important; animation: none !important; }
  .w-ring-v { stroke-dashoffset: 35; }
}
.w-toast { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
