/* tonarly.com — "Daylight Floor". Tokens first, then type, layout, the floor
   (tiles), each section, motion, dark theme, reduced motion.
   紹介サイトのスタイル。トークン → 文字 → 配置 → タイル → 各節 → 動き → ダーク → 動き抑制。 */

/* ------------------------------------------------------------- fonts */
@font-face {
  font-family: 'Zen Kaku';
  font-weight: 400;
  font-display: swap;
  src: url(/site/assets/fonts/zen-400.93b66be7.woff2) format('woff2');
}
@font-face {
  font-family: 'Zen Kaku';
  font-weight: 700;
  font-display: swap;
  src: url(/site/assets/fonts/zen-700.7400779a.woff2) format('woff2');
}
@font-face {
  font-family: 'Zen Kaku';
  font-weight: 900;
  font-display: swap;
  src: url(/site/assets/fonts/zen-900.a4de9d41.woff2) format('woff2');
}
@font-face {
  font-family: 'Bricolage';
  font-weight: 800;
  font-display: swap;
  src: url(/site/assets/fonts/bricolage-800.76529039.woff2) format('woff2');
}
@font-face {
  font-family: 'Bricolage';
  font-weight: 600;
  font-display: swap;
  src: url(/site/assets/fonts/bricolage-600.4d34a830.woff2) format('woff2');
}
@font-face {
  font-family: 'Bricolage';
  font-weight: 400;
  font-display: swap;
  src: url(/site/assets/fonts/bricolage-400.31f0fa5b.woff2) format('woff2');
}
@font-face {
  font-family: 'Bricolage';
  font-weight: 200;
  font-display: swap;
  src: url(/site/assets/fonts/bricolage-200.daead4ce.woff2) format('woff2');
}
/* Latin inside Japanese text: the same faces, sized to match the kanji. */
@font-face {
  font-family: 'Bricolage JA';
  font-weight: 800;
  font-display: swap;
  size-adjust: 106%;
  src: url(/site/assets/fonts/bricolage-800.76529039.woff2) format('woff2');
}
@font-face {
  font-family: 'Bricolage JA';
  font-weight: 600;
  font-display: swap;
  size-adjust: 106%;
  src: url(/site/assets/fonts/bricolage-600.4d34a830.woff2) format('woff2');
}
@font-face {
  font-family: 'Bricolage JA';
  font-weight: 400;
  font-display: swap;
  size-adjust: 106%;
  src: url(/site/assets/fonts/bricolage-400.31f0fa5b.woff2) format('woff2');
}

/* ------------------------------------------------------------ tokens */
:root {
  color-scheme: light dark;
  --ground: #f4f5f8;
  --surface: #ffffff;
  --raised: #ffffff;
  --sunken: #ebedf3;
  --line: #dfe2ea;
  --line-strong: #c5cad7;
  --ink: #1c2030;
  --ink-2: #474d63;
  --ink-muted: #646982;
  --accent: #4c60dc;
  --accent-hover: #3f51c4;
  --accent-ink: #ffffff;
  --accent-text: #4c60dc;
  --accent-soft: #e8ebfc;
  --focus: #3d4fc9;
  --note: #fde68a;
  --note-edge: #f2c94c;
  --note-ink: #6b3a0a;
  --thanks: #be185d;
  --thanks-soft: rgba(236, 72, 153, 0.14);
  --mark-a: #667eea;
  --mark-b: #7c3aed;
  --wash: #eef0f7;
  --map-ocean: #e6eaf3;
  --map-land: #b9c3d6;
  --st-online: #22c55e;
  --st-away: #f59e0b;
  --st-meeting: #a855f7;
  --st-break: #14b8a6;
  --st-dnd: #ef4444;
  --st-offline: #9ca3af;
  --st-online-text: #15803d;
  --st-away-text: #b45309;
  --st-meeting-text: #7e22ce;
  --st-break-text: #0f766e;
  --st-dnd-text: #b91c1c;
  --st-offline-text: #4b5563;
  --shadow-desk: 0 1px 1px rgba(28, 32, 48, 0.06), 0 10px 28px -8px rgba(28, 32, 48, 0.18);
  --shadow-lift: 0 6px 16px -6px rgba(28, 32, 48, 0.2);
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 16px;
  --r-note: 12px;
  --r-pill: 999px;
  --tile: 136px;
  --tile-gap: 16px;
  --ring: 3px;
  --measure: 680px;
  --content: 1200px;
  --wide: 1360px;
  --gutter: 20px;
  --header-h: 56px;
  --dur-1: 120ms;
  --dur-2: 200ms;
  --dur-3: 320ms;
  --dur-4: 480ms;
  --dur-5: 640ms;
  --ease-settle: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-move: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-exit: cubic-bezier(0.4, 0, 1, 1);
  --ease-spring: linear(0, 0.3 8%, 0.84 20%, 1.06 32%, 1.03 44%, 0.99 60%, 1);
  --font-ja: 'Zen Kaku', 'Hiragino Sans', 'BIZ UDPGothic', 'Yu Gothic', Meiryo, sans-serif;
  --font-latin: 'Bricolage', system-ui, sans-serif;
  --font-body: var(--font-ja);
  --font-display: var(--font-ja);
  --track-heading: -0.02em;
  --track-body: 0.04em;
  --lh-body: 1.9;
  --lh-lead: 1.85;
  --lh-h1: 1.32;
  --lh-h2: 1.42;
  --lh-display: 1.22;
  --w-display: 900;
  --w-h: 700;
}
:root:lang(ja) {
  --font-body: 'Bricolage JA', var(--font-ja);
  --font-display: 'Bricolage JA', var(--font-ja);
}
:lang(ja) p,
:lang(ja) li,
:lang(ja) dd,
:lang(ja) dt,
:lang(ja) summary {
  word-break: auto-phrase;
}
:root:lang(en) {
  --font-body: var(--font-latin);
  --font-display: var(--font-latin);
  --track-heading: -0.025em;
  --track-body: 0;
  --lh-body: 1.6;
  --lh-lead: 1.5;
  --lh-h1: 1.05;
  --lh-h2: 1.15;
  --lh-display: 0.98;
  --w-display: 800;
  --w-h: 600;
}
@media (min-width: 600px) {
  :root {
    --gutter: 32px;
    --tile: 112px;
  }
}
@media (min-width: 900px) {
  :root {
    --gutter: 48px;
    --header-h: 64px;
  }
}
@media (min-width: 1200px) {
  :root {
    --gutter: 64px;
    --tile: 136px;
  }
}
@media (min-width: 900px) and (max-height: 820px) {
  :root {
    --tile: 112px;
  }
}
/* Narrow desktops: eight 120 px columns still fit the content width. 狭いデスクトップは 120px で 8 列。 */
@media (min-width: 1200px) and (max-width: 1340px) {
  :root {
    --tile: 120px;
  }
}

/* ------------------------------------------------------------- reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: var(--lh-body);
  letter-spacing: var(--track-body);
  font-feature-settings: 'kern', 'palt' 0;
  line-break: strict;
  text-autospace: normal;
  text-wrap: pretty;
  -webkit-font-smoothing: antialiased;
}
:lang(en) body {
  font-size: 18px;
}
h1,
h2,
h3,
p,
ul,
ol,
dl,
figure {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
img,
svg,
video {
  display: block;
  max-width: 100%;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  letter-spacing: inherit;
}
a {
  color: var(--accent-text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}
a:hover {
  text-decoration-thickness: 2px;
}
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.nowrap {
  white-space: nowrap;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
html:not(.js) .js-only {
  display: none !important;
}
.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 8px 12px;
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-desk);
}
.skip:focus {
  top: 12px;
}

/* --------------------------------------------------------------- type */
.display,
.h1,
.h2,
.h3 {
  font-family: var(--font-display);
  font-weight: var(--w-h);
  letter-spacing: var(--track-heading);
  text-wrap: balance;
  word-break: auto-phrase;
}
.display {
  font-weight: var(--w-display);
  font-size: clamp(42px, 3.4vw + 28px, 84px);
  line-height: var(--lh-display);
}
.h1 {
  font-weight: var(--w-display);
  font-size: clamp(30px, 1.9vw + 22px, 52px);
  line-height: var(--lh-h1);
}
.h2 {
  font-size: clamp(24px, 1vw + 20px, 34px);
  line-height: var(--lh-h2);
}
.h3 {
  font-size: clamp(19px, 0.3vw + 18px, 22px);
  line-height: 1.5;
}
:lang(en) .display {
  font-size: clamp(52px, 4.5vw + 32px, 104px);
  letter-spacing: -0.025em;
}
:lang(en) .h1 {
  font-size: clamp(38px, 2.2vw + 28px, 64px);
}
:lang(en) .h2 {
  font-size: clamp(28px, 1vw + 24px, 40px);
}
:lang(en) .h3 {
  font-size: clamp(20px, 0.3vw + 19px, 24px);
}
.lead {
  font-size: clamp(17px, 0.3vw + 16px, 20px);
  line-height: var(--lh-lead);
  color: var(--ink-2);
  max-width: var(--measure);
}
:lang(en) .lead {
  font-size: clamp(19px, 0.3vw + 18px, 22px);
}
.body {
  max-width: var(--measure);
}
.small {
  font-size: 15px;
  line-height: 1.75;
}
:lang(en) .small {
  line-height: 1.5;
}
.caption {
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: 0.06em;
}
:lang(en) .caption {
  letter-spacing: 0.01em;
  line-height: 1.45;
}
.ink-2 {
  color: var(--ink-2);
}
.ink-muted {
  color: var(--ink-muted);
}
.eyebrow {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: var(--w-h);
  letter-spacing: 0.12em;
  color: var(--ink-muted);
  line-height: 1.2;
  margin-bottom: 20px;
}
:lang(en) .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
[lang='en']:not(:lang(en) *) {
  font-family: var(--font-latin);
}
.price,
.story-clock,
.rhythm-time,
.calc-amount,
.story-time {
  font-family: var(--font-latin);
  font-variant-numeric: lining-nums tabular-nums;
}

