/* Botmura 紹介サイト。色と形はアプリ（src/renderer/styles.css・docs/design/）と揃える。
   外の CDN は読まない（字体は Windows・Mac・スマホの手持ちの物）。JS は使わない。 */

:root {
  color-scheme: dark;
  --night: #0b1016;
  --night-2: #0d131a;
  --column: #121922;
  --card: #1a222d;
  --bubble-bot: #212b37;
  --you: #7fe0a8;
  --you-ink: #06231a;
  --ink: #e6edf3;
  --subtle: #c9d4df;
  --muted: #9dacbc;
  --time: #8c9bab;
  --glow: #39f5a6;
  --working: #8cc4ff;
  --decide: #ff8a3d;
  --decide-soft: #ffb27a;
  --decide-ink: #1a0b00;
  --steel: #2b3746;
  --line: #1f2934;
  --line-2: #263240;
  --line-3: #3a4756;

  --font-ui: "Yu Gothic UI", "Yu Gothic", YuGothic, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
  --font-mono: "Cascadia Mono", "Cascadia Code", Consolas, "SFMono-Regular", Menlo, monospace;

  --text-hero: clamp(2.3rem, 1rem + 4.2vw, 4.1rem);
  --text-h2: clamp(1.85rem, 1.1rem + 2.6vw, 3.2rem);
  --space-sec: clamp(4.5rem, 3rem + 6vw, 9rem);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --r-lg: 22px;
  --r-md: 14px;
  --r-sm: 8px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--night);
  background-image:
    radial-gradient(1100px 620px at 78% -8%, rgba(57, 245, 166, 0.09), transparent 60%),
    radial-gradient(900px 520px at -10% 30%, rgba(140, 196, 255, 0.06), transparent 60%),
    radial-gradient(rgba(201, 212, 223, 0.07) 1px, transparent 1.2px);
  background-size: auto, auto, 22px 22px;
  background-repeat: no-repeat, no-repeat, repeat;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.8;
  overflow-x: hidden;
}

a {
  color: var(--working);
  text-underline-offset: 3px;
}
a:hover {
  color: #b8dbff;
}
:focus-visible {
  outline: 3px solid var(--working);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3,
p {
  margin: 0;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
.mono {
  font-family: var(--font-mono);
}
.muted {
  color: var(--muted);
}

.wrap {
  width: min(1200px, 100% - 2 * clamp(20px, 4vw, 48px));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 50;
  padding: 8px 14px;
  border-radius: var(--r-sm);
  background: var(--ink);
  color: var(--night);
}
.skip:focus {
  top: 12px;
}

/* ---------- 上の帯 ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 16, 22, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.top-in {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}
.crest {
  width: 34px;
  height: 34px;
  flex: none;
}
.nav {
  display: flex;
  gap: 4px;
}
.nav a {
  display: block;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--subtle);
  font-size: 0.9rem;
  text-decoration: none;
  transition: background-color 160ms var(--ease), color 160ms var(--ease);
}
.nav a:hover {
  background: var(--column);
  color: var(--ink);
}
.top nav {
  margin-left: auto;
}
.top-in {
  column-gap: 12px;
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  background: var(--glow);
  color: #04170f;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms var(--ease), box-shadow 220ms var(--ease), filter 160ms var(--ease);
}
.btn:hover {
  color: #04170f;
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 0 0 6px rgba(57, 245, 166, 0.14), 0 12px 32px rgba(57, 245, 166, 0.22);
}
.btn:active {
  transform: translateY(1px);
  box-shadow: none;
}
.btn-sm {
  padding: 7px 16px;
  font-size: 0.88rem;
}
.btn-lg {
  padding: 15px 22px 15px 20px;
  font-size: 1.05rem;
}
.btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.soon {
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(4, 23, 15, 0.16);
  font-size: 0.75rem;
  font-weight: 700;
}
.soon-in {
  margin-left: 6px;
  background: #16314f;
  color: var(--working);
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 14px 18px;
  border: 1px solid #66788a; /* 縁は背景と 3:1 以上（1.4.11） */
  border-radius: 999px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  transition: border-color 160ms var(--ease), background-color 160ms var(--ease);
}
.btn-ghost:hover {
  border-color: var(--subtle);
  background: var(--column);
  color: var(--ink);
}

/* ---------- 一番上 ---------- */
.hero {
  padding: clamp(3rem, 2rem + 4vw, 6rem) 0 clamp(3.5rem, 2rem + 4vw, 6rem);
}
.hero-in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(18, 25, 34, 0.7);
  color: var(--subtle);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--glow);
  box-shadow: 0 0 0 4px rgba(57, 245, 166, 0.16), 0 0 14px var(--glow);
}
.dot-wait {
  background: var(--decide);
  box-shadow: 0 0 0 4px rgba(255, 138, 61, 0.16), 0 0 14px var(--decide);
}
.hero h1,
.sec h2,
.dl-box h2,
.stub h1 {
  font-feature-settings: "palt" 1;
}
.hero h1 .ln {
  display: block;
  white-space: nowrap;
}
.hero h1 {
  font-size: var(--text-hero);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.01em;
}
.hero h1 em {
  font-style: normal;
  color: var(--glow);
  text-shadow: 0 0 32px rgba(57, 245, 166, 0.35);
}
.lead {
  margin-top: 26px;
  max-width: 34em;
  color: var(--subtle);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.12rem);
}
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}
.req {
  margin-top: 16px;
  color: var(--time);
  font-size: 0.82rem;
}

