/* わんこ手帳 サイト共通スタイル。スマホを先に作り、広い画面で段組みにする。 */
:root {
  color-scheme: light;
  --bg: #fff8f2;
  --surface: #ffffff;
  --cream: #fff1e8;
  --ink: #3a302c;
  --muted: #6b5f59;
  --line: #f0e1d6;
  --coral: #e65748;
  --coral-ink: #c93f32;   /* 白い文字をのせても読める濃さ */
  --coral-soft: #fde6dd;
  --green: #2f7a60;
  --green-soft: #e3f3ea;
  --teal: #1f7f8c;
  --teal-soft: #e0f2f4;
  --pink: #c84f69;
  --pink-soft: #fde7ec;
  --family: #2c8370;
  --family-soft: #def3ee;
  --radius: 20px;
  --shadow: 0 10px 30px rgba(58, 48, 44, .08);
  --font-body: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
  --font-round: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: .03em;
  line-break: strict;
  overflow-wrap: anywhere;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--coral-ink); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0 0 1em; padding-left: 1.4em; }
h1, h2, h3, h4 {
  font-family: var(--font-round);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: .04em;
  font-feature-settings: "palt";
  text-wrap: balance;
  word-break: auto-phrase; /* 対応ブラウザでは文節で改行する */
  margin: 0;
}
/* 見出しを文節で改行するためのまとまり */
.ib { display: inline-block; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); margin-inline: auto; }