/* ------------------------------------------------------------ layout */
.container {
  width: 100%;
  max-width: calc(var(--content) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container-wide {
  width: 100%;
  max-width: calc(var(--wide) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}
main > section,
.chapters > .chapter {
  padding: 96px 0;
}
@media (min-width: 900px) {
  main > section,
  .chapters > .chapter {
    padding: 160px 0;
  }
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: 32px;
}
.micro {
  margin-top: 16px;
  font-size: 13px;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
}

/* ----------------------------------------------------------- buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: var(--w-h);
  font-size: 16px;
  line-height: 1.2;
  text-decoration: none;
  letter-spacing: 0;
  white-space: nowrap;
  transition: background var(--dur-2), border-color var(--dur-2), color var(--dur-2),
    transform var(--dur-1);
}
.button:hover {
  border-color: var(--ink-muted);
  text-decoration: none;
}
.button:active {
  transform: translateY(1px);
}
.button:disabled {
  opacity: 0.5;
  cursor: default;
}
.button-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.button-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}
.button-lg {
  min-height: 52px;
  padding: 0 24px;
  font-size: 17px;
}
.button-small {
  min-height: 36px;
  padding: 0 14px;
  font-size: 14px;
}
.button-thanks {
  border-color: var(--thanks);
  color: var(--thanks);
}
.button .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--st-online);
  transition: transform var(--dur-2) var(--ease-settle);
}
.button:hover .dot {
  transform: scale(1.25);
}
.text-link {
  font-family: var(--font-display);
  font-weight: var(--w-h);
}
.text-button {
  color: var(--accent-text);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  white-space: nowrap;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: var(--surface);
  font-size: 14px;
  line-height: 1.2;
  color: var(--ink-2);
  letter-spacing: 0;
  transition: background var(--dur-1), color var(--dur-1), border-color var(--dur-1);
}
.chip:hover {
  border-color: var(--ink-muted);
  color: var(--ink);
}
.chip.is-active,
.chip[aria-pressed='true'] {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--ink);
}
.chip-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: none;
  background: var(--st-offline);
}
.status-dot[data-status='online'] {
  background: var(--st-online);
}
.status-dot[data-status='away'] {
  background: var(--st-away);
}
.status-dot[data-status='meeting'] {
  background: var(--st-meeting);
}
.status-dot[data-status='break'] {
  background: var(--st-break);
}
.status-dot[data-status='dnd'] {
  background: var(--st-dnd);
}
.segmented {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
}
.segment {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 8px;
  font-size: 15px;
  color: var(--ink-2);
}
.segment[aria-pressed='true'] {
  background: var(--accent-soft);
  color: var(--ink);
  font-weight: var(--w-h);
}

/* ------------------------------------------------------------ header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: transparent;
  transition: background var(--dur-2), border-color var(--dur-2);
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: var(--surface);
  border-color: var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
  max-width: calc(var(--wide) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}
.logo-mark {
  width: 30px;
  height: auto;
}
.mark-a {
  fill: var(--mark-a);
}
.mark-b {
  fill: var(--mark-b);
}
.mark-dot {
  fill: var(--st-online);
}
.logo-word {
  font-family: var(--font-latin);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 1;
}
.nav {
  display: none;
  align-items: center;
  gap: 28px;
}
.nav a:not(.button) {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 15px;
  font-weight: var(--w-h);
  font-family: var(--font-display);
  letter-spacing: 0;
}
.nav a:not(.button):hover {
  color: var(--ink);
}
.nav-mobile-extra {
  display: none;
}
.header-tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.lang {
  font-size: 14px;
  color: var(--ink-2);
  text-decoration: none;
  padding: 6px 4px;
}
.lang:hover {
  color: var(--ink);
}
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-2);
}
.theme-toggle:hover {
  background: var(--accent-soft);
  color: var(--ink);
}
.theme-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
.theme-toggle .moon {
  display: none;
}
[data-theme='dark'] .theme-toggle .sun {
  display: none;
}
[data-theme='dark'] .theme-toggle .moon {
  display: block;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .theme-toggle .sun {
    display: none;
  }
  :root:not([data-theme='light']) .theme-toggle .moon {
    display: block;
  }
}
.header-cta {
  display: none;
  min-height: 40px;
  font-size: 15px;
}
.menu-toggle {
  width: 44px;
  height: 44px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--dur-2), opacity var(--dur-2);
}
.menu-toggle[aria-expanded='true'] span:first-child {
  transform: translateY(4px) rotate(45deg);
}
.menu-toggle[aria-expanded='true'] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}
@media (max-width: 899px) {
  .nav {
    display: none;
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    z-index: 49;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 24px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-desk);
  }
  .nav.is-open {
    display: flex;
  }
  .nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 17px;
  }
  .nav-mobile-extra {
    display: block;
    padding-top: 16px;
  }
  .nav-mobile-extra .button {
    width: 100%;
  }
  html.menu-open .header {
    background: var(--surface);
    border-color: var(--line);
  }
}
@media (min-width: 900px) {
  .nav {
    display: flex;
  }
  .header-cta {
    display: inline-flex;
  }
  .menu-toggle {
    display: none;
  }
}

/* mobile bar: thumbs' reach. 親指の届く場所。 */
.mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 48;
  display: flex;
  gap: 10px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: var(--surface);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform var(--dur-3) var(--ease-settle);
}
.mobile-bar .button {
  flex: 1;
  min-height: 52px;
}
.mobile-bar .button-primary {
  flex: 2;
}
html.js .mobile-bar.is-on {
  transform: none;
}
@media (min-width: 900px) {
  .mobile-bar {
    display: none;
  }
}

/* ------------------------------------------------------------- floor */
.floor {
  display: grid;
  gap: var(--tile-gap);
  grid-template-columns: repeat(auto-fill, var(--tile));
  grid-auto-rows: max-content;
}
.tile {
  position: relative;
  width: var(--tile);
}
.tile-box {
  position: relative;
  display: block;
  width: var(--tile);
  height: var(--tile);
  border-radius: 22%;
  background: var(--surface);
  overflow: visible;
  text-align: left;
  transition: transform var(--dur-2) var(--ease-settle), box-shadow var(--dur-2);
}
button.tile-box {
  cursor: pointer;
}
.tile-image {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 22%;
  background: linear-gradient(160deg, #eef0f7, #dce2f1);
}
.tile-figure {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.7))
    drop-shadow(0 6px 6px rgba(28, 32, 48, 0.14));
}
.tile:nth-child(3n) .tile-image {
  background: linear-gradient(160deg, #f2eee7, #e2dacb);
}
.tile:nth-child(3n + 1) .tile-image {
  background: linear-gradient(160deg, #eef3f0, #d7e3db);
}
.tile:nth-child(5n) .tile-image {
  background: linear-gradient(160deg, #f4eef0, #e8d8dd);
}
.tile-ring {
  position: absolute;
  inset: calc(-1 * var(--ring) - 3px);
  border-radius: calc(22% + 4px);
  border: var(--ring) solid var(--st-offline);
  pointer-events: none;
  transition: border-color var(--dur-3) var(--ease-move), border-width var(--dur-2);
}
.tile[data-status='online'] .tile-ring {
  border-color: var(--st-online);
}
.tile[data-status='away'] .tile-ring {
  border-color: var(--st-away);
}
.tile[data-status='meeting'] .tile-ring {
  border-color: var(--st-meeting);
}
.tile[data-status='break'] .tile-ring {
  border-color: var(--st-break);
}
.tile[data-status='dnd'] .tile-ring {
  border-color: var(--st-dnd);
}
.tile[data-status='offline'] .tile-image {
  opacity: 0.35;
  filter: grayscale(1);
}
.tile[data-status='away'] .tile-figure {
  transform: translateX(34%);
  opacity: 0.55;
  transition: transform var(--dur-5) var(--ease-move), opacity var(--dur-5);
}
.tile-caption {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 2px;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.tile-name {
  font-family: var(--font-display);
  font-weight: var(--w-h);
  font-size: 15px;
  line-height: 1.3;
  letter-spacing: 0;
}
.tile-status {
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink-muted);
  letter-spacing: 0;
  white-space: nowrap;
}
.tile-remote {
  font-family: var(--font-latin);
  color: var(--ink-2);
}
.tile-remote + .tile-status {
  display: none;
}
.tile-caption {
  min-height: 56px;
}
.tile[data-status='online'] .tile-status {
  color: var(--st-online-text);
}
.tile[data-status='away'] .tile-status {
  color: var(--st-away-text);
}
.tile[data-status='meeting'] .tile-status {
  color: var(--st-meeting-text);
}
.tile[data-status='break'] .tile-status {
  color: var(--st-break-text);
}
.tile[data-status='dnd'] .tile-status {
  color: var(--st-dnd-text);
}
.tile-open {
  position: absolute;
  left: 8px;
  top: 8px;
  padding: 3px 8px;
  white-space: nowrap;
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--st-online-text);
  font-size: 11px;
  font-weight: var(--w-h);
  line-height: 1.3;
  letter-spacing: 0;
  box-shadow: var(--shadow-lift);
  display: none;
  align-items: center;
  gap: 5px;
}
.tile-open::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--st-online);
  animation: breath 2.4s ease-in-out infinite;
}
.tile[data-open] .tile-open,
.tile.is-open-to-chat .tile-open {
  display: inline-flex;
}
.tile.is-pair .tile-open,
.tile[data-status='meeting'] .tile-open {
  display: none;
}
.tile.is-pair .tile-mood {
  display: none;
}
.tile-mood {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  padding: 4px 8px;
  border-radius: var(--r-xs);
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.35;
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity var(--dur-2), transform var(--dur-2);
  pointer-events: none;
}
.tile:hover .tile-mood,
.tile.is-selected .tile-mood,
.tile-box:focus-visible .tile-mood {
  opacity: 1;
  transform: none;
}
.tile:hover .tile-box,
.tile.is-selected .tile-box {
  transform: translateY(-2px);
}
.tile:hover .tile-ring,
.tile.is-selected .tile-ring {
  border-width: 4px;
}
.tile-chip {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  padding: 4px 8px;
  border-radius: var(--r-xs);
  background: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  line-height: 1.35;
  letter-spacing: 0;
  box-shadow: var(--shadow-lift);
  opacity: 0;
  transition: opacity var(--dur-3);
  word-break: keep-all;
}
.tile-chip-thanks {
  color: var(--thanks);
  font-weight: var(--w-h);
}
.tile-chip-mood {
  white-space: nowrap;
}
.tile-chip-count {
  left: auto;
  right: 8px;
  bottom: auto;
  top: 8px;
  min-width: 24px;
  text-align: center;
  background: var(--st-dnd);
  color: #fff;
  font-weight: 700;
  border-radius: var(--r-pill);
  opacity: 1;
}
.tile-seat .tile-box {
  background: transparent;
  border: 1.5px dashed var(--line-strong);
}
.tile-seat.is-filled .tile-box,
.tile-seat.is-pair .tile-box {
  border-style: solid;
  border-color: transparent;
}
.tile-seat:not(.is-pair):not(.is-filled) .tile-ring {
  display: none;
}
.floor-hero .tile[data-you].is-pair .tile-caption {
  min-height: 44px;
}
.tile-seat .tile-seat-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
  text-align: center;
  padding: 8px;
}
.tile-seat[data-status] .tile-image-ghost {
  opacity: 0;
  filter: none;
  transition: opacity var(--dur-2);
}
.tile-seat.is-filled[data-status] .tile-image-ghost {
  opacity: 1;
}
.tile-seat.is-filled .tile-seat-label {
  opacity: 0;
}
.tile-seat.is-filled .tile-ring {
  border-color: var(--st-online);
}
.desk {
  width: var(--tile);
  height: var(--tile);
  border: 1.5px dashed var(--line-strong);
  border-radius: 22%;
  opacity: 0.35;
}
.tile-action-hint {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 4px 8px;
  border-radius: var(--r-xs);
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: var(--w-h);
  letter-spacing: 0;
  opacity: 0;
  transition: opacity var(--dur-2);
}
.tile:hover .tile-action-hint,
.tile-box:focus-visible .tile-action-hint {
  opacity: 1;
}

/* notes on tiles */
.office-note {
  position: absolute;
  left: 6%;
  right: 4%;
  top: 52%;
  word-break: auto-phrase;
  padding: 8px 10px;
  font-size: 11px;
  line-height: 1.4;
  z-index: 3;
  border-radius: var(--r-note);
  background: var(--note);
  color: var(--note-ink);
  box-shadow: var(--shadow-desk);
  transform: rotate(-2deg) translateY(-20px) scale(0.9);
  opacity: 0;
  transition: transform var(--dur-4) var(--ease-spring), opacity var(--dur-2);
  letter-spacing: 0;
}
.office-note.is-on {
  opacity: 1;
  transform: rotate(-2deg);
}
.office-note.is-yours {
  background: #fff3b8;
}
.office-note-from {
  display: block;
  font-weight: var(--w-h);
  font-family: var(--font-display);
  font-size: 11px;
  opacity: 0.8;
}
.office-note-body {
  display: block;
}
.office-note:hover {
  transform: rotate(0) translateY(-2px);
}