/* 一番上の絵：bot の村（ターミナルの区画が並び、1つがあなたを待って光る） */
.village {
  position: relative;
  min-width: 0;
  padding-bottom: 84px;
}
.vgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  background:
    radial-gradient(420px 260px at 0% 100%, rgba(255, 138, 61, 0.08), transparent 70%),
    linear-gradient(180deg, var(--column), var(--night-2));
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.4),
    0 40px 80px -24px rgba(0, 0, 0, 0.7),
    0 0 120px -48px rgba(57, 245, 166, 0.3);
  transform: perspective(1600px) rotateY(-7deg) rotateX(3deg);
  transform-origin: left center;
}
.vc {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  min-height: 136px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #080c11;
  color: var(--subtle);
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.6;
  animation: arrive 520ms var(--ease-out) both;
}
.vc:nth-child(1) { animation-delay: 0.1s; }
.vc:nth-child(2) { animation-delay: 0.2s; }
.vc:nth-child(3) { animation-delay: 0.3s; }
.vc:nth-child(4) { animation-delay: 0.4s; }
.vc:nth-child(5) { animation-delay: 0.5s; }
.vc:nth-child(6) { animation-delay: 0.6s; }
.vc-h {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  margin-bottom: 6px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.vc-name {
  flex: none;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 12.5px;
  font-weight: 800;
}
.vc-cli {
  overflow: hidden;
  margin-left: auto;
  color: var(--time);
  font-size: 10.5px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.vc-t {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.vc-t:nth-last-child(2) {
  margin-bottom: 8px;
}
.vc .p { color: var(--time); }
.vc .g { color: var(--glow); }
.vc .w { color: var(--decide); font-weight: 700; }
.vc .caret { width: 7px; margin-left: 0; }
/* 札は流れの中に置き、下へ寄せる（英語の長い札が折り返しても、上の行に重ならない） */
.vc-s {
  align-self: flex-start;
  max-width: 100%;
  margin-top: auto;
  padding: 0 8px;
  border-radius: 10px;
  font-family: var(--font-ui);
  font-size: 10.5px;
  font-weight: 700;
}
.vc-work .vc-s { background: #16314f; color: var(--working); }
.vc-awake .vc-s { background: #133826; color: var(--you); }
.vc-card .vc-s { background: #3d2312; color: var(--decide-soft); }
.vc-off { background: #0a0e13; }
.vc-off .vc-t { color: var(--time); }
.vc-off .vc-s { background: #252e39; color: #a5b3c2; }
.vc-wait {
  border-color: var(--decide);
  background: linear-gradient(180deg, #1f140a, #0c0906);
  box-shadow: 0 0 0 1px rgba(255, 138, 61, 0.35), 0 0 40px -6px rgba(255, 138, 61, 0.55);
}
.vc-wait::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  box-shadow: 0 0 0 4px rgba(255, 138, 61, 0.45);
  opacity: 0;
  pointer-events: none;
  animation: wait-ring 2.4s var(--ease) 1.2s infinite;
}
.vc-wait .vc-s { background: var(--decide); color: var(--decide-ink); }
.vc-empty {
  display: grid;
  place-items: center;
  border: 1px dashed var(--line-3);
  background: transparent;
}
.vc-plus {
  width: 20px;
  height: 20px;
  background:
    linear-gradient(var(--line-3), var(--line-3)) center / 2px 100% no-repeat,
    linear-gradient(var(--line-3), var(--line-3)) center / 100% 2px no-repeat;
}

/* 村の上に浮かぶ決めるカード */
.ac {
  position: absolute;
  right: -10px;
  bottom: 0;
  z-index: 1;
  display: grid;
  gap: 7px;
  width: min(310px, 60%);
  padding: 14px;
  border: 1px solid #7a4520;
  border-radius: 4px 18px 18px 18px;
  background: var(--card);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.45),
    0 34px 64px -14px rgba(0, 0, 0, 0.8),
    0 0 70px -24px rgba(255, 138, 61, 0.5);
  font-size: 13px;
  line-height: 1.55;
  animation: card-in 700ms var(--ease-out) 0.9s both;
}
.ac-h {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
}
.ac-tag {
  margin-left: auto;
  padding: 0 8px;
  border-radius: 999px;
  background: #3d2312;
  color: var(--decide-soft);
  font-weight: 700;
}
.ac-q {
  color: var(--ink);
  font-weight: 800;
}
.ac-why {
  color: var(--muted);
  font-size: 11.5px;
}
/* 絵の中の選択肢：押せるボタンに見えないよう、枠は細く薄く・手の形も動きも付けない */
.village {
  cursor: default;
  user-select: none;
}
.ac-o {
  display: block;
  padding: 5px 10px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  color: var(--subtle);
  font-size: 12px;
}
.ac-o.is-first {
  border-color: rgba(255, 138, 61, 0.45);
  color: var(--ink);
}
.ac-note {
  color: var(--time);
  font-size: 10.5px;
}

/* 会議室の見本（一番上の下に、横いっぱいで） */
.showcase {
  position: relative;
}
.showcase::before {
  content: "";
  position: absolute;
  inset: 12% 0 auto;
  height: 60%;
  background: radial-gradient(50% 60% at 50% 50%, rgba(57, 245, 166, 0.07), transparent 70%);
  pointer-events: none;
}
.show-media {
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
}
.show-media figcaption {
  margin-top: 12px;
  color: var(--time);
  font-size: 0.78rem;
  text-align: right;
}
.app {
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  background: var(--column);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.4),
    0 40px 80px -24px rgba(0, 0, 0, 0.7),
    0 0 120px -40px rgba(57, 245, 166, 0.35);
  font-size: 13px;
  line-height: 1.6;
}
.app-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 42px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: var(--night);
}
.lights {
  display: flex;
  gap: 6px;
}
.lights i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line-3);
}
.app-title {
  font-weight: 800;
}
.app-stat {
  color: var(--muted);
  font-size: 12px;
}
.decide-pill {
  margin-left: auto;
  padding: 2px 12px;
  border-radius: 999px;
  background: var(--decide);
  color: var(--decide-ink);
  font-size: 12px;
  font-weight: 800;
}
.app-body {
  display: grid;
  grid-template-columns: 196px minmax(0, 1fr);
  min-height: 440px;
}
.list {
  border-right: 1px solid var(--line);
  padding: 8px;
}
.row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 10px;
}
.row.is-on {
  background: #223041;
}
.av {
  width: 38px;
  height: 38px;
  flex: none;
}
.row-t {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.row-t b {
  font-size: 13px;
}
.chip {
  justify-self: start;
  padding: 0 7px;
  border: 1px solid var(--line-3);
  border-radius: 999px;
  color: var(--subtle);
  font-size: 10px;
}
.st {
  justify-self: start;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
}
.st-work {
  background: #16314f;
  color: var(--working);
}
.st-awake {
  background: #133826;
  color: var(--you);
}
.st-off {
  background: #252e39;
  color: #a5b3c2;
}
.st-decide {
  background: #3d2312;
  color: var(--decide-soft);
}
.row .chip {
  display: none;
}

.room {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #0f1620;
}
.room-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
}
.room-head span {
  margin-left: auto;
  color: var(--time);
  font-size: 11px;
}
.feed {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px 18px;
}
.m {
  max-width: 88%;
}
.who {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 11px;
}
.m-sys {
  align-self: center;
  max-width: 100%;
  padding: 2px 12px;
  border-radius: 999px;
  background: var(--line);
  color: var(--muted);
  font-size: 11px;
}
.m-bot p {
  padding: 8px 12px;
  border-radius: 4px 14px 14px 14px;
  border-left: 2px solid var(--line-3);
  background: var(--bubble-bot);
}
.m-you {
  align-self: flex-end;
  text-align: right;
}
.m-you p {
  padding: 8px 12px;
  border-radius: 14px 4px 14px 14px;
  background: var(--you);
  color: var(--you-ink);
  font-weight: 700;
  text-align: left;
}
.m-you .mono {
  color: var(--time);
  font-size: 10px;
}
.card {
  display: grid;
  gap: 6px;
  width: min(300px, 100%);
  padding: 12px;
  border: 1px solid #7a4520;
  border-radius: 4px 16px 16px 16px;
  background: var(--card);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}
.card-q {
  font-weight: 800;
}
.opt {
  display: flex;
  justify-content: space-between;
  padding: 5px 10px;
  border: 1px solid var(--line-3);
  border-radius: var(--r-sm);
  color: var(--subtle);
}
.opt-rec {
  border-color: var(--decide);
  background: rgba(255, 138, 61, 0.1);
  color: var(--ink);
}
.opt small {
  color: var(--decide-soft);
  font-size: 10px;
}
.card-note {
  color: var(--time);
  font-size: 10px;
}
.m-typing {
  display: flex;
  align-items: center;
  gap: 8px;
}
.m-typing .who {
  margin: 0;
}
.dots {
  display: inline-flex;
  gap: 4px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--bubble-bot);
}
.dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
  animation: dot 1.2s ease-in-out infinite;
}
.dots i:nth-child(2) {
  animation-delay: 0.15s;
}
.dots i:nth-child(3) {
  animation-delay: 0.3s;
}