/* ヘッダー */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255, 248, 242, .92);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { position: relative; display: flex; align-items: center; gap: 12px; min-height: 60px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--font-round); font-weight: 700; font-size: 1.15rem; margin-right: auto; }
.logo img { width: 36px; height: 36px; border-radius: 9px; }
.global-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.global-nav a { display: block; padding: 8px 12px; border-radius: 999px; color: var(--ink); text-decoration: none; font-size: .92rem; font-weight: 600; }
.global-nav a:hover, .global-nav a[aria-current="page"] { background: var(--coral-soft); color: var(--coral-ink); }
/* 開いた一覧は、ボタンではなくヘッダーの幅を基準に置く。ボタンが2段目や反対側（右から左の言語）に来ても、一覧が画面の外へ出ない。 */
.menu { display: none; }
.menu summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: .88rem; font-weight: 600; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--coral-soft); border-color: transparent; color: var(--coral-ink); }
.menu ul { position: absolute; inset-inline-end: 0; top: calc(100% - 2px); width: min(280px, 80vw); list-style: none; margin: 0; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.menu li a { display: block; padding: 12px 14px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; }
.menu li a:hover { background: var(--cream); }
@media (max-width: 860px) {
  .global-nav:not(.is-always) { display: none; }
  .menu { display: block; }
}

/* ボタン・バッジ */
.store-badge { display: inline-block; line-height: 0; }
.store-badge img { width: 168px; height: auto; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 22px; border-radius: 999px; font-weight: 700; text-decoration: none; letter-spacing: .05em; }
.btn-primary { background: var(--coral-ink); color: #fff; box-shadow: 0 6px 16px rgba(201, 63, 50, .25); }
.btn-primary:hover { background: #b5372b; }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .82rem; font-weight: 700; color: var(--muted); }
.chip-coral { background: var(--coral-soft); border-color: transparent; color: var(--coral-ink); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 20px; }
.cta-note { font-size: .82rem; color: var(--muted); margin: 10px 0 0; }

/* スマホの画面 */
.phone {
  position: relative;
  width: min(260px, 70vw);
  margin-inline: auto;
  padding: 9px;
  border-radius: 46px;
  background: #2d2b2c;
  box-shadow: 0 24px 50px rgba(58, 48, 44, .22), inset 0 0 0 2px #575153;
}
.phone img { border-radius: 38px; width: 100%; }
.phone-sm { width: min(210px, 56vw); border-radius: 38px; padding: 7px; }
.phone-sm img { border-radius: 31px; }
.phones { display: flex; justify-content: center; align-items: flex-end; gap: 0; }
.phones .phone:nth-child(2) { margin-inline-start: -48px; transform: translateY(28px); }

/* ヒーロー */
.hero { padding: 36px 0 56px; background: radial-gradient(120% 80% at 90% 10%, #fde3d6 0%, rgba(253, 227, 214, 0) 60%), var(--bg); overflow: hidden; }
.hero .wrap { display: grid; gap: 36px; align-items: center; }
.hero h1 { font-size: clamp(1.75rem, 6.2vw, 3rem); margin: 14px 0 16px; }
.news { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; width: fit-content; max-width: 100%; margin: 0 0 14px; padding: 6px 16px 6px 6px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); font-size: .85rem; font-weight: 700; color: var(--ink); }
.news-label { margin-right: 6px; padding: 2px 10px; border-radius: 999px; background: var(--coral-ink); color: #fff; font-size: .78rem; }
.hero h1 em { font-style: normal; color: var(--coral-ink); }
.hero .lead { font-size: 1.02rem; color: var(--muted); }
/* 写真の右下にアプリの画面を重ねる。大きさは幅に合わせて比率で決める。 */
.hero-visual { position: relative; width: min(100%, 440px); margin-inline: auto; aspect-ratio: 100 / 124; }
.hero-photo { position: absolute; left: 0; top: 0; width: 88%; border-radius: 28px; box-shadow: var(--shadow); }
.hero-visual .phone { position: absolute; right: 0; top: 24%; width: 42%; margin: 0; padding: 6px; border-radius: 28px; }
.hero-visual .phone img { border-radius: 23px; }
@media (min-width: 861px) {
  .hero { padding: 64px 0 88px; }
  .hero .wrap { grid-template-columns: 1.05fr .95fr; }
}

/* セクション */
.section { padding: 64px 0; }
.section-white { background: var(--surface); }
.section-cream { background: var(--cream); }
.section-head { text-align: center; margin-bottom: 36px; }
.section-head .eyebrow { display: block; font-family: var(--font-round); font-weight: 700; color: var(--coral-ink); letter-spacing: .14em; font-size: .85rem; margin-bottom: 6px; }
.section-head h2 { font-size: clamp(1.5rem, 4.8vw, 2.1rem); }
.section-head p { color: var(--muted); margin: 12px auto 0; max-width: 40em; }

/* お悩み */
.worries { display: grid; gap: 12px; list-style: none; padding: 0; margin: 0 auto; max-width: 760px; }
.worries li { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border-radius: 16px; padding: 16px 18px; border: 1px solid var(--line); font-weight: 600; }
.worries svg { flex: none; margin-top: 3px; color: var(--coral); }
.worries-answer { text-align: center; margin-top: 28px; font-family: var(--font-round); font-weight: 700; font-size: 1.2rem; }
@media (min-width: 861px) { .worries { grid-template-columns: 1fr 1fr; } }

/* 機能の紹介 */
.feature { display: grid; gap: 28px; align-items: center; padding: 32px 0; }
.feature + .feature { border-top: 1px dashed var(--line); }
.feature.solo { max-width: 760px; margin-inline: auto; grid-template-columns: 1fr; }
.feature .point { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-round); font-weight: 700; color: var(--accent, var(--coral-ink)); letter-spacing: .12em; font-size: .85rem; }
.feature .point::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.feature h3, .feature .h3-like { font-size: clamp(1.3rem, 4.2vw, 1.75rem); margin: 8px 0 14px; }
.feature ul { padding: 0; list-style: none; }
.feature li { position: relative; padding-left: 1.5em; margin-bottom: .4em; }
.feature li::before { content: ""; position: absolute; left: .2em; top: .7em; width: .55em; height: .55em; border-radius: 50%; background: var(--accent, var(--coral)); opacity: .8; }
.feature .more { font-weight: 700; }
.accent-green { --accent: var(--green); }
.accent-teal { --accent: var(--teal); }
.accent-pink { --accent: var(--pink); }
.accent-family { --accent: var(--family); }
@media (min-width: 861px) {
  .feature { grid-template-columns: 1.1fr .9fr; gap: 56px; padding: 48px 0; }
  .feature.reverse .feature-text { order: 2; }
}

/* カード */
.cards { display: grid; gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.card .icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--coral-soft); color: var(--coral-ink); margin-bottom: 10px; }
@media (min-width: 640px) { .cards-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 861px) { .cards-3 { grid-template-columns: repeat(3, 1fr); } .cards-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 640px) and (max-width: 860px) { .cards-3, .cards-4 { grid-template-columns: 1fr 1fr; } }

/* 使い方 */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 30px; }
.step::before { counter-increment: step; content: "STEP " counter(step); position: absolute; top: 0; left: 22px; transform: translateY(-50%); background: var(--coral-ink); color: #fff; font-family: var(--font-round); font-weight: 700; font-size: .78rem; letter-spacing: .1em; padding: 4px 12px; border-radius: 999px; }

/* 料金 */
.plans { display: grid; gap: 16px; max-width: 880px; margin: 0 auto; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; }
.plan.featured { border: 2px solid var(--coral); box-shadow: var(--shadow); position: relative; }
.plan .badge { position: absolute; top: -14px; left: 22px; background: var(--coral-ink); color: #fff; font-size: .8rem; font-weight: 700; padding: 3px 12px; border-radius: 999px; }
.plan h3 { font-size: 1.2rem; }
.plan .price { font-family: var(--font-round); font-weight: 700; font-size: 2rem; margin: 6px 0 2px; }
.plan .price small { font-size: .9rem; color: var(--muted); margin-left: 4px; }
.plan ul { padding-left: 1.2em; margin-top: 14px; }
.plan li { margin-bottom: .35em; }
@media (min-width: 861px) { .plans { grid-template-columns: 1fr 1.15fr; } }

/* よくある質問 */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; margin-bottom: 12px; }
.faq summary { cursor: pointer; list-style: none; display: flex; gap: 12px; align-items: flex-start; padding: 18px 48px 18px 18px; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--coral-ink); color: #fff; font-family: var(--font-round); font-size: .9rem; margin-top: -1px; }
.faq summary::after { content: ""; position: absolute; right: 20px; top: 26px; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); top: 30px; }
.faq .answer { padding: 0 18px 16px 58px; color: var(--ink); }
.faq .answer p:last-child { margin-bottom: 0; }

/* 最後の案内 */
.cta-band { text-align: center; background: linear-gradient(160deg, #fde3d6, #fff1e8 60%); padding: 56px 0; }
.cta-band h2 { font-size: clamp(1.4rem, 4.6vw, 2rem); margin-bottom: 12px; }
.cta-band .app { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 16px; }
.cta-band .app img { width: 72px; height: 72px; border-radius: 18px; box-shadow: var(--shadow); }
.cta-band .cta-row { justify-content: center; }

/* パンくず */
.breadcrumb { font-size: .82rem; color: var(--muted); padding: 14px 0 0; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.breadcrumb li + li::before { content: "›"; margin: 0 6px 0 2px; }
.breadcrumb a { color: var(--muted); }

/* 下層ページの見出し */
.page-hero { padding: 28px 0 40px; }
.page-hero .wrap { display: grid; gap: 28px; align-items: center; }
.page-hero h1 { font-size: clamp(1.7rem, 5.6vw, 2.5rem); margin: 10px 0 14px; }
.page-hero .lead { color: var(--muted); }
@media (min-width: 861px) { .page-hero .wrap { grid-template-columns: 1.15fr .85fr; } }

/* 読みもの */
.article { background: var(--surface); border-radius: var(--radius); padding: 28px 20px 36px; box-shadow: var(--shadow); margin: 20px auto 56px; }
.article h1 { font-size: clamp(1.55rem, 5vw, 2.15rem); margin: 8px 0 12px; }
.article .meta { font-size: .82rem; color: var(--muted); margin-bottom: 20px; }
.article h2 { font-size: 1.32rem; margin: 40px 0 14px; padding: 4px 0 4px 14px; border-left: 5px solid var(--coral); }
.article h3 { font-size: 1.08rem; margin: 28px 0 10px; }
.article .toc { background: var(--cream); border-radius: 16px; padding: 16px 20px; margin: 24px 0; }
.article .toc p { font-weight: 700; margin-bottom: 6px; }
.article .toc ol { margin: 0; }
.note { background: var(--cream); border-radius: 14px; padding: 14px 18px; font-size: .92rem; }
.note-warn { background: #fff4e5; border-left: 4px solid #e2a03f; }
.app-box { display: grid; gap: 16px; align-items: center; background: var(--coral-soft); border-radius: var(--radius); padding: 22px; margin-top: 36px; }
.app-box h2 { border: 0; padding: 0; margin: 0 0 6px; font-size: 1.2rem; }
@media (min-width: 640px) { .app-box { grid-template-columns: auto 1fr; } .article { padding: 40px 48px 48px; } }
.article figure { margin: 24px 0; }
.article figcaption { font-size: .82rem; color: var(--muted); text-align: center; margin-top: 8px; }
.guide-list { display: grid; gap: 16px; }
.guide-card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; color: var(--ink); text-decoration: none; box-shadow: var(--shadow); }
.guide-card:hover { border-color: var(--coral); }
.guide-card .tag { font-size: .78rem; font-weight: 700; color: var(--coral-ink); }
.guide-card h3 { font-size: 1.12rem; margin: 6px 0 8px; }
.guide-card p { color: var(--muted); font-size: .92rem; margin: 0; }
@media (min-width: 861px) { .guide-list { grid-template-columns: repeat(3, 1fr); } }

/* 文書（サポート・プライバシー） */
.doc { background: var(--surface); border-radius: var(--radius); padding: 28px 20px 36px; box-shadow: var(--shadow); margin: 20px auto 56px; }
.doc h1 { font-size: clamp(1.5rem, 5vw, 2rem); margin-bottom: 8px; }
.doc h2 { font-size: 1.2rem; margin: 36px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.doc h3 { font-size: 1.02rem; margin: 22px 0 6px; }
.contact { background: var(--cream); border-radius: 16px; padding: 18px 20px; margin: 16px 0; }
.contact a { font-size: 1.15rem; font-weight: 700; }
@media (min-width: 640px) { .doc { padding: 40px 48px 48px; } }

/* フッター */
.site-footer { background: #3a302c; color: #f3e9e3; padding: 48px 0 32px; font-size: .9rem; }
.site-footer a { color: #f3e9e3; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; gap: 28px; }
.footer-grid h2 { font-size: .95rem; margin-bottom: 10px; color: #fff; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 6px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-round); font-weight: 700; font-size: 1.1rem; margin-bottom: 8px; }
.footer-brand img { width: 40px; height: 40px; border-radius: 10px; }
.copyright { margin-top: 32px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .15); font-size: .78rem; color: #cbbdb5; }
/* Ohm Software publisher lockup (footer). The image is an exact copy of https://ohm.software/assets/ohm-software.svg */
.ohm-publisher { margin: 6px 0 0; padding: 0; line-height: 0; }
.ohm-publisher a { display: inline-flex; align-items: center; min-height: 44px; margin: 0 -8px; padding: 0 8px; border: 0; border-radius: 10px; background: none; box-shadow: none; text-decoration: none; }
.ohm-publisher img { display: block; width: 179px; height: 24px; max-width: 100%; margin: 0; border: 0; border-radius: 0; box-shadow: none; }
.ohm-publisher a:hover { opacity: .8; }
.ohm-publisher a:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; opacity: 1; }
@media (min-width: 861px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

/* スマホで下に出すダウンロードの案内 */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: none; align-items: center; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(58, 48, 44, .08); transform: translateY(110%); transition: transform .25s ease; }
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta img.app { width: 40px; height: 40px; border-radius: 10px; }
.sticky-cta .text { flex: 1; min-width: 0; font-size: .8rem; line-height: 1.4; }
.sticky-cta .text strong { display: block; font-size: .92rem; }
.sticky-cta .store-badge img { width: 120px; }
@media (max-width: 860px) {
  .sticky-cta { display: flex; }
  body.has-sticky { padding-bottom: 72px; }
}
/* 幅がとても狭い画面では、下のダウンロードの帯が3行になって高くなる（長い言語）。フッターの最後の行と発行元マークが帯に隠れないよう、余白を足す。 */
@media (max-width: 340px) {
  body.has-sticky { padding-bottom: 136px; }
}
/* 「1タップ記録」の見本（トップページ）。色はアプリの「今日」タブのタイルに合わせる。 */
.tapdemo-stage { display: grid; gap: 14px; max-width: 880px; margin-inline: auto; }
.tapdemo-card { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 18px; box-shadow: var(--shadow); min-width: 0; }
.tapdemo-device { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 12px; font-size: .82rem; font-weight: 700; color: var(--muted); }
.tapdemo-device .chip { margin-inline-start: auto; font-size: .74rem; padding: 2px 10px; }
.tapdemo-dog { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-family: var(--font-round); font-size: 1.1rem; }
.tapdemo-dog img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.tapdemo-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tapdemo-buttons button {
  display: grid; justify-items: center; gap: 2px; min-height: 104px; padding: 12px 6px; border: 0; border-radius: 20px;
  font: inherit; line-height: 1.4; color: var(--ink); background: var(--tile); cursor: pointer;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.tapdemo-buttons button:disabled { cursor: default; color: var(--ink); }
.tapdemo-buttons svg { color: var(--tile-ink); }
.tapdemo-buttons .label { font-weight: 700; font-size: .9rem; color: var(--tile-ink); }
.tapdemo-buttons .count { font-family: var(--font-round); font-weight: 700; font-size: 1.2rem; }
.tapdemo-buttons button:focus-visible, .tapdemo-undo button:focus-visible { outline: 3px solid var(--coral-ink); outline-offset: 3px; }
.tapdemo-stage.is-live .tapdemo-buttons button:hover { box-shadow: inset 0 0 0 2px var(--tile-ink); }
.tapdemo-stage.is-live .tapdemo-buttons button:active { transform: scale(.97); }
.k-meal { --tile: #f8e9d9; --tile-ink: #9a5a12; }
.k-water { --tile: #e0eef8; --tile-ink: #24658f; }
.k-pee { --tile: #f9edc9; --tile-ink: #7d5e00; }
.k-poop { --tile: #fde1de; --tile-ink: #b3362b; }
.tapdemo-undo { margin: 12px 0 0; min-height: 44px; text-align: center; }
.tapdemo-undo button { min-height: 44px; padding: 8px 20px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-weight: 700; font-size: .88rem; cursor: pointer; }
.tapdemo-undo button:disabled { color: var(--muted); cursor: default; opacity: .6; }
.tapdemo-family h3 { font-size: 1.05rem; margin: 0 0 8px; }
.tapdemo-log { list-style: none; margin: 0; padding: 0; }
.tapdemo-log li { display: grid; grid-template-columns: 3.2em 1fr auto; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); font-size: .94rem; }
.tapdemo-log li:first-child { border-top: 0; }
.tapdemo-log time { font-variant-numeric: tabular-nums; color: var(--muted); font-size: .86rem; }
.tapdemo-log .what { display: flex; align-items: center; gap: 8px; font-weight: 700; min-width: 0; }
.tapdemo-log .what svg { flex: none; width: 30px; height: 30px; padding: 6px; border-radius: 10px; background: var(--tile); color: var(--tile-ink); }
.tapdemo-log .who { font-size: .78rem; font-weight: 700; color: var(--muted); background: var(--cream); border-radius: 999px; padding: 2px 10px; }
.tapdemo-sync { display: flex; justify-content: center; gap: 8px; }
.tapdemo-sync span { width: 8px; height: 8px; border-radius: 50%; background: var(--family); opacity: .28; }
.tapdemo-note { text-align: center; max-width: 44em; margin: 18px auto 0; }
@media (min-width: 720px) {
  .tapdemo-stage { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; }
  .tapdemo-sync { flex-direction: row; }
  .tapdemo-card { padding: 22px; }
}
@media (max-width: 719px) { .tapdemo-sync { flex-direction: column; align-items: center; gap: 5px; } }
@media (prefers-reduced-motion: no-preference) {
  .tapdemo-buttons button { transition: transform .12s ease, box-shadow .15s ease; }
  .tapdemo-buttons button.is-tapped .count { animation: tapdemo-pop .32s ease; }
  .tapdemo-log li.is-new { animation: tapdemo-in .38s .26s ease both; }
  .tapdemo-sync.is-sending span { animation: tapdemo-dot .5s ease both; }
  .tapdemo-sync.is-sending span:nth-child(2) { animation-delay: .09s; }
  .tapdemo-sync.is-sending span:nth-child(3) { animation-delay: .18s; }
}
@keyframes tapdemo-pop { 40% { transform: scale(1.22); } }
@keyframes tapdemo-in { from { opacity: 0; transform: translateY(-8px); background: var(--family-soft); } }
@keyframes tapdemo-dot { 50% { opacity: 1; transform: scale(1.5); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sticky-cta { transition: none; }
}

/* 日本語以外のページ（サポート・プライバシーポリシー） */
.global-nav.is-always { display: block; }
.global-nav.is-always a { padding: 8px 10px; font-size: .88rem; }
.language-list { columns: 2; column-gap: 16px; }
[dir="rtl"] .logo { margin-right: 0; margin-left: auto; }
[dir="rtl"] .faq summary::after { right: auto; left: 20px; }
[dir="rtl"] .faq .answer { padding: 0 58px 16px 18px; }
[dir="rtl"] .doc ul, [dir="rtl"] .doc ol { padding-right: 1.4em; padding-left: 0; }
[dir="rtl"] .article h2 { padding: 4px 14px 4px 0; border-left: 0; border-right: 5px solid var(--coral); }
[dir="rtl"] .article ul, [dir="rtl"] .article ol { padding-right: 1.4em; padding-left: 0; }
.global-nav.is-always a, body[class*="lang-"] .logo { white-space: nowrap; }
@media (max-width: 480px) {
  body[class*="lang-"] .site-header .wrap { flex-wrap: wrap; row-gap: 4px; }
  body[class*="lang-"] .global-nav.is-always { width: 100%; }
  body[class*="lang-"] .global-nav.is-always ul { justify-content: flex-start; }
}
/* 日本語より長い言語は、メニューを1語ずつ折り返さず、狭い画面では早めにメニューボタンにする。 */
body[class*="lang-"] .global-nav a { white-space: nowrap; }
@media (max-width: 1400px) {
  body[class*="lang-"] .global-nav:not(.is-always) { display: none; }
  body[class*="lang-"] .menu { display: block; }
}

/* 上部の言語切り替え */
.lang-menu { position: relative; margin-left: 8px; }
.lang-menu summary { list-style: none; display: flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font-size: .88rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu[open] summary { background: var(--coral-soft); border-color: transparent; color: var(--coral-ink); }
.lang-menu ul { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; min-width: 190px; margin: 0; padding: 8px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
[dir="rtl"] .lang-menu ul { right: auto; left: 0; }
[dir="rtl"] .lang-menu { margin-left: 0; margin-right: 8px; }
.lang-menu li a { display: block; padding: 10px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; }
.lang-menu li a:hover, .lang-menu li a[aria-current="page"] { background: var(--coral-soft); color: var(--coral-ink); }
@media (max-width: 480px) { .lang-menu summary span { display: none; } .lang-menu summary { padding: 6px 10px; } }