/* actions popover */
/* Anchored to the box's bottom edge whatever the caption's height. 吹き出しは箱の下端に合わせる。 */
.office-actions {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: calc(100% - var(--tile) + 8px);
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 3px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-desk);
  border: 1px solid var(--line);
  animation: fadein var(--dur-2) ease-out;
}
.office-action {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: var(--w-h);
  font-family: var(--font-display);
  white-space: nowrap;
  letter-spacing: 0;
  text-align: left;
}
.tile.is-selected .tile-mood {
  opacity: 0;
}
.tile.is-selected .tile-open {
  display: none;
}
.office-action:hover {
  background: var(--accent-soft);
}
.office-action-thanks {
  color: var(--thanks);
}

/* call states */
.tile.is-calling .tile-ring {
  animation: ringpulse 0.9s ease-in-out infinite;
  border-color: var(--st-meeting);
}
.tile.is-in-call .tile-ring {
  border-color: var(--st-meeting);
}
.tile.is-knocked .tile-box {
  animation: knock 0.6s var(--ease-settle);
}
.wave {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 14px;
}
.wave i {
  width: 3px;
  height: 40%;
  border-radius: 2px;
  background: currentColor;
  animation: wave 0.9s ease-in-out infinite;
}
.wave i:nth-child(2) {
  animation-delay: 0.1s;
}
.wave i:nth-child(3) {
  animation-delay: 0.2s;
}
.wave i:nth-child(4) {
  animation-delay: 0.3s;
}
.wave i:nth-child(5) {
  animation-delay: 0.4s;
}
.wave-tile {
  position: absolute;
  left: 10px;
  top: 10px;
  color: var(--accent);
  opacity: 0;
}
.tile.is-callout .wave-tile {
  opacity: 1;
}
.petals {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
}
.petals i {
  position: absolute;
  left: 50%;
  top: 55%;
  width: 8px;
  height: 10px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: #f9a8d4;
  opacity: 0;
}
.is-blooming .petals i {
  animation: petal 1.4s var(--ease-settle) forwards;
}
.is-blooming .petals i:nth-child(1) {
  --dx: -40px;
  --dy: -46px;
}
.is-blooming .petals i:nth-child(2) {
  --dx: 36px;
  --dy: -52px;
  animation-delay: 0.05s;
}
.is-blooming .petals i:nth-child(3) {
  --dx: -52px;
  --dy: -8px;
  animation-delay: 0.1s;
}
.is-blooming .petals i:nth-child(4) {
  --dx: 50px;
  --dy: -10px;
  animation-delay: 0.08s;
}
.is-blooming .petals i:nth-child(5) {
  --dx: -24px;
  --dy: -62px;
  animation-delay: 0.12s;
}
.is-blooming .petals i:nth-child(6) {
  --dx: 20px;
  --dy: -66px;
  animation-delay: 0.03s;
}
.is-blooming .petals i:nth-child(7) {
  --dx: -44px;
  --dy: 24px;
  animation-delay: 0.15s;
}
.is-blooming .petals i:nth-child(8) {
  --dx: 42px;
  --dy: 22px;
  animation-delay: 0.11s;
}
.is-blooming .petals i:nth-child(9) {
  --dx: -8px;
  --dy: -70px;
  animation-delay: 0.2s;
}
.is-blooming .petals i:nth-child(10) {
  --dx: 8px;
  --dy: 40px;
  animation-delay: 0.18s;
}
.is-blooming .tile-chip-thanks,
.is-blooming[data-story-thanks] {
  opacity: 1;
}

/* -------------------------------------------------------------- hero */
/* The hero's left edge is the content edge every other section uses. ヒーローの左端は他の節と同じ内容幅の端。 */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: 24px !important;
  padding-bottom: 48px !important;
  --edge: max(var(--gutter), calc((100% - var(--content)) / 2));
}
.hero-wash {
  position: absolute;
  inset: 0 0 auto 0;
  height: 45%;
  background: linear-gradient(var(--wash), transparent);
  pointer-events: none;
}
.hero-floor-wrap {
  position: relative;
}
.skip-demo {
  left: var(--gutter);
}
.hero-copy {
  position: relative;
  z-index: 2;
  padding: 24px var(--gutter) 8px;
  max-width: 640px;
}
.hero-copy .display {
  margin-bottom: 20px;
}
.floor-hole {
  display: none;
}
.hang {
  margin-left: -0.16em;
}
@media (max-width: 1199px) {
  /* Below desktop: the text on plain ground, then a two-row floor you swipe. 文字の下に横に流れる 2 段のフロア。 */
  .floor-hero {
    position: relative;
    grid-auto-flow: column;
    grid-template-rows: repeat(2, max-content);
    grid-template-columns: none;
    grid-auto-columns: var(--tile);
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scroll-padding-inline-start: var(--gutter);
    padding: 12px var(--gutter) 20px;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 96px), transparent 100%);
    mask-image: linear-gradient(to right, #000 calc(100% - 96px), transparent 100%);
  }
  .floor-hero::-webkit-scrollbar {
    display: none;
  }
  .floor-hero > .tile {
    scroll-snap-align: start;
  }
  .floor-hero > .tile-seat {
    display: none;
  }
}
@media (min-width: 1200px) {
  .hero {
    padding-top: 0 !important;
  }
  /* Desktop: 8 columns on the content width — 4 for the copy, 4 for people — so the floor ends on the page edge. 内容幅に 8 列（文章 4・人 4）。 */
  .floor-hero {
    position: relative;
    width: calc(100% - 2 * var(--edge));
    margin-left: var(--edge);
    padding: 48px 0 0;
    grid-template-columns: repeat(8, var(--tile));
    grid-template-rows: repeat(3, max-content);
    grid-auto-flow: dense;
    column-gap: calc((100% - 8 * var(--tile)) / 7);
  }
  .floor-hole {
    display: block;
    grid-column: 1 / span 4;
    grid-row: 1 / span 3;
  }
  .floor-hero > .tile-seat {
    grid-column: 5;
    grid-row: 3;
  }
  .hero-copy {
    position: absolute;
    left: var(--edge);
    top: 48px;
    width: calc(4 * var(--tile) + 3 * 16px - 8px);
    max-width: none;
    padding: 0;
  }
}
.hero-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
  margin-top: 24px;
  max-width: calc(var(--content) + 2 * var(--gutter));
}
.hero-copy .hero-legend {
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: 36px;
  padding: 0;
}
.hero-copy .demo-note {
  margin-left: 0;
}
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip-filter {
  min-height: 32px;
  font-size: 13px;
}
.demo-note {
  margin-left: auto;
  font-size: 13px;
  color: var(--ink-muted);
  display: flex;
  gap: 12px;
  align-items: center;
}
.demo-note .text-button {
  white-space: nowrap;
}
.floor.is-filtered .tile:not(.is-match):not([data-you]) {
  opacity: 0.35;
}
.tile {
  transition: opacity var(--dur-3);
}
/* A tile with something hanging off it paints above its neighbours. はみ出すものを持つタイルは隣より手前。 */
.tile.is-selected,
.tile.is-pair,
.tile:has(.office-note),
.tile.is-blooming {
  z-index: 5;
}
html.js .floor-hero > .tile.is-pair {
  animation: none;
}
.floor-hero .tile.is-swapped {
  z-index: 4;
}
.floor-hero.is-paired .tile:not(.is-pair):not([data-you]) {
  opacity: 0.55;
  filter: saturate(0.7);
}
/* Your seat, once it sits next to someone: a real tile with a silhouette. 隣に座った席は輪郭入りの本物のタイルに。 */
.floor-hero .tile[data-you].is-pair .tile-box {
  background: var(--surface);
  border-style: solid;
  border-color: transparent;
  opacity: 1;
}
html.js .floor-hero .tile-seat.is-pair[data-status] .tile-image-ghost {
  opacity: 1;
}
.floor-hero .tile[data-you].is-pair .tile-seat-label {
  opacity: 0;
}
.floor-hero .tile[data-you].is-pair .tile-caption {
  position: relative;
  z-index: 1;
}
.pair-dot {
  position: absolute;
  z-index: 6;
  width: var(--dot, 26px);
  height: var(--dot, 26px);
  border-radius: 50%;
  background: var(--st-online);
  box-shadow: var(--shadow-lift);
  transform: translate(-50%, -50%) scale(0);
  animation: dotdrop var(--dur-4) var(--ease-spring) forwards;
  pointer-events: none;
}
.call-pill {
  position: absolute;
  z-index: 8;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  letter-spacing: 0;
  box-shadow: var(--shadow-desk);
  white-space: nowrap;
  animation: pop var(--dur-3) var(--ease-settle);
}
.call-pill .wave {
  color: var(--st-online);
}
.call-pill .text-button {
  color: #c7ceff;
}

/* ------------------------------------------------------------- story */
.story {
  background: var(--surface);
}
.story-head {
  margin-bottom: 48px;
}
.story-head .lead {
  margin-top: 20px;
}
.story-track {
  position: relative;
}
/* The stage sits in a scene: a sky that moves through the day, a sun on an
   arc and cut-paper hills, so the time axis is visible before anyone scrolls.
   舞台は情景の中に置く。空の色・太陽の位置・丘の切り絵が時間帯を示す。 */