/* 会議室の動き：連絡が1つずつ届く（一度だけ） */
.feed .m {
  animation: arrive 520ms var(--ease-out) both;
}
.feed .m:nth-child(1) { animation-delay: 0.3s; }
.feed .m:nth-child(2) { animation-delay: 1.1s; }
.feed .m:nth-child(3) { animation-delay: 2.1s; }
.feed .m:nth-child(4) { animation-delay: 3.0s; }
.feed .m:nth-child(5) { animation-delay: 4.0s; }
.feed .m:nth-child(6) { animation-delay: 5.6s; }
.feed .m:nth-child(7) { animation-delay: 6.4s; }
.feed .m-card .card {
  animation: card-in 700ms var(--ease-out) 4.1s both;
}
.decide-pill {
  animation: pill 600ms var(--ease-out) 4.2s both;
}

/* bot のアイコンの動き（アプリの icons.css から写した物） */
.spin {
  transform-box: view-box;
  transform-origin: 24px 24px;
  animation: spin 1.6s linear infinite;
}
.glow {
  animation: glow 1.4s ease-in-out infinite;
}
.bob {
  animation: bob 1.2s ease-in-out infinite;
}
.blink {
  transform-box: fill-box;
  transform-origin: center;
  animation: blink 4.2s ease-in-out infinite;
}
.stretch {
  transform-box: fill-box;
  transform-origin: center;
  animation: stretch 1.3s ease-in-out infinite;
}