@property --sky-top {
  syntax: '<color>';
  inherits: true;
  initial-value: #d9e8ff;
}
@property --sky-bottom {
  syntax: '<color>';
  inherits: true;
  initial-value: #fff0d6;
}
@property --sun {
  syntax: '<color>';
  inherits: true;
  initial-value: #ffd27a;
}
.story-scene {
  --dur-sky: 900ms;
  --scene-shade: #1c2030;
  position: relative;
  display: grid;
  gap: 40px;
  padding: 24px 16px 96px;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--sky-top), var(--sky-bottom));
  transition: --sky-top var(--dur-sky) ease, --sky-bottom var(--dur-sky) ease,
    --sun var(--dur-sky) ease;
}
.story-scene[data-moment='0'] {
  --sky-top: #d9e8ff;
  --sky-bottom: #fff0d6;
  --sun: #ffd27a;
  --sun-x: 6%;
  --sun-y: 84%;
}
.story-scene[data-moment='1'] {
  --sky-top: #cde2ff;
  --sky-bottom: #f7f9ff;
  --sun: #ffe08a;
  --sun-x: 24%;
  --sun-y: 16%;
}
.story-scene[data-moment='2'] {
  --sky-top: #bbd8ff;
  --sky-bottom: #ffffff;
  --sun: #fff0b0;
  --sun-x: 50%;
  --sun-y: 7%;
}
.story-scene[data-moment='3'] {
  --sky-top: #d5dfff;
  --sky-bottom: #ffe3c2;
  --sun: #ffc56e;
  --sun-x: 76%;
  --sun-y: 16%;
}
.story-scene[data-moment='4'] {
  --sky-top: #b9b6ec;
  --sky-bottom: #ffc9a6;
  --sun: #ff9a5c;
  --sun-x: 95%;
  --sun-y: 84%;
}
.story-sky {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.story-sun {
  position: absolute;
  left: var(--sun-x);
  top: var(--sun-y);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 0 48px 18px color-mix(in oklab, var(--sun) 45%, transparent);
  transform: translate(-50%, -50%);
  transition: left var(--dur-sky) ease, top var(--dur-sky) ease, background var(--dur-sky) ease,
    box-shadow var(--dur-sky) ease;
}
.story-hills {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 96px;
}
.hill-back {
  fill: color-mix(in oklab, var(--sky-bottom) 84%, var(--scene-shade) 16%);
  transition: fill var(--dur-sky) ease;
}
.hill-front {
  fill: color-mix(in oklab, var(--sky-bottom) 74%, var(--scene-shade) 26%);
  transition: fill var(--dur-sky) ease;
}
.story-left {
  position: relative;
}
.story-hint {
  display: none;
}
.story-clock {
  font-weight: 200;
  font-size: clamp(80px, 9vw + 20px, 176px);
  line-height: 0.9;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.story-steps {
  position: relative;
  width: fit-content;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
/* A rail through the time buttons reads as the day's axis. 時刻ボタンを貫く線が一日の軸。 */
@media (min-width: 600px) {
  .story-steps::before {
    content: '';
    position: absolute;
    left: 12px;
    right: 12px;
    top: 50%;
    height: 2px;
    background: var(--line-strong);
  }
}
.story-step {
  position: relative;
  min-height: 44px;
  min-width: 64px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  font-family: var(--font-latin);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink-2);
  background: var(--surface);
}
.story-step[aria-pressed='true'] {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--ink);
}
.story-moments {
  margin-top: 24px;
}
.story-moment {
  display: none;
}
.story-moment.is-active {
  display: block;
  animation: fade var(--dur-3) var(--ease-settle);
}
.story-time {
  display: none;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  margin-bottom: 8px;
}
.story-moment .h2 {
  margin-bottom: 16px;
}
.story-right {
  position: relative;
  padding-top: 48px;
}
.floor-mini {
  --tile: 92px;
  --tile-gap: 12px;
  grid-template-columns: repeat(3, var(--tile));
}
.story-right,
.talk-demo,
.desk-demo {
  overflow-x: clip;
}
@media (min-width: 600px) {
  .floor-mini {
    --tile: 120px;
    --tile-gap: 16px;
  }
}
.story-pill,
.talk-pill {
  position: absolute;
  z-index: 7;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  letter-spacing: 0;
  box-shadow: var(--shadow-desk);
  opacity: 0;
  transition: opacity var(--dur-3);
  white-space: nowrap;
}
.story-pill .wave,
.talk-pill .wave {
  color: var(--st-online);
}
.story-pill {
  left: 0;
  top: 0;
  transition: opacity var(--dur-3), left var(--dur-3), top var(--dur-3);
}
.story-pair-dot {
  position: absolute;
  width: var(--dot, 24px);
  height: var(--dot, 24px);
  border-radius: 50%;
  background: var(--st-online);
  box-shadow: var(--shadow-lift);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0);
}
.story-punch {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  gap: 8px;
  opacity: 0;
  transition: opacity var(--dur-3);
}
[data-story-office] .tile {
  transition: transform var(--dur-4) var(--ease-move), opacity var(--dur-3);
}
[data-story-office] [data-story-note] {
  opacity: 0;
  transform: rotate(-2deg) translateY(-20px) scale(0.9);
}
[data-story-office][data-state='note'] [data-story-note],
[data-story-office][data-state='thanks'] [data-story-note],
[data-story-office][data-state='end'] [data-story-note] {
  opacity: 1;
  transform: rotate(-2deg);
}
[data-story-office][data-state='talk'] [data-who='you'] {
  transform: translate(calc(var(--pair-dx, 0px)), calc(var(--pair-dy, 0px)));
}
[data-story-office][data-state='talk'] .tile:not([data-who='you']):not([data-who='aoi']) {
  opacity: 0.55;
  filter: saturate(0.7);
}
[data-story-office][data-state='talk'] ~ .story-pill {
  opacity: 1;
}
[data-story-office][data-state='talk'] ~ .story-pair-dot {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  transition: transform var(--dur-4) var(--ease-spring) 0.4s, opacity var(--dur-1) 0.4s;
}
[data-story-office][data-state='start'] ~ .story-punch {
  opacity: 1;
}
[data-story-office][data-state='start'] [data-story-mood] {
  opacity: 1;
}
[data-story-office]:not([data-state='start']) [data-story-mood] {
  opacity: 0;
}
[data-story-office][data-state='thanks'] [data-who='mika'] .tile-chip-thanks {
  opacity: 1;
}
@media (min-width: 900px) {
  .story-track {
    height: 500vh;
  }
  /* The stage is as tall as its content and pins near the middle of tall
     windows, so the gap under the heading never grows with the window.
     舞台は中身の高さのまま。縦長の窓では中央寄りに止まり、見出しとの間が窓で広がらない。 */
  .story-sticky {
    position: sticky;
    top: clamp(var(--header-h), calc(50vh - var(--story-half)), 25vh);
    --story-half: 320px;
    padding-top: 24px;
  }
  .story-scene {
    grid-template-columns: 5fr 7fr;
    align-items: center;
    gap: 64px;
    padding: 48px 56px 112px;
  }
  .story-hills {
    height: 120px;
  }
  .story-hint {
    position: absolute;
    left: 50%;
    bottom: 28px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: var(--r-pill);
    background: color-mix(in oklab, var(--surface) 80%, transparent);
    color: var(--ink-2);
    font-size: 13px;
    white-space: nowrap;
    transform: translateX(-50%);
    transition: opacity var(--dur-3);
  }
  .story-hint svg {
    width: 14px;
    height: 14px;
    animation: hint-bob 1.6s ease-in-out infinite;
  }
  .story.is-moved .story-hint {
    opacity: 0;
  }
  .floor-mini {
    --tile: 136px;
    --tile-gap: 16px;
  }
  .story-right {
    display: flex;
    justify-content: center;
  }
}
@media (min-width: 1200px) {
  .floor-mini {
    --tile: 150px;
    --tile-gap: 18px;
  }
}
/* Short laptop windows: a tighter scene so the stage stays inside the viewport.
   低い窓では舞台を詰めて画面内に収める。 */
@media (min-width: 900px) and (max-height: 800px) {
  .story-sticky {
    --story-half: 280px;
  }
  .story-scene {
    padding: 28px 48px 80px;
  }
  .story-clock {
    font-size: 120px;
  }
  .floor-mini {
    --tile: 120px;
    --tile-gap: 14px;
  }
  .story-hills {
    height: 88px;
  }
}
@keyframes hint-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(3px);
  }
}

/* -------------------------------------------------------------- film */
/* The 30-second film of the real app. Plays only on screen; the steps under
   it follow the captions, so a phone that cannot read the UI still can.
   実際の画面の 30 秒動画。画面内でだけ再生し、下の手順が字幕に合わせて進む。 */
.film-head {
  margin-bottom: 40px;
}
.film-head .lead {
  margin-top: 20px;
}
.film-screen {
  position: relative;
  max-width: 1200px;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--sunken);
  /* The hairline keeps the light film from reading as a slab on the dark ground. 暗い地での縁。 */
  box-shadow: 0 0 0 1px var(--line), var(--shadow-desk);
}
.film-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.film-caption {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 20px;
}
.film-toggle {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: background var(--dur-1), border-color var(--dur-1);
}
.film-toggle:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.film-toggle svg {
  width: 16px;
  height: 16px;
}
.film-toggle .film-icon-pause,
.film-figure.is-playing .film-icon-play {
  display: none;
}
.film-figure.is-playing .film-icon-pause {
  display: block;
}
.film-steps {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: film-step;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-muted);
}
.film-steps li {
  display: flex;
  align-items: center;
  gap: 8px;
  counter-increment: film-step;
  word-break: auto-phrase;
  transition: color var(--dur-1), border-color var(--dur-1);
}
.film-steps li::before {
  content: counter(film-step);
  display: grid;
  place-items: center;
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: var(--r-pill);
  background: var(--sunken);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-2);
  transition: background var(--dur-1), color var(--dur-1);
}
.film-steps li.is-now {
  color: var(--ink);
}
/* Break Japanese only at the marked phrase ends. 日本語は印を付けた句の切れ目だけで折る。 */
:lang(ja) .film-steps li {
  word-break: keep-all;
}
.film-steps li.is-now::before {
  background: var(--accent);
  color: var(--accent-ink);
}
/* Wide: a chapter rail under the film, one segment per step. 広い画面では動画の下に章のレール。 */
@media (min-width: 900px) {
  .film-caption {
    margin-top: 16px;
  }
  .film-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-top: 0;
  }
  .film-steps li {
    align-items: flex-start;
    padding-top: 12px;
    border-top: 3px solid var(--line);
  }
  .film-steps li.is-now {
    border-top-color: var(--accent);
  }
}
@media (max-width: 599px) {
  .film-screen {
    border-radius: var(--r-sm);
  }
}

/* ---------------------------------------------------------- chapters */
.chapter {
  position: relative;
}
.chapter:nth-of-type(even) {
  background: var(--surface);
}
.faq {
  background: var(--surface);
}
.chapter-vertical {
  display: none;
}
@media (min-width: 1200px) {
  .chapter-vertical {
    display: block;
    position: absolute;
    left: 20px;
    top: 160px;
    writing-mode: vertical-rl;
    font-size: 13px;
    letter-spacing: 0.3em;
    color: var(--ink-muted);
  }
  :lang(en) .chapter-vertical {
    text-transform: uppercase;
    letter-spacing: 0.2em;
  }
}
.chapter-grid {
  display: grid;
  gap: 48px;
}
.chapter-text .lead {
  margin-top: 20px;
}
.chapter-text .h1 {
  font-size: clamp(28px, 1.5vw + 20px, 44px);
}
:lang(en) .chapter-text .h1 {
  font-size: clamp(34px, 1.8vw + 24px, 52px);
}
.feature-list {
  margin-top: 32px;
  display: grid;
  gap: 10px;
  max-width: var(--measure);
}
.feature-list li {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-2);
  word-break: auto-phrase;
}
.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink);
}
@media (min-width: 900px) {
  .chapter-grid {
    grid-template-columns: 5fr 7fr;
    gap: 64px;
    align-items: start;
  }
  .chapter-text {
    position: sticky;
    top: calc(var(--header-h) + 32px);
  }
}