@keyframes arrive {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@keyframes card-in {
  from { opacity: 0; transform: translateY(8px) scale(0.97); }
  to { opacity: 1; transform: none; }
}
@keyframes pill {
  from { opacity: 0; transform: scale(0.6); }
  to { opacity: 1; transform: none; }
}
@keyframes dot {
  0%, 100% { opacity: 0.3; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-2px); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes glow {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-1.2px); }
}
@keyframes blink {
  0%, 92%, 100% { transform: scaleY(1); }
  96% { transform: scaleY(0.12); }
}
@keyframes stretch {
  0%, 100% { transform: scaleX(0.45); }
  50% { transform: scaleX(1); }
}
@keyframes caret {
  50% { opacity: 0; }
}
@keyframes wait-ring {
  0% { opacity: 0.9; transform: scale(1); }
  70%, 100% { opacity: 0; transform: scale(1.06); }
}
@keyframes rise {
  from { opacity: 0; translate: 0 28px; }
  to { opacity: 1; translate: 0 0; }
}

/* ---------- 節 ---------- */
.sec {
  padding: var(--space-sec) 0 0;
}
.sec-head {
  max-width: 46rem;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.num {
  margin-bottom: 14px;
  color: var(--glow);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
}
.num::after {
  content: "";
  display: inline-block;
  width: 48px;
  height: 1px;
  margin-left: 12px;
  vertical-align: middle;
  background: linear-gradient(90deg, var(--glow), transparent);
}
.sec h2 {
  font-size: var(--text-h2);
  font-weight: 900;
  line-height: 1.25;
}
.sec-lead {
  margin-top: 20px;
  color: var(--subtle);
}
.sp {
  display: none;
}

/* できる事（大きさのちがう枠） */
.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}
.tile {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 2.4vw, 32px);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--column), var(--night-2));
  transition: border-color 220ms var(--ease), transform 220ms var(--ease);
}
.tile:hover {
  border-color: var(--line-3);
  transform: translateY(-2px);
}
.tile h3 {
  margin: 10px 0 12px;
  font-size: clamp(1.15rem, 1rem + 0.5vw, 1.45rem);
  font-weight: 800;
  line-height: 1.45;
}
.tile p {
  color: var(--subtle);
  font-size: 0.95rem;
}
.tile .tag {
  display: inline-flex;
  align-items: center;
  color: var(--glow);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.tag-decide {
  color: var(--decide) !important;
}
.t-room {
  grid-column: 1 / 5;
  padding-right: 42%;
  min-height: 300px;
}
.t-decide {
  grid-column: 5 / 7;
  grid-row: 1 / 3;
  border-color: #4a2c16;
  background: linear-gradient(180deg, #1d1610, var(--night-2) 70%);
}
.t-plan {
  grid-column: 1 / 3;
}
.t-term {
  grid-column: 3 / 5;
}
.t-compare {
  grid-column: 1 / 3;
}
.t-browser {
  grid-column: 3 / 5;
}
.t-ollama {
  grid-column: 5 / 7;
}

.mini-feed {
  position: absolute;
  top: 50%;
  right: 28px;
  display: grid;
  gap: 10px;
  width: 36%;
  transform: translateY(-50%);
}
.mf {
  padding: 9px 13px;
  border-radius: 4px 14px 14px 14px;
  background: var(--bubble-bot);
  color: var(--subtle);
  font-size: 0.82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}
.mf-a { border-left: 3px solid #3dd6f5; }
.mf-b { border-left: 3px solid #a97bff; margin-left: 14%; }
.mf-c { border-left: 3px solid #e6edf3; margin-left: 6%; }

.mini-card {
  display: grid;
  gap: 8px;
  margin-top: 28px;
  padding: 16px;
  border: 1px solid #7a4520;
  border-radius: 4px 18px 18px 18px;
  background: var(--card);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}
.mc-q {
  font-weight: 800;
}
.mc-o {
  padding: 8px 12px;
  border: 1px solid var(--line-3);
  border-radius: var(--r-sm);
  color: var(--subtle);
  font-size: 0.9rem;
}
.mc-rec {
  border-color: var(--decide);
  background: rgba(255, 138, 61, 0.12);
  color: var(--ink);
}

.clock {
  margin-top: 6px;
  color: var(--ink);
  font-size: clamp(2.6rem, 2rem + 2vw, 3.6rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}
.t-plan .clock {
  text-shadow: 0 0 28px rgba(140, 196, 255, 0.35);
}

.term {
  margin: 18px 0 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #080c11;
  color: var(--subtle);
  font-size: 0.82rem;
  line-height: 1.7;
  white-space: pre-wrap;
}
.term .p { color: var(--time); }
.term .g { color: var(--glow); }
.caret {
  display: inline-block;
  width: 8px;
  height: 1em;
  margin-left: 4px;
  vertical-align: -2px;
  background: var(--subtle);
  animation: caret 1s steps(1) infinite;
}

/* 並べて比べる：3 つの答えの列 */
.mini-compare {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 20px;
}
.mini-compare span {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--line);
  border-top-width: 2px;
  border-radius: var(--r-sm);
  background: #0a0f15;
}
.mini-compare i {
  height: 5px;
  border-radius: 3px;
  background: var(--line-3);
}
.mini-compare i:nth-child(2) { width: 80%; }
.mini-compare i:nth-child(3) { width: 55%; }
.mini-compare .c-a { border-top-color: var(--glow); }
.mini-compare .c-b { border-top-color: #3dd6f5; }
.mini-compare .c-c { border-top-color: #a97bff; }

/* つなげる AI：色のちがう帯にして、節の調子を変える */
.sec-agents {
  margin-top: var(--space-sec);
  padding-block: clamp(4rem, 3rem + 4vw, 7rem);
  border-block: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(57, 245, 166, 0.05), transparent 40%),
    rgba(8, 12, 17, 0.72);
}
.sec-agents .sec-head {
  max-width: 52rem;
}
.sec-agents + .sec {
  padding-top: var(--space-sec);
}
.roster {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--line-2);
  gap: 1px;
}
.r-item {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 84px;
  padding: 0 26px;
  background: var(--night-2);
  transition: background-color 200ms var(--ease);
}
.r-item:hover {
  background: var(--column);
}
.r-item:hover .r-dot {
  box-shadow: 0 0 0 5px rgba(57, 245, 166, 0.14), 0 0 14px var(--glow);
}
.r-dot {
  transition: box-shadow 200ms var(--ease);
}
.r-item b {
  font-family: var(--font-mono);
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.25rem);
  font-weight: 700;
}
.r-item small {
  margin-left: auto;
  color: var(--time);
  font-size: 0.78rem;
}
.r-dot {
  width: 9px;
  height: 9px;
  flex: none;
  border-radius: 50%;
  background: var(--glow);
  box-shadow: 0 0 10px var(--glow);
}
.r-local .r-dot {
  background: #ffc83d;
  box-shadow: 0 0 10px #ffc83d;
}
.r-any .r-dot {
  background: transparent;
  border: 1.5px dashed var(--muted);
  box-shadow: none;
}
.r-any b {
  color: var(--subtle);
  font-family: var(--font-ui);
}
.fine {
  margin-top: 16px;
  color: var(--time);
  font-size: 0.8rem;
}

/* 守り */
.local-in {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.local-big h2 {
  font-size: clamp(2.6rem, 1.4rem + 4vw, 4.8rem);
  line-height: 1.1;
  margin-bottom: 26px;
}
.local-big p {
  max-width: 30em;
  color: var(--subtle);
}
.local-big p + p {
  margin-top: 14px;
  font-size: 0.9rem;
}
.local-big .muted {
  color: var(--muted);
}
/* 守り：背に「127.0.0.1」の大きな線の字 */
.local-mark {
  position: absolute;
  right: 0;
  top: -0.55em;
  z-index: -1;
  color: transparent;
  font-size: clamp(3rem, 1rem + 8vw, 9.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  -webkit-text-stroke: 1px rgba(57, 245, 166, 0.13);
  pointer-events: none;
  user-select: none;
}
/* ハイコントラストでは線の字が塗りの字になるので、飾りは出さない */
@media (forced-colors: active) {
  .local-mark {
    display: none;
  }
}
.guard {
  display: grid;
  border-top: 1px solid var(--line-2);
  counter-reset: guard;
}
.guard li {
  counter-increment: guard;
  transition: background-color 200ms var(--ease);
}
.guard li:hover {
  background: linear-gradient(90deg, rgba(57, 245, 166, 0.05), transparent 70%);
}
.guard li {
  display: grid;
  grid-template-columns: minmax(0, 15em) minmax(0, 1fr);
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-2);
}
.guard b {
  position: relative;
  padding-left: 38px;
  font-weight: 800;
  line-height: 1.6;
}
.guard b::before {
  content: counter(guard, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.2em;
  color: var(--glow);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.guard span {
  color: var(--muted);
  font-size: 0.92rem;
}

/* 料金 */
.plans {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 14px;
}
.plan {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: clamp(24px, 3vw, 40px);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--column), var(--night-2));
}
.plan:not(.plan-pro) {
  display: flex;
  flex-direction: column;
}
.plan-free-cta {
  align-self: flex-start;
  margin-top: auto;
}
.plan-pro {
  position: relative;
  border-color: rgba(57, 245, 166, 0.45);
  background:
    radial-gradient(520px 260px at 100% 0%, rgba(57, 245, 166, 0.12), transparent 70%),
    var(--column);
  box-shadow: 0 0 80px -40px rgba(57, 245, 166, 0.5);
}
.plan-pro::before {
  content: "";
  position: absolute;
  top: -1px;
  left: clamp(24px, 3vw, 40px);
  right: clamp(24px, 3vw, 40px);
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--glow), transparent);
}
.plan-name {
  display: flex;
  align-items: center;
  font-size: 1.15rem;
  font-weight: 800;
}
.plan-pro .plan-name {
  color: var(--glow);
}
.price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px 32px;
}
.price {
  font-family: var(--font-mono);
  font-size: clamp(2.4rem, 1.8rem + 2vw, 3.4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}
.price .yen {
  margin-right: 2px;
  font-size: 0.55em;
  vertical-align: 0.5em;
  color: var(--muted);
}
.price small {
  margin-left: 4px;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0;
}
.price-year {
  position: relative;
}
.save {
  display: inline-block;
  margin-left: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #133826;
  color: var(--you);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  vertical-align: middle;
}
.plan-list {
  display: grid;
  gap: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--line-2);
}
.plan-list li {
  position: relative;
  padding-left: 22px;
  color: var(--subtle);
}
.plan-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--glow);
  border-bottom: 2px solid var(--glow);
  transform: rotate(-45deg);
}
.plan-list b {
  color: var(--ink);
}
.plan-notes {
  margin-top: 22px;
  padding: 20px 24px;
  border-left: 3px solid var(--glow);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  background: var(--column);
}
.plan-notes > p:first-child {
  color: var(--subtle);
}
.plan-notes b {
  color: var(--ink);
}

/* 言葉のきりかえ */
.lang {
  padding: 5px 11px;
  border: 1px solid var(--line-3);
  border-radius: 999px;
  color: var(--subtle);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-decoration: none;
}
.lang:hover {
  border-color: var(--subtle);
  color: var(--ink);
}

/* 法の頁 */
.legal {
  max-width: 860px;
  padding: clamp(3rem, 2rem + 3vw, 5rem) 0 6rem;
}
.legal h1 {
  font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.5rem);
  font-weight: 900;
  line-height: 1.3;
  font-feature-settings: "palt" 1;
}
.legal .updated {
  margin-top: 10px;
  color: var(--time);
  font-size: 0.85rem;
}
.legal h2 {
  margin: 2.6rem 0 0.8rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line-2);
  font-size: 1.15rem;
  font-weight: 800;
}
.legal p,
.legal li {
  color: var(--subtle);
}
.legal p + p {
  margin-top: 0.8rem;
}
.legal ol,
.legal ul.dots {
  display: grid;
  gap: 6px;
  margin-top: 0.6rem;
  padding-left: 1.4em;
}
.legal ol {
  list-style: decimal;
}
.legal ul.dots {
  list-style: disc;
}
.legal-table {
  display: grid;
  margin: 2rem 0 0;
  border-top: 1px solid var(--line-2);
}
.legal-table > div {
  display: grid;
  grid-template-columns: minmax(0, 13em) minmax(0, 1fr);
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-2);
}
.legal-table dt {
  font-weight: 800;
}
.legal-table dd {
  margin: 0;
  color: var(--subtle);
}
.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 3rem;
}
.legal-nav a {
  padding: 6px 14px;
  border: 1px solid var(--line-3);
  border-radius: 999px;
  color: var(--subtle);
  font-size: 0.85rem;
  text-decoration: none;
}
.legal-nav a:hover,
.legal-nav a[aria-current="page"] {
  border-color: var(--glow);
  color: var(--ink);
}