/* presence: privacy comparison */
.privacy-demo {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px;
}
.privacy-compare {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  background: var(--sunken);
}
.privacy-raw,
.privacy-processed {
  position: absolute;
  inset: 0;
}
.privacy-processed {
  clip-path: inset(0 0 0 var(--split, 50%));
}
.privacy-room {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.privacy-room-blur {
  filter: blur(10px) saturate(0.8);
  transform: scale(1.06);
  opacity: 0;
  transition: opacity var(--dur-3);
}
.privacy-demo[data-mode='blur'] .privacy-room-blur {
  opacity: 1;
}
.privacy-backdrop {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #eef0f7, #d9e0f0);
}
.privacy-figure {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.privacy-figure-cut {
  filter: drop-shadow(0 0 1.5px rgba(255, 255, 255, 0.8))
    drop-shadow(0 8px 8px rgba(28, 32, 48, 0.18));
}
.privacy-label {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: rgba(28, 32, 48, 0.75);
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.02em;
}
.privacy-processed .privacy-label {
  left: auto;
  right: 12px;
}
@media (max-width: 599px) {
  .privacy-label {
    max-width: 46%;
    font-size: 11px;
    padding: 3px 8px;
    line-height: 1.3;
  }
}
.privacy-handle-label {
  position: absolute;
  inset: 0;
}
.privacy-handle {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  appearance: none;
  background: transparent;
  cursor: ew-resize;
}
.privacy-handle::-webkit-slider-runnable-track {
  height: 100%;
}
.privacy-handle::-webkit-slider-thumb {
  appearance: none;
  width: 44px;
  height: 100%;
  background: transparent;
  border-left: 2px solid #fff;
  box-shadow: -1px 0 0 rgba(28, 32, 48, 0.3);
}
.privacy-handle::-moz-range-thumb {
  width: 44px;
  height: 100%;
  background: transparent;
  border: 0;
  border-left: 2px solid #fff;
  border-radius: 0;
}
.privacy-handle::-moz-range-track {
  height: 100%;
  background: transparent;
}
.privacy-controls {
  margin-top: 12px;
}
.status-demo {
  margin-top: 16px;
  padding: 16px;
  display: grid;
  grid-template-columns: var(--tile) 1fr;
  gap: 20px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.status-demo-side {
  display: grid;
  gap: 12px;
}
@media (max-width: 599px) {
  .status-demo {
    grid-template-columns: 1fr;
  }
}

/* presence: the real screen */
/* The one real screenshot: 1x, so never wider than its 1280 px. The radius
   shrinks with the image so the window's own corners stay intact.
   唯一の実画面。等倍なので 1280px より広げない。角丸は画像の縮みに合わせる。 */
.screen-band {
  margin-top: 96px;
}
.screen-title {
  margin-bottom: 20px;
}
.screen-shot {
  width: 100%;
  max-width: 1280px;
  height: auto;
  border-radius: clamp(3px, 0.9vw, var(--r-note));
  box-shadow: var(--shadow-desk);
}
.screen-caption {
  margin-top: 12px;
  max-width: var(--measure);
  word-break: auto-phrase;
}

/* map band */
.map-band {
  margin-top: 64px;
}
.map-band > .container-wide {
  max-width: calc(var(--content) + 2 * var(--gutter));
}
.map-title {
  margin-bottom: 16px;
}
.map {
  position: relative;
  height: clamp(300px, 34vw, 480px);
  width: 100%;
  background: var(--map-ocean, #e6eaf3);
  overflow: hidden;
}
.map-stage {
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  aspect-ratio: 2 / 1;
  transform: translateY(-50%);
}
.map-land {
  position: absolute;
  inset: 0;
  background: var(--map-land, #b9c3d6);
  -webkit-mask: url(/site/assets/img/land.05ed1343.webp) center / 100% 100% no-repeat;
  mask: url(/site/assets/img/land.05ed1343.webp) center / 100% 100% no-repeat;
  -webkit-mask-mode: luminance;
  mask-mode: luminance;
}
.map-night {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.map-night path {
  fill: rgba(28, 32, 48, 0.18);
}
.map-pins {
  position: absolute;
  inset: 0;
}
.map-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.map-pin .tile {
  --tile: 28px;
  --ring: 2px;
}
.map-pin .tile-box {
  border-radius: 30%;
}
.map-pin .tile-image {
  border-radius: 30%;
}
.map-pin .tile-ring {
  inset: -4px;
  border-radius: 34%;
}
.map-pin-time {
  font-family: var(--font-latin);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.85);
  padding: 1px 6px;
  border-radius: var(--r-pill);
  letter-spacing: 0;
}
.map-caption {
  margin-top: 12px;
}
#presence {
  padding-bottom: 64px;
}
@media (max-width: 599px) {
  .map-pin.is-minor {
    display: none;
  }
}

/* talk */
.talk-demo {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 20px;
}
.room-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--ground);
  margin-bottom: 64px;
}
.room-name {
  font-family: var(--font-display);
  font-weight: var(--w-h);
  font-size: 15px;
  letter-spacing: 0;
}
.room-avatars {
  display: flex;
}
.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  background: #dce2f1;
  border: 2px solid var(--surface);
  margin-left: -8px;
}
.avatar:first-child {
  margin-left: 0;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.avatar-you {
  display: none;
}
.room-bar.is-joined .avatar-you {
  display: block;
  animation: pop var(--dur-3) var(--ease-settle);
}
.room-count {
  font-size: 13px;
  color: var(--ink-muted);
}
@media (max-width: 599px) {
  .room-bar {
    flex-wrap: nowrap;
  }
  .room-count {
    display: none;
  }
  .floor-mini .tile-open {
    font-size: 10px;
    padding: 2px 6px;
    gap: 4px;
    max-width: calc(100% - 12px);
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .floor-mini .tile-open::before {
    display: none;
  }
  .floor-mini .tile-name {
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
.room-bar .button {
  margin-left: auto;
}
.floor-talk {
  --tile: 104px;
  grid-template-columns: repeat(4, var(--tile));
}
@media (max-width: 599px) {
  .floor-talk {
    grid-template-columns: repeat(2, var(--tile));
    justify-content: center;
  }
}
.floor-talk .tile-caption {
  min-height: 0;
}
@media (min-width: 900px) {
  .floor-talk {
    --tile: 150px;
  }
}
.floor-talk .tile {
  transition: transform var(--dur-4) var(--ease-move), opacity var(--dur-3);
}
.talk-demo.is-paired .floor-talk .tile:not(.is-pair) {
  opacity: 0.55;
  filter: saturate(0.7);
}
.talk-demo.is-paired .tile-action-hint {
  display: none;
}
.talk-pill {
  visibility: hidden;
}
.talk-pill.is-on {
  opacity: 1;
  visibility: visible;
}
.talk-demo .caption {
  margin-top: 16px;
}

/* desk */
.desk-demo {
  position: relative;
  display: grid;
  gap: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 20px;
}
@media (min-width: 600px) {
  .desk-demo {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
  .desk-thanks {
    grid-column: 1 / -1;
  }
}
.composer-note {
  margin: 12px 0;
  padding: 14px;
  border-radius: var(--r-note);
  background: var(--note);
  color: var(--note-ink);
  box-shadow: var(--shadow-lift);
  transform: rotate(-1deg);
}
.composer-note[data-note-style='cat'] {
  background: #ffe4c7;
}
.composer-note[data-note-style='bear'] {
  background: #f2d9c6;
}
.composer-note[data-note-style='frog'] {
  background: #ddefd6;
}
.composer-text {
  font-size: 15px;
  line-height: 1.6;
}
.swatch {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  background: var(--note);
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.swatch[data-note-swatch='cat'] {
  background: #ffe4c7;
}
.swatch[data-note-swatch='bear'] {
  background: #f2d9c6;
}
.swatch[data-note-swatch='frog'] {
  background: #ddefd6;
}
.swatch[aria-pressed='true'] {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
}
.desk-composer .cta-row {
  margin-top: 16px;
}
.desk-target {
  position: relative;
  display: flex;
  justify-content: center;
}
.tile-lg {
  --tile: 160px;
}
@media (min-width: 900px) {
  .tile-lg {
    --tile: 200px;
  }
}
.desk-notes {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: var(--tile);
}
/* Notes stick to the lower-right corner, clear of the face. 付箋は顔を避けて右下の角に。 */
.desk-notes .office-note {
  left: 28%;
  right: 4%;
  top: 46%;
}
.desk-notes .office-note + .office-note {
  top: 76%;
  left: 22%;
  right: 2%;
  transform: rotate(3deg) translateY(-20px) scale(0.9);
}
.desk-target {
  padding-bottom: 56px;
}
.desk-notes .office-note + .office-note.is-on {
  transform: rotate(3deg);
}
.desk-thanks .chip-row {
  margin: 12px 0 16px;
}
.chip-tag[aria-pressed='true'] {
  background: var(--thanks-soft);
  border-color: var(--thanks);
  color: var(--thanks);
}
.mini-screen-wrap {
  display: grid;
  gap: 6px;
}
.mini-screen {
  position: relative;
  width: 140px;
  height: 88px;
  border-radius: 8px;
  background: var(--ground);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mini-screen-text {
  font-size: 13px;
  color: var(--ink-muted);
  font-weight: var(--w-h);
  transition: color var(--dur-3);
}
.mini-screen.is-blooming .mini-screen-text {
  color: var(--thanks);
}
.mini-screen.is-blooming .mini-screen-text {
  opacity: 1;
}

/* rhythm */
.rhythm-demo {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 20px;
}
.rhythm-top {
  display: grid;
  grid-template-columns: var(--tile) 1fr;
  gap: 20px;
  align-items: start;
}
.rhythm-top .tile-box {
  overflow: visible;
}
.rhythm-top .tile-image {
  overflow: hidden;
}
.rhythm-step {
  display: none;
}
.rhythm-step.is-active {
  display: block;
  animation: fade var(--dur-3) var(--ease-settle);
}
.rhythm-time {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  margin-bottom: 4px;
}
.ruler-label {
  display: block;
  margin-top: 8px;
}
.ruler {
  width: 100%;
  height: 44px;
  margin: 0;
  appearance: none;
  background: transparent;
}
.ruler::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 2px;
  background: var(--line-strong);
}
.ruler::-moz-range-track {
  height: 4px;
  border-radius: 2px;
  background: var(--line-strong);
}
.ruler::-webkit-slider-thumb {
  appearance: none;
  width: 24px;
  height: 24px;
  margin-top: -10px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--surface);
  box-shadow: var(--shadow-lift);
}
.ruler::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--surface);
  box-shadow: var(--shadow-lift);
}
.ruler-ticks {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-latin);
  font-size: 12px;
  color: var(--ink-muted);
  padding: 0 6px;
}
@media (max-width: 479px) {
  .ruler-ticks li:nth-child(even) {
    visibility: hidden;
  }
}
.tones {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.tones .chip-row {
  margin-top: 10px;
}
@media (max-width: 599px) {
  .rhythm-top {
    grid-template-columns: 1fr;
  }
}

/* apps */
.apps-list {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.apps-row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  grid-template-areas: 'icon name state' 'icon detail state';
  gap: 2px 16px;
  align-items: center;
  padding: 20px;
  background: var(--surface);
}
.apps-icon {
  grid-area: icon;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  position: relative;
}
.apps-icon svg {
  position: absolute;
  inset: 10px;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.apps-name {
  grid-area: name;
  font-family: var(--font-display);
  font-weight: var(--w-h);
  font-size: 17px;
  letter-spacing: 0;
}
.apps-detail {
  grid-area: detail;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.5;
}
.apps-state {
  grid-area: state;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-muted);
  white-space: nowrap;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
}
.apps-row.is-ready .apps-state {
  color: var(--st-online-text);
  border-color: transparent;
  background: #ecfdf3;
}
@media (max-width: 599px) {
  .apps-row {
    grid-template-columns: 44px 1fr;
    grid-template-areas: 'icon name' 'icon detail' 'icon state';
  }
  .apps-state {
    justify-self: start;
    margin-top: 8px;
  }
}

/* trust */
.statements {
  margin-top: 32px;
  display: grid;
  gap: 20px;
}
.statements li {
  position: relative;
  padding-left: 20px;
}
.statements li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--st-online);
}
.facts-group + .facts-group {
  margin-top: 32px;
}
.facts-title {
  margin-bottom: 12px;
}
.facts {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.fact {
  display: grid;
  gap: 4px;
  align-content: start;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.fact dt {
  word-break: keep-all;
}
.fact dt {
  font-family: var(--font-display);
  font-weight: var(--w-h);
  font-size: 15px;
  letter-spacing: 0;
}
.fact dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
}
@media (min-width: 900px) {
  .facts {
    grid-template-columns: 1fr 1fr;
    column-gap: 40px;
  }
}

/* ----------------------------------------------------------- pricing */
.pricing {
  background: var(--ground);
}
.pricing-head .lead {
  margin-top: 20px;
}
.pricing .segmented {
  margin: 40px 0 24px;
}
.plans {
  display: grid;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  overflow: hidden;
}
.plan {
  position: relative;
  padding: 28px 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.plan:last-child {
  border-bottom: 0;
}
.plan.is-recommended {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  background: var(--accent-soft);
}
.plan-badge {
  position: absolute;
  right: 16px;
  top: 16px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: var(--w-h);
  letter-spacing: 0;
}
.plan-name {
  font-family: var(--font-latin);
}
.price {
  font-weight: 800;
  font-size: clamp(44px, 3vw + 24px, 64px);
  line-height: 1;
  letter-spacing: -0.02em;
  min-height: 1em;
}
.price .cur {
  font-size: 0.5em;
  font-weight: 600;
  vertical-align: top;
  margin-right: 0.06em;
  line-height: 1.2;
}
.plan[data-plan='enterprise'] .price {
  font-size: clamp(24px, 1vw + 20px, 34px);
  line-height: 1.3;
  font-family: var(--font-display);
  font-weight: var(--w-display);
  letter-spacing: var(--track-heading);
}
.price-unit {
  min-height: 1.5em;
}
.plan-who {
  color: var(--ink-2);
}
.plan-items {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}
.plan-items li {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.6;
  word-break: auto-phrase;
}
.plan-items li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink);
}
.plan-cta {
  margin-top: auto;
  align-self: flex-start;
}
@media (min-width: 900px) {
  .plans {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
  .plan {
    border-bottom: 0;
    border-right: 1px solid var(--line);
  }
  .plan:last-child {
    border-right: 0;
  }
}
.pricing-trial {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 24px;
  font-size: 15px;
  max-width: var(--measure);
}
.pricing-trial .status-dot {
  margin-top: 0.55em;
}
.pricing > .container > .caption {
  margin-top: 8px;
}
.calc {
  margin-top: 48px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
}
.calc-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}
.calc-label {
  font-size: 15px;
  color: var(--ink-2);
}
.calc-label output {
  font-family: var(--font-latin);
  font-weight: 800;
  font-size: 24px;
  color: var(--ink);
  margin-left: 6px;
}
.calc-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 20px 0 8px;
  min-height: 24px;
}
.calc-strip i {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background: var(--line-strong);
}
.calc-strip i.is-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  align-self: center;
}
.calc-totals {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}
@media (min-width: 600px) {
  .calc-totals {
    grid-template-columns: 1fr 1fr;
  }
}
.calc-total {
  display: grid;
  gap: 2px;
  padding: 16px;
  background: var(--ground);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}