/* FAQ */
.faq-in {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(24px, 4vw, 64px);
}
.faq {
  border-top: 1px solid var(--line-2);
}
.faq details {
  border-bottom: 1px solid var(--line-2);
}
.faq {
  counter-reset: faq;
}
.faq details {
  counter-increment: faq;
}
.faq summary::before {
  content: counter(faq, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: calc(22px + 0.3em);
  color: var(--time);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.8;
  transition: color 160ms var(--ease);
}
.faq summary:hover::before,
.faq details[open] summary::before {
  color: var(--glow);
}
.faq summary {
  position: relative;
  padding: 22px 44px 22px 3em;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
  transition: color 160ms var(--ease);
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary:hover {
  color: var(--glow);
}
.faq summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 220ms var(--ease);
}
.faq details[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}
.faq details p {
  padding: 0 0 24px 3em;
  color: var(--subtle);
}

/* 買うボタン（料金の Pro の札の中）：払う前に読む事を、明細のように並べる */
.buy {
  display: grid;
  gap: 16px;
  margin-top: 6px;
  padding: clamp(16px, 2vw, 22px);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  background: rgba(8, 12, 17, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.buy-terms {
  display: grid;
  color: var(--subtle);
  font-size: 0.88rem;
  line-height: 1.7;
}
.buy-terms li {
  display: grid;
  grid-template-columns: 7.4em minmax(0, 1fr);
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line-2);
}
.buy-terms li:first-child {
  padding-top: 0;
}
.bt-k {
  position: relative;
  padding-left: 20px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}
.bt-k::before,
.bt-k::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  box-sizing: border-box;
}
/* 自動更新：ひと回りの矢印 */
.bt-renew .bt-k::before {
  width: 12px;
  height: 12px;
  border: 2px solid var(--glow);
  border-right-color: transparent;
  border-radius: 50%;
}
.bt-renew .bt-k::after {
  left: 8px;
  top: 0.3em;
  border: 3.5px solid transparent;
  border-top-color: var(--glow);
  transform: rotate(35deg);
}
/* 止める時：止めの四角 */
.bt-cancel .bt-k::before {
  left: 1px;
  width: 10px;
  height: 10px;
  margin-top: 1px;
  border-radius: 2px;
  background: var(--decide);
}
/* 台数と鍵：PC 2 台 */
.bt-pc .bt-k::before,
.bt-pc .bt-k::after {
  width: 8px;
  height: 7px;
  border: 1.5px solid var(--working);
  border-radius: 1.5px;
}
.bt-pc .bt-k::after {
  left: 6px;
  top: calc(0.42em + 4px);
  background: #080c11;
}
/* 対象：日本 */
.bt-region .bt-k::before {
  left: 1px;
  width: 10px;
  height: 10px;
  margin-top: 1px;
  border: 1.5px solid var(--muted);
  border-radius: 50%;
}
.bt-region .bt-k::after {
  left: 4px;
  top: calc(0.42em + 4px);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ff5a5a;
}
.buy-btns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.buy button.btn {
  justify-content: center;
  border: 0;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.buy button.btn:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}
.buy button.btn-year {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--glow);
}
.buy button.btn-year:hover {
  color: var(--ink);
  background: rgba(57, 245, 166, 0.08);
}
.buy .fine {
  margin-top: 0;
}
/* 準備中の押せないボタン */
.btn.is-soon,
.btn.is-soon:hover {
  justify-content: center;
  background: transparent;
  color: var(--subtle);
  box-shadow: inset 0 0 0 1.5px var(--line, #2a3440);
  filter: none;
  transform: none;
  cursor: not-allowed;
}

/* ダウンロード */
.sec-dl {
  padding-bottom: var(--space-sec);
}
.dl-box {
  --dl-pad: clamp(24px, 5vw, 64px);
  position: relative;
  overflow: hidden;
  padding: var(--dl-pad);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.7);
  border: 1px solid var(--line-2);
  border-radius: 28px;
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(57, 245, 166, 0.12), transparent 70%),
    var(--column);
}
/* ダウンロードの箱は、アプリの窓の形に */
.dl-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 42px;
  margin: calc(-1 * var(--dl-pad)) calc(-1 * var(--dl-pad)) clamp(28px, 4vw, 48px);
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  background: var(--night);
  color: var(--time);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
}
.dl-box h2 {
  font-size: var(--text-h2);
  font-weight: 900;
  line-height: 1.25;
}
.dl-box > p {
  margin-top: 14px;
  color: var(--subtle);
}
.dl-steps {
  display: grid;
  gap: 6px;
  margin-top: 18px;
  padding-left: 1.4em;
  list-style: decimal;
  color: var(--subtle);
}
.hash {
  font-size: 0.78rem;
  word-break: break-all;
}
.spec {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 32px 0 0;
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--line-2);
}
.spec div {
  padding: 16px 20px;
  background: var(--night-2);
}
.spec dt {
  color: var(--time);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}
.spec dd {
  margin: 4px 0 0;
  font-weight: 700;
}

/* 下 */
.foot {
  border-top: 1px solid var(--line);
  background: var(--night-2);
}
.foot-in {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px 40px;
  align-items: center;
  padding: 36px 0;
}
.foot-brand b {
  font-size: 1.05rem;
}
.foot-brand p {
  color: var(--muted);
  font-size: 0.85rem;
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  justify-content: center;
  font-size: 0.85rem;
}
.foot-links a {
  color: var(--subtle);
  text-decoration: none;
}
.foot-links a:hover {
  color: var(--ink);
  text-decoration: underline;
}
.copy {
  color: var(--time);
  font-size: 0.78rem;
}

/* ---------- 幅ごと ---------- */
@media (max-width: 1080px) {
  .hero-in {
    grid-template-columns: minmax(0, 1fr);
  }
  .village {
    max-width: 720px;
  }
  .vgrid {
    transform: none;
  }
  .ac {
    right: 0;
  }
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .t-room {
    grid-column: 1 / -1;
  }
  .t-decide,
  .t-plan,
  .t-term,
  .t-compare,
  .t-browser,
  .t-ollama {
    grid-column: auto;
    grid-row: auto;
  }
  .plans,
  .faq-in,
  .local-in {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 860px) {
  .nav {
    display: none;
  }
  .top nav {
    margin-left: 0;
  }
  .top .lang {
    margin-left: auto;
  }
  .roster {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .foot-in {
    grid-template-columns: minmax(0, 1fr);
  }
  .foot-links {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .village {
    padding-bottom: 0;
  }
  .vgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 10px 10px 34px;
  }
  .vc {
    min-height: 120px;
  }
  .ac {
    position: relative;
    right: auto;
    width: auto;
    margin: -22px 14px 0;
  }
  .buy-terms li {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
  .buy-btns {
    grid-template-columns: minmax(0, 1fr);
  }
  .faq summary,
  .faq details p {
    padding-left: 2.6em;
  }
  .app-body {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }
  .list {
    display: flex;
    gap: 4px;
    overflow: hidden;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .row {
    padding: 4px;
  }
  .row-t {
    display: none;
  }
  .app-stat {
    display: none;
  }
  .bento {
    grid-template-columns: minmax(0, 1fr);
  }
  .t-room {
    padding-right: clamp(22px, 2.4vw, 32px);
  }
  .mini-feed {
    position: static;
    width: auto;
    margin-top: 22px;
    transform: none;
  }
  .roster {
    grid-template-columns: minmax(0, 1fr);
  }
  .r-item {
    min-height: 62px;
  }
  .guard li {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
  .plans,
  .spec {
    grid-template-columns: minmax(0, 1fr);
  }
  .legal-table > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
  .sp {
    display: inline;
  }
  .cta .btn-lg,
  .cta .btn-ghost {
    width: 100%;
    justify-content: center;
  }
}

/* 下へ読み進めると、枠がそっと上がる（JS なし・対応する所だけ。動きを減らす設定では出さない） */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .tile,
    .plan,
    .guard li,
    .r-item,
    .faq details,
    .dl-box,
    .show-media {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 70%;
    }
    /* 会議室の見本：見本が画面に入ってくるのに合わせて、連絡が1通ずつ届く */
    .app {
      view-timeline: --room block;
    }
    .feed .m,
    .decide-pill {
      animation-duration: 1ms;
      animation-timing-function: linear;
      animation-delay: 0s;
      animation-timeline: --room;
    }
    .feed .m:nth-child(1) { animation-delay: 0s; animation-range: cover 4% cover 11%; }
    .feed .m:nth-child(2) { animation-delay: 0s; animation-range: cover 9% cover 16%; }
    .feed .m:nth-child(3) { animation-delay: 0s; animation-range: cover 14% cover 21%; }
    .feed .m:nth-child(4) { animation-delay: 0s; animation-range: cover 19% cover 26%; }
    .feed .m:nth-child(5) { animation-delay: 0s; animation-range: cover 24% cover 31%; }
    .feed .m:nth-child(6) { animation-delay: 0s; animation-range: cover 31% cover 37%; }
    .feed .m:nth-child(7) { animation-delay: 0s; animation-range: cover 35% cover 41%; }
    .decide-pill { animation-range: cover 26% cover 32%; }
    .feed .m-card .card {
      animation: none;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- 準備中の頁 ---------- */
.stub {
  min-height: 70vh;
  display: grid;
  align-content: center;
  padding: 6rem 0;
}
.stub h1 {
  font-size: var(--text-h2);
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 18px;
}
.stub p {
  max-width: 36em;
  color: var(--subtle);
}
.stub .btn-ghost {
  justify-self: start;
  margin-top: 32px;
}

/* 英語の頁：英字の読みやすい字体を先に */
:root:lang(en) {
  --font-ui: "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Yu Gothic UI", sans-serif;
}
:lang(en) .hero h1 {
  letter-spacing: -0.025em;
}

.top-in > .lang:last-child {
  margin-left: auto;
}