.calc-plan {
  font-weight: 600;
  font-size: 14px;
  color: var(--ink-2);
}
.calc-amount {
  font-weight: 800;
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.compare {
  margin-top: 32px;
  border-top: 1px solid var(--line);
}
.compare summary {
  cursor: pointer;
  padding: 20px 0;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.compare summary::-webkit-details-marker {
  display: none;
}
.compare[open] .faq-plus::after {
  transform: translate(-50%, -50%) rotate(0);
}
.table-wrap {
  overflow-x: auto;
  padding-bottom: 8px;
}
.compare-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 15px;
}
.compare-table th,
.compare-table td {
  padding: 12px 10px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.compare-table thead th {
  font-family: var(--font-latin);
  font-weight: 600;
  color: var(--ink-2);
}
.compare-table tbody th {
  font-weight: var(--w-h);
  font-family: var(--font-display);
  letter-spacing: 0;
  width: 28%;
}
.compare-table td.is-yes {
  color: var(--st-online-text);
  font-weight: 700;
}
.compare-table td.is-no {
  color: var(--ink-muted);
}

/* --------------------------------------------------------------- faq */
.faq-grid {
  display: grid;
  gap: 32px;
}
@media (min-width: 900px) {
  .faq-grid {
    grid-template-columns: 4fr 8fr;
    gap: 64px;
  }
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  font-family: var(--font-display);
  font-weight: var(--w-h);
  font-size: 19px;
  line-height: 1.5;
  letter-spacing: 0;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-plus {
  position: relative;
  flex: none;
  width: 24px;
  height: 24px;
}
.faq-plus::before,
.faq-plus::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 2px;
  background: var(--ink-muted);
  transform: translate(-50%, -50%);
  transition: transform var(--dur-2);
}
.faq-plus::after {
  transform: translate(-50%, -50%) rotate(90deg);
}
.faq-item[open] .faq-plus::after {
  transform: translate(-50%, -50%) rotate(0);
}
.faq-item .body {
  padding: 0 40px 24px 0;
  color: var(--ink-2);
}

/* ------------------------------------------------------------- final */
.final {
  position: relative;
  overflow: hidden;
  background: var(--ground);
}
.final-grid {
  position: relative;
  display: grid;
  gap: 48px;
}
.final-copy .lead {
  margin-top: 20px;
}
.floor-final {
  --tile: 96px;
  --tile-gap: 12px;
  grid-template-columns: repeat(3, var(--tile));
}
.floor-final .tile {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--dur-3), transform var(--dur-3) var(--ease-settle);
}
.floor-final .tile-seat {
  opacity: 1;
  transform: none;
}
.floor-final.is-arrived .tile {
  opacity: 1;
  transform: none;
}
.floor-final .tile-ring {
  transition: border-color var(--dur-3) var(--ease-move) 0.2s;
}
.final-dot {
  position: absolute;
  width: var(--dot, 24px);
  height: var(--dot, 24px);
  border-radius: 50%;
  background: var(--st-online);
  box-shadow: var(--shadow-lift);
  transform: translate(-50%, -50%) scale(0);
  animation: dotdrop var(--dur-4) var(--ease-spring) forwards;
}
@media (min-width: 900px) {
  .final-grid {
    grid-template-columns: 5fr 7fr;
    align-items: center;
  }
  .floor-final {
    --tile: 120px;
    justify-content: end;
  }
}
@media (min-width: 1200px) {
  .floor-final {
    --tile: 136px;
  }
}

/* ------------------------------------------------------------ footer */
.footer {
  background: var(--sunken);
  padding: 64px 0 32px;
  color: var(--ink-2);
}
.footer-grid {
  display: grid;
  gap: 32px;
}
.footer-brand .small {
  margin-top: 12px;
}
.footer-about {
  max-width: 44ch;
  line-height: 1.7;
}
.footer-contact a {
  color: var(--ink-2);
}
.footer-col {
  display: grid;
  gap: 10px;
  align-content: start;
}
.footer-col a,
.footer-col p {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 15px;
}
.footer-col a:hover {
  color: var(--ink);
  text-decoration: underline;
}
.footer-title {
  font-family: var(--font-display);
  font-weight: var(--w-h);
  color: var(--ink);
  letter-spacing: 0;
}
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  display: flex;
  position: relative;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.footer-bottom::before {
  content: '';
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  top: 0;
  border-top: 1px solid var(--line);
}
.footer-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}
@media (min-width: 600px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}
.footer-col a[aria-current='page'] {
  color: var(--ink);
}

/* ---------------------------------------------------------- download */
/* The desktop app page: one card per OS; site.js marks the visitor's own.
   デスクトップアプリのページ。OS ごとのカード。閲覧中の OS は site.js が印を付ける。 */
main > .download-hero {
  position: relative;
  overflow: hidden;
  padding: 40px 0 64px;
}
main > .download-section {
  padding: 72px 0;
}
@media (min-width: 900px) {
  main > .download-hero {
    padding: 72px 0 96px;
  }
  main > .download-section {
    padding: 112px 0;
  }
}
.download-head,
.download-grid,
.download-latest {
  position: relative;
}
.download-head .lead {
  margin-top: 20px;
}
.download-phone {
  margin-top: 16px;
  padding: 12px 16px;
  max-width: var(--measure);
  border-radius: var(--r-sm);
  background: var(--accent-soft);
  font-size: 15px;
  line-height: 1.6;
}
.download-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  margin-top: 40px;
}
@media (min-width: 760px) {
  .download-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 56px;
  }
}
.os-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-desk);
}
.os-card.is-current {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
@media (min-width: 900px) {
  .os-card {
    padding: 36px;
  }
}
.os-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
}
.os-name {
  font-family: var(--font-latin);
  font-weight: 800;
  font-size: clamp(34px, 1.2vw + 28px, 44px);
  line-height: 1;
  letter-spacing: -0.025em;
}
.os-current {
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: var(--w-h);
  line-height: 1.4;
  letter-spacing: 0;
}
.os-req,
.os-trust {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
}
.os-get {
  display: grid;
  gap: 8px;
}
/* Long labels wrap on the narrowest phones instead of pushing the card wider. 最狭の端末では折り返す。 */
.os-get .button {
  padding-block: 10px;
  white-space: normal;
  word-break: auto-phrase;
  text-align: center;
}
.os-trust {
  position: relative;
  padding-left: 26px;
}
/* A drawn check, so the mark needs no glyph in the subset fonts. 字形に頼らない描画のチェック。 */
.os-trust::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 0.25em;
  width: 7px;
  height: 12px;
  border: solid var(--accent-text);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
/* The way down to the pictured steps, at the card's foot so both cards' links line up.
   図つきの手順への入口。カードの下端に置き、両カードで位置を揃える。 */
.os-steps-link {
  margin-top: auto;
  align-self: flex-start;
  padding-block: 4px;
  font-size: 15px;
  word-break: auto-phrase;
}
.os-steps-link span {
  margin-left: 4px;
}
/* Narrow phones: a slimmer card. 狭い端末では余白を詰める。 */
@media (max-width: 479px) {
  .os-card {
    padding-inline: 18px;
  }
}

/* -------------------------------------------------- install pictures */
/* One card per step: the drawing, then the words. The drawings take their
   colours from these tokens, so they follow the theme.
   手順ごとのカード（図 → 文）。図の色はこのトークンから取り、テーマに従う。 */
.install {
  --ia-desk: #e6e9f2;
  --ia-win: #ffffff;
  --ia-bar: #f1f3f7;
  --ia-edge: #d2d7e2;
  --ia-edge-strong: #b5bccb;
  --ia-doc: #ffffff;
  --ia-ph: #d5dae5;
  --ia-ph-2: #e3e7ef;
  --ia-btn: #ffffff;
  --ia-shade: rgba(28, 32, 48, 0.12);
  --ia-ss: #1f5fae;
}
main > .install {
  padding: 8px 0 72px;
}
@media (min-width: 900px) {
  main > .install {
    padding: 16px 0 112px;
  }
}
.install-lead {
  margin-top: 16px;
}
.install-os {
  margin-top: 48px;
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.install-os + .install-os {
  margin-top: 64px;
}
.install-os-name {
  font-family: var(--font-latin);
  font-weight: 800;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.install-note {
  margin-top: 12px;
  max-width: var(--measure);
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-2);
}
.install-steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin-top: 20px;
  counter-reset: step;
}
@media (min-width: 900px) {
  .install-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
}
@media (min-width: 1200px) {
  .install-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
/* The drawing runs to the card's edges so its labels stay as large as the width allows.
   図はカードの端まで広げ、文字をできるだけ大きく保つ。 */
.install-step {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 18px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-desk);
  counter-increment: step;
}
/* The words come first in the DOM (read first); the picture sits on top. 読み上げは文が先、見た目は図が上。 */
.install-art {
  order: -1;
  background: var(--ia-desk);
}
/* Wide single column: the picture stops growing. 1 列で幅が広いときは図を大きくしすぎない。 */
.install-art .ia {
  max-width: 520px;
  margin-inline: auto;
}
.install-text {
  position: relative;
  min-height: 28px;
  padding: 1px 16px 0 56px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-2);
}
.install-text::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 0;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-latin);
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
}
/* A side case gets its own quieter line. 例外の案内は改行して控えめに。 */
.install-aside {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-muted);
}
/* Tablets: one step per row, the drawing beside the words. タブレットは 1 行 1 手順で図と文を横に並べる。 */
@media (min-width: 700px) and (max-width: 899px) {
  .install-step {
    flex-direction: row;
    align-items: center;
    gap: 0;
    padding-bottom: 0;
  }
  .install-art {
    flex: 0 0 56%;
    align-self: stretch;
    display: flex;
    align-items: center;
  }
  .install-text {
    padding: 20px 20px 20px 64px;
  }
  .install-text::before {
    left: 22px;
    top: 20px;
  }
}
.ia {
  width: 100%;
  height: auto;
}
.ia text {
  font-family: var(--font-body);
  letter-spacing: 0;
  fill: var(--ink);
}
.ia .ia-head {
  font-size: 16px;
  font-weight: 700;
}
.ia .ia-head-sm {
  font-size: 14px;
  font-weight: 700;
}
.ia .ia-side {
  font-size: 12.5px;
  font-weight: 700;
}
.ia .ia-alert,
.ia .ia-title {
  font-size: 13px;
  font-weight: 700;
}
.ia .ia-title {
  fill: var(--ink-2);
}
.ia .ia-file,
.ia .ia-btn-label {
  font-size: 14px;
  font-weight: 700;
}
.ia .ia-on {
  fill: var(--accent-ink);
}
.ia .ia-msg {
  font-size: 12.5px;
}
.ia .ia-menu {
  font-size: 14px;
  font-weight: 700;
}
.ia-win {
  fill: var(--ia-win);
  stroke: var(--ia-edge);
}
.ia-bar,
.ia-list {
  fill: var(--ia-bar);
}
.ia-edge {
  fill: none;
  stroke: var(--ia-edge);
}
.ia-ph,
.ia-toggle,
.ia-drive {
  fill: var(--ia-ph);
}
.ia-app {
  fill: var(--ia-ph-2);
}
.ia-sel {
  fill: var(--accent-soft);
}
.ia-btn,
.ia-input {
  fill: var(--ia-btn);
  stroke: var(--ia-edge-strong);
}
.ia-btn-on,
.ia-toggle-on,
.ia-progress,
.ia-badge {
  fill: var(--accent);
}
.ia-knob {
  fill: #ffffff;
}
.ia-shade {
  fill: var(--ia-shade);
}
.ia-faded {
  opacity: 0.5;
}
.ia-ghost {
  opacity: 0.55;
}
.ia-red {
  fill: #ff5f57;
}
.ia-yel {
  fill: #febc2e;
}
.ia-grn {
  fill: #28c840;
}
.ia-glyph {
  fill: none;
  stroke: var(--ink-2);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ia-doc {
  fill: var(--ia-doc);
  stroke: var(--ia-edge-strong);
}
.ia-dots {
  fill: var(--ink);
}
.ia-warn {
  fill: #f2a516;
}
.ia-warn-mark {
  fill: none;
  stroke: #1c2030;
  stroke-width: 2;
  stroke-linecap: round;
}
.ia-doc-fold {
  fill: none;
  stroke: var(--ia-edge-strong);
}
.ia-drive-led {
  fill: var(--ink-2);
}
.ia-fold-mac-back {
  fill: #4b9fe8;
}
.ia-fold-mac {
  fill: #74bbf4;
}
.ia-fold-win-back {
  fill: #e0a52c;
}
.ia-fold-win {
  fill: #f6c955;
}
/* What to press: a ring, the pointer and, for a drag, the path. 押す所は輪とポインター、ドラッグは軌跡で示す。 */
.ia-hl {
  fill: none;
  stroke: var(--accent-text);
  stroke-width: 2.5;
}
.ia-arrow {
  fill: none;
  stroke: var(--accent-text);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 1 6;
}
.ia-arrowhead {
  fill: var(--accent-text);
}
.ia-click {
  fill: none;
  stroke: var(--accent-text);
  stroke-width: 2.2;
  stroke-linecap: round;
}
.ia-cursor {
  fill: #1c2030;
  stroke: #ffffff;
  stroke-width: 1.4;
  stroke-linejoin: round;
}
/* SmartScreen is a blue panel with white type in either theme. SmartScreen はどちらのテーマでも青地に白。 */
.ia-ss {
  fill: var(--ia-ss);
}
.ia .ia-ss-title,
.ia .ia-ss-s,
.ia .ia-ss-link,
.ia .ia-ss-label {
  fill: #ffffff;
}
.ia .ia-ss-title {
  font-size: 20px;
  font-weight: 400;
}
.ia .ia-ss-s {
  font-size: 13px;
}
.ia .ia-ss-link {
  font-size: 15px;
  font-weight: 700;
  text-decoration: underline;
}
.ia .ia-ss-label {
  font-size: 14px;
  font-weight: 700;
}
.ia .ia-ss-label-on {
  fill: var(--ia-ss);
}
.ia-ss-ph {
  fill: rgba(255, 255, 255, 0.45);
}
.ia-ss-btn {
  fill: none;
  stroke: #ffffff;
  stroke-width: 1.5;
}
.ia-ss-btn-on {
  fill: #ffffff;
}
.ia-ss-glyph,
.ia-hl-ss {
  fill: none;
  stroke: #ffffff;
  stroke-linecap: round;
}
.ia-ss-glyph {
  stroke-width: 1.5;
}
.ia-hl-ss {
  stroke-width: 2.5;
}
/* Phones: the small labels a step larger. スマートフォンでは小さい文字を一段大きく。 */
@media (max-width: 479px) {
  .ia .ia-alert,
  .ia .ia-title,
  .ia .ia-ss-s {
    font-size: 14px;
  }
  .ia .ia-msg {
    font-size: 13.5px;
  }
  .ia .ia-btn-label,
  .ia .ia-menu,
  .ia .ia-ss-label {
    font-size: 15px;
  }
}
.download-latest {
  margin-top: 24px;
}
.download-more {
  background: var(--surface);
}
.download-columns {
  display: grid;
  gap: 48px;
}
.download-columns .feature-list {
  margin-top: 24px;
}
.download-others-lead {
  margin-top: 16px;
}
@media (min-width: 900px) {
  .download-columns {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}
.apps-state-link {
  min-height: 40px;
  padding: 0 16px;
  border-color: var(--accent);
  color: var(--accent-text);
  font-family: var(--font-display);
  font-weight: var(--w-h);
  text-decoration: none;
}
.apps-state-link:hover {
  background: var(--accent-soft);
}

/* ---------------------------------------------------------- security */
/* The security page: contents beside the sections on wide screens.
   セキュリティのページ。広い画面では目次を横に置く。 */
main > .security-hero {
  position: relative;
  overflow: hidden;
  padding: 40px 0 24px;
}
@media (min-width: 900px) {
  main > .security-hero {
    padding: 72px 0 48px;
  }
}
.security-head {
  position: relative;
}
.security-head .lead {
  margin-top: 20px;
}
.security-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding-bottom: 72px;
}
/* Phones: the contents sit above the sections. スマホは目次を本文の上に置く。 */
.security-toc {
  padding: 20px 0 8px;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 900px) {
  .security-body {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 64px;
    padding-bottom: 112px;
  }
  .security-toc {
    position: sticky;
    top: calc(var(--header-h) + 32px);
    align-self: start;
    padding: 32px 0 0;
    border-bottom: 0;
  }
}
.security-toc-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: var(--w-h);
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  margin-bottom: 12px;
}
.security-toc li + li {
  margin-top: 2px;
}
.security-toc a {
  display: block;
  padding: 5px 0 5px 12px;
  border-left: 2px solid var(--line);
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.45;
  text-decoration: none;
}
.security-toc a:hover {
  color: var(--ink);
  border-left-color: var(--accent);
}
.security-sections {
  max-width: 760px;
}
.security-section {
  padding: 32px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: var(--header-h);
}
.security-section:first-child {
  border-top: 0;
}
.security-h {
  margin-bottom: 12px;
}
.security-list li {
  position: relative;
  padding-left: 22px;
}
.security-list li + li {
  margin-top: 10px;
}
/* Bullet: the brand dot. 行頭はブランドの点。 */
.security-list li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: calc(0.5lh - 4px);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.security-list strong {
  color: var(--ink);
  font-weight: 700;
}
.security-list a {
  overflow-wrap: anywhere;
}
.security-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  line-height: 1.55;
}
.security-table th,
.security-table td {
  padding: 12px 16px 12px 0;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.security-table thead th {
  padding-top: 0;
  font-size: 13px;
  font-weight: var(--w-h);
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  border-bottom-color: var(--line-strong);
}
.security-table tbody th {
  width: 40%;
  font-weight: var(--w-h);
}
.security-table td {
  color: var(--ink-2);
}
:lang(ja) .security-table th,
:lang(ja) .security-table td {
  word-break: auto-phrase;
}
/* Phones: each row stacks, name above use. スマホは行ごとに縦積み。 */
@media (max-width: 599px) {
  .security-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .security-table tr {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }
  .security-table tbody tr:first-child {
    border-top: 1px solid var(--line);
  }
  .security-table tbody th,
  .security-table td {
    display: block;
    width: auto;
    padding: 0;
    border: 0;
  }
}
.security-section.security-contact {
  margin-top: 16px;
  padding: 28px 24px;
  border: 0;
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--shadow-desk);
}
@media (min-width: 900px) {
  .security-section.security-contact {
    padding: 32px;
  }
}

/* --------------------------------------------------------- not found */
/* The 404 page: one short message between the site's header and footer.
   404 ページ。ヘッダーとフッターの間に短い案内だけ。 */
main > .not-found {
  position: relative;
  overflow: hidden;
  padding: 40px 0 96px;
  min-height: 50vh;
}
@media (min-width: 900px) {
  main > .not-found {
    padding: 72px 0 160px;
  }
}

/* ------------------------------------------------------------ reveal */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--dur-4) var(--ease-settle), transform var(--dur-4) var(--ease-settle);
}
html.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}
html.js .floor-hero > .tile {
  animation: fillin var(--dur-4) var(--ease-settle) backwards;
  animation-delay: calc(var(--i, 0) * 30ms);
}

/* -------------------------------------------------------- keyframes */
@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes fillin {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.room-bar .avatar-you {
  animation-name: popin;
}
.call-pill {
  animation: fadein var(--dur-2) ease-out;
}
@keyframes fadein {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes popin {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes breath {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.3);
    opacity: 0.7;
  }
}
@keyframes ringpulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}
@keyframes knock {
  0% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-4px);
  }
  40% {
    transform: translateX(4px);
  }
  60% {
    transform: translateX(-3px);
  }
  80% {
    transform: translateX(2px);
  }
  100% {
    transform: translateX(0);
  }
}
@keyframes wave {
  0%,
  100% {
    height: 30%;
  }
  50% {
    height: 100%;
  }
}
@keyframes petal {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.4) rotate(0);
  }
  20% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1) rotate(160deg);
  }
}
@keyframes dotdrop {
  from {
    transform: translate(-50%, calc(-50% - 16px)) scale(0.6);
    opacity: 0;
  }
  to {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}
@keyframes shutter {
  0% {
    opacity: 0;
  }
  15% {
    opacity: 0.16;
  }
  55% {
    opacity: 0.16;
  }
  100% {
    opacity: 0;
  }
}
.tile.is-shutter .tile-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #fff;
  animation: shutter var(--dur-5) linear;
}
.tile.is-shutter .tile-ring {
  animation: ringsweep var(--dur-5) var(--ease-move);
}
@keyframes ringsweep {
  0% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.35);
  }
  100% {
    filter: brightness(1);
  }
}

/* ------------------------------------------------------------- dark */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --ground: #111522;
    --surface: #181d2b;
    --raised: #20263a;
    --sunken: #0c0f18;
    --line: #2a3043;
    --line-strong: #3a4158;
    --ink: #eceef4;
    --ink-2: #b4b9cb;
    --ink-muted: #8a90a6;
    --accent: #5468e0;
    --accent-hover: #6577e6;
    --accent-ink: #ffffff;
    --accent-text: #9aa8ff;
    --accent-soft: rgba(84, 104, 224, 0.18);
    --focus: #9aa8ff;
    --thanks: #f472b6;
    --wash: #1a2140;
    --map-ocean: #0c0f18;
    --map-land: #2a3043;
    --st-online-text: #4ade80;
    --st-away-text: #fbbf24;
    --st-meeting-text: #c084fc;
    --st-break-text: #2dd4bf;
    --st-dnd-text: #f87171;
    --st-offline-text: #9ca3af;
    --shadow-desk: 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    --shadow-lift: 0 0 0 1px var(--line);
  }
}
:root[data-theme='dark'] {
  --ground: #111522;
  --surface: #181d2b;
  --raised: #20263a;
  --sunken: #0c0f18;
  --line: #2a3043;
  --line-strong: #3a4158;
  --ink: #eceef4;
  --ink-2: #b4b9cb;
  --ink-muted: #8a90a6;
  --accent: #5468e0;
  --accent-hover: #6577e6;
  --accent-ink: #ffffff;
  --accent-text: #9aa8ff;
  --accent-soft: rgba(84, 104, 224, 0.18);
  --focus: #9aa8ff;
  --thanks: #f472b6;
  --wash: #1a2140;
  --map-ocean: #0c0f18;
  --map-land: #2a3043;
  --st-online-text: #4ade80;
  --st-away-text: #fbbf24;
  --st-meeting-text: #c084fc;
  --st-break-text: #2dd4bf;
  --st-dnd-text: #f87171;
  --st-offline-text: #9ca3af;
  --shadow-desk: 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  --shadow-lift: 0 0 0 1px var(--line);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .story-scene {
    --scene-shade: #070912;
  }
  :root:not([data-theme='light']) .story-scene[data-moment='0'] {
    --sky-top: #1b2742;
    --sky-bottom: #3c3a52;
    --sun: #f2c063;
  }
  :root:not([data-theme='light']) .story-scene[data-moment='1'] {
    --sky-top: #1d3050;
    --sky-bottom: #2e3e63;
    --sun: #f5d27a;
  }
  :root:not([data-theme='light']) .story-scene[data-moment='2'] {
    --sky-top: #1f3a66;
    --sky-bottom: #35496f;
    --sun: #fbe6a0;
  }
  :root:not([data-theme='light']) .story-scene[data-moment='3'] {
    --sky-top: #26305a;
    --sky-bottom: #5a4258;
    --sun: #f0b35e;
  }
  :root:not([data-theme='light']) .story-scene[data-moment='4'] {
    --sky-top: #141733;
    --sky-bottom: #5b3148;
    --sun: #f28b52;
  }
}
:root[data-theme='dark'] .story-scene {
  --scene-shade: #070912;
}
:root[data-theme='dark'] .story-scene[data-moment='0'] {
  --sky-top: #1b2742;
  --sky-bottom: #3c3a52;
  --sun: #f2c063;
}
:root[data-theme='dark'] .story-scene[data-moment='1'] {
  --sky-top: #1d3050;
  --sky-bottom: #2e3e63;
  --sun: #f5d27a;
}
:root[data-theme='dark'] .story-scene[data-moment='2'] {
  --sky-top: #1f3a66;
  --sky-bottom: #35496f;
  --sun: #fbe6a0;
}
:root[data-theme='dark'] .story-scene[data-moment='3'] {
  --sky-top: #26305a;
  --sky-bottom: #5a4258;
  --sun: #f0b35e;
}
:root[data-theme='dark'] .story-scene[data-moment='4'] {
  --sky-top: #141733;
  --sky-bottom: #5b3148;
  --sun: #f28b52;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .tile-image,
  :root:not([data-theme='light']) .tile:nth-child(3n) .tile-image,
  :root:not([data-theme='light']) .tile:nth-child(3n + 1) .tile-image,
  :root:not([data-theme='light']) .tile:nth-child(5n) .tile-image {
    background: linear-gradient(160deg, #2a3147, #1e2436);
  }
  :root:not([data-theme='light']) .tile-mood,
  :root:not([data-theme='light']) .tile-chip,
  :root:not([data-theme='light']) .tile-open,
  :root:not([data-theme='light']) .map-pin-time {
    background: rgba(32, 38, 58, 0.92);
    color: var(--ink);
  }
  :root:not([data-theme='light']) .office-note,
  :root:not([data-theme='light']) .composer-note {
    color: var(--note-ink);
  }
  :root:not([data-theme='light']) .apps-row.is-ready .apps-state {
    background: rgba(34, 197, 94, 0.15);
  }
  :root:not([data-theme='light']) .privacy-backdrop {
    background: linear-gradient(160deg, #2a3147, #1e2436);
  }
  :root:not([data-theme='light']) .map-night path {
    fill: rgba(0, 0, 0, 0.35);
  }
  :root:not([data-theme='light']) .office-actions {
    background: var(--raised);
  }
  :root:not([data-theme='light']) .call-pill,
  :root:not([data-theme='light']) .story-pill,
  :root:not([data-theme='light']) .talk-pill {
    background: var(--raised);
    color: var(--ink);
  }
  :root:not([data-theme='light']) .privacy-label {
    background: rgba(236, 238, 244, 0.92);
    color: #1c2030;
  }
}
:root[data-theme='dark'] .tile-image,
:root[data-theme='dark'] .tile:nth-child(3n) .tile-image,
:root[data-theme='dark'] .tile:nth-child(3n + 1) .tile-image,
:root[data-theme='dark'] .tile:nth-child(5n) .tile-image {
  background: linear-gradient(160deg, #2a3147, #1e2436);
}
:root[data-theme='dark'] .tile-mood,
:root[data-theme='dark'] .tile-chip,
:root[data-theme='dark'] .tile-open,
:root[data-theme='dark'] .map-pin-time {
  background: rgba(32, 38, 58, 0.92);
  color: var(--ink);
}
:root[data-theme='dark'] .office-note,
:root[data-theme='dark'] .composer-note {
  color: var(--note-ink);
}
:root[data-theme='dark'] .apps-row.is-ready .apps-state {
  background: rgba(34, 197, 94, 0.15);
}
:root[data-theme='dark'] .privacy-backdrop {
  background: linear-gradient(160deg, #2a3147, #1e2436);
}
:root[data-theme='dark'] .map-night path {
  fill: rgba(0, 0, 0, 0.35);
}
:root[data-theme='dark'] .office-actions {
  background: var(--raised);
}
:root[data-theme='dark'] .call-pill,
:root[data-theme='dark'] .story-pill,
:root[data-theme='dark'] .talk-pill {
  background: var(--raised);
  color: var(--ink);
}
:root[data-theme='dark'] .privacy-label {
  background: rgba(236, 238, 244, 0.92);
  color: #1c2030;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .install {
    --ia-desk: #10131d;
    --ia-win: #252b3d;
    --ia-bar: #1e2333;
    --ia-edge: #394057;
    --ia-edge-strong: #5a6380;
    --ia-doc: #3a4260;
    --ia-ph: #424a61;
    --ia-ph-2: #333a4f;
    --ia-btn: #343b50;
    --ia-shade: rgba(0, 0, 0, 0.4);
    --ia-ss: #1c5299;
  }
}
:root[data-theme='dark'] .install {
  --ia-desk: #10131d;
  --ia-win: #252b3d;
  --ia-bar: #1e2333;
  --ia-edge: #394057;
  --ia-edge-strong: #5a6380;
  --ia-doc: #3a4260;
  --ia-ph: #424a61;
  --ia-ph-2: #333a4f;
  --ia-btn: #343b50;
  --ia-shade: rgba(0, 0, 0, 0.4);
  --ia-ss: #1c5299;
}

/* ---------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .story-scene,
  .story-sun,
  .hill-back,
  .hill-front {
    transition: none;
  }
  .story-hint {
    display: none;
  }
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 150ms !important;
  }
  html.js [data-reveal] {
    opacity: 1;
    transform: none;
  }
  html.js .floor-hero > .tile {
    opacity: 1;
    animation: none;
  }
  .tile-open::before {
    animation: none;
  }
  .story-track {
    height: auto;
  }
  .story-sticky {
    position: static;
    height: auto;
  }
  .story-moment {
    display: block;
    margin-bottom: 32px;
  }
  .story-clock {
    display: none;
  }
  .story-time {
    display: block;
  }
}

/* ------------------------------------------------------- comparison page */
/* Reuses the security page layout; the summary table scrolls sideways on phones.
   セキュリティのページの組みを使う。比較表はスマホでは横にスクロールする。 */
.alt-disclosure {
  margin-top: 16px;
  max-width: 640px;
}
.alt-intro {
  margin-bottom: 14px;
  color: var(--ink-2);
}
.alt-note {
  margin-top: 12px;
}
.alt-cta {
  margin-top: 18px;
}
.alt-q {
  margin: 20px 0 6px;
  font-size: 1.05rem;
  font-weight: 700;
}
.alt-q:first-of-type {
  margin-top: 0;
}
.alt-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.alt-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.5;
}
.alt-table th,
.alt-table td {
  padding: 12px 14px 12px 0;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.alt-table thead th {
  padding-top: 0;
  font-size: 13px;
  font-weight: var(--w-h);
  color: var(--ink-muted);
  border-bottom-color: var(--line-strong);
}
.alt-table tbody th {
  font-weight: var(--w-h);
  white-space: nowrap;
}
.alt-table td {
  color: var(--ink-2);
}
