/* Nonet 販売ページ。白黒のモノトーンで、ライト / ダークはシステムの設定に従う。
   外部のフォントは読み込まない（ヒラギノ / Noto Sans JP が入っていればそれを使う） */

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --bg-soft: #f6f6f6;
  --fg: #111111;
  --fg-soft: #444444;
  --fg-muted: #666666;
  --line: #e5e5e5;
  --line-strong: #d6d6d6;
  --surface: #fafafa;
  --btn-bg: #111111;
  --btn-fg: #ffffff;
  /* 機能紹介の図の暗い板（ターミナルなど。.ill の panel・tile・label-hud） */
  --hud-bg: #111111;
  --hud-border: transparent;
  --hud-cell: #1e1e1e;
  --hud-fg: #a8a8a8;
  --hud-title: #ffffff;
  --hud-on-bg: #ffffff;
  /* デモの HUD: 8つのアイコンが乗る円の半径（HUD の正方形の %）と、その斜めの成分（× cos 45°）。
     アプリの RadialLayout（鍵の円 108 / 外枠 134）と同じ割合。script.js の RING・DIAGONAL と合わせる */
  --ring: 40.3%;
  --ring-diagonal: 28.5%;
  --toast-bg: rgba(17, 17, 17, 0.92);
  --toast-fg: #ffffff;
  --header-bg: rgba(255, 255, 255, 0.86);

  --font: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --wrap: 1120px;
  --gutter: 20px;
  --radius: 14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0b;
    --bg-soft: #151515;
    --fg: #f2f2f2;
    --fg-soft: #c9c9c9;
    --fg-muted: #9c9c9c;
    --line: #262626;
    --line-strong: #383838;
    --surface: #141414;
    --btn-bg: #f2f2f2;
    --btn-fg: #111111;
    --hud-bg: #161616;
    --hud-border: #2c2c2c;
    --hud-cell: #232323;
    --toast-bg: rgba(242, 242, 242, 0.94);
    --toast-fg: #111111;
    --header-bg: rgba(11, 11, 11, 0.86);
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  line-break: strict;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.3;
  font-weight: 700;
  text-wrap: balance;
  word-break: auto-phrase;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

a:hover {
  color: var(--fg-soft);
}

:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
  border-radius: 6px;
}

code,
kbd {
  font-family: var(--mono);
  font-size: 0.92em;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

@media (min-width: 768px) {
  :root {
    --gutter: 32px;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 100;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

.nowrap {
  display: inline-block;
}

/* script.js が出し入れする要素（言語の案内・Mac 以外の端末の案内など）。display を指定したクラスより強くする */
[hidden] {
  display: none !important;
}

/* 公開前に埋める仮の値。見落とさないよう目立たせる */
.todo {
  outline: 1.5px dashed currentColor;
  outline-offset: 3px;
  border-radius: 4px;
}

/* MARK: ヘッダー */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand:hover {
  color: inherit;
}

/* <use> の中身には CSS のセレクタが届かないので、継承する fill で色を付ける（点の輪。アプリのアイコンと同じ形） */
.logo {
  width: 26px;
  height: 26px;
  flex: none;
  fill: currentColor;
}

.site-nav {
  margin-left: auto;
}

.site-nav ul {
  display: flex;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
}

.site-nav a {
  color: var(--fg-soft);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--fg);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
}

.lang-link {
  color: var(--fg-soft);
  text-decoration: none;
}

/* 狭い画面では、ナビゲーションを「メニュー」（<details>。JavaScript なしで開け閉めできる）にまとめる */
.menu {
  position: relative;
  display: none;
}

.menu summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--fg);
  font-size: 14px;
  list-style: none;
  cursor: pointer;
}

.menu summary::-webkit-details-marker {
  display: none;
}

.menu summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.menu[open] summary::after {
  transform: translateY(2px) rotate(-135deg);
}

.menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 20;
  min-width: 220px;
  padding: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--bg);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
}

.menu-panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu-panel a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--fg);
  font-size: 15px;
  text-decoration: none;
}

.menu-panel a:hover {
  background: var(--bg-soft);
}

@media (max-width: 760px) {
  .site-nav {
    display: none;
  }

  .header-actions {
    margin-left: auto;
  }

  .menu {
    display: block;
  }

  /* 言語の切り替えはメニューの中にもある */
  .header-actions > .lang-link {
    display: none;
  }

  /* ロゴ・ダウンロード・メニューを1行に。文字の途中で折り返さない */
  .header-inner {
    gap: 12px;
  }

  .header-actions {
    gap: 8px;
  }

  .header-inner .brand,
  .header-actions .btn,
  .menu summary {
    flex: none;
    white-space: nowrap;
  }
}

/* とても狭い画面（幅 360px 未満）では、ヘッダーのダウンロードを省く（ヒーローのボタンとメニューで足りる） */
@media (max-width: 359px) {
  .header-actions .btn-small {
    display: none;
  }
}

/* MARK: 言語の案内（script.js が、ページの言語を読まないブラウザにだけ出す。自動では移動しない） */

.lang-bar-inner {
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--fg-soft);
  font-size: 14px;
}

.lang-bar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding-block: 6px;
}

.lang-bar-row a {
  color: var(--fg);
  font-weight: 600;
}

.lang-bar-close {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--fg-soft);
  font: inherit;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.lang-bar-close:hover {
  background: var(--line);
  color: var(--fg);
}

/* MARK: Mac 以外の端末の案内（script.js が出す） */

.not-mac {
  display: grid;
  gap: 10px;
  justify-items: start;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--bg-soft);
  color: var(--fg-soft);
  font-size: 15px;
}

.not-mac p {
  margin: 0;
}

.share-status:empty {
  display: none;
}

/* MARK: ボタン */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid var(--btn-bg);
  border-radius: 10px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  color: var(--btn-fg);
  opacity: 0.86;
}

.btn:active {
  transform: translateY(1px);
}

.btn-secondary {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--fg);
}

.btn-secondary:hover {
  color: var(--fg);
  border-color: var(--fg);
  opacity: 1;
}

.btn-small {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 14px;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.fine {
  font-size: 13px;
  color: var(--fg-muted);
}

/* MARK: ヒーロー */

.hero {
  padding-block: 56px 72px;
}

.hero-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 980px) {
  .hero {
    padding-block: 88px 104px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 500px);
    gap: 56px;
  }
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.eyebrow {
  font-size: 13px;
  color: var(--fg-muted);
  letter-spacing: 0.02em;
}

.hero h1 {
  font-size: clamp(2.25rem, 1.35rem + 3.8vw, 3.5rem);
  letter-spacing: 0.01em;
}

/* 日本語の見出しは2つの句（「トラックパッドが、」「9つのボタンになる。」。どちらも約10文字）をそれぞれ1行に収める。
   列の幅（cqi）に合わせて小さくする。cqi を知らないブラウザは上の clamp のまま */
.hero-copy {
  container-type: inline-size;
}

.hero h1:lang(ja) {
  font-size: min(3.5rem, 9.8cqi);
}

.lead {
  max-width: 34em;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  line-height: 1.85;
  color: var(--fg-soft);
}

.hero .fine-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* MARK: HUD のデモ */

.demo {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.demo-stage {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.screen {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10.5;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg-soft);
  overflow: hidden;
}

.menubar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 24px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  font-size: 11px;
  line-height: 1;
}

.menubar b {
  font-weight: 700;
}

.menubar .logo {
  width: 13px;
  height: 13px;
}

/* HUD: ポインタを中心にした円の上の 8つのアイコンと、真ん中の 9つ目。全体の皿も輪も文字も無く、
   アイコンは1つずつ暗い丸い台に白、向けたアイコンだけ白い円に濃いアイコン（アプリと同じ）。正方形の中の位置は --x・--y（slot-N） */
.hud {
  position: absolute;
  left: 50%;
  top: calc(50% + 4px);
  width: 52%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.cell {
  --x: 50%;
  --y: 50%;
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  transition: background-color 0.12s ease, color 0.12s ease, transform 0.12s ease, opacity 0.12s ease;
}

/* アイコンの下の暗い台（アプリの HUDPlate）。白い円より一回り小さく（30px と 34px。アプリは 36pt と 44pt）、
   どの地の上でも白いアイコンが読める濃さ。台の下はぼかす。向けたアイコンでは消えて白い円になる */
.cell::before {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: rgba(26, 26, 26, 0.68);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 1px 3px rgba(0, 0, 0, 0.25);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: opacity 0.12s ease;
}

.cell.on::before {
  opacity: 0;
}

/* 上から時計回り。slot-0 が上（実行）、slot-2 が右、slot-4 が下、slot-6 が左。真ん中は slot-c */
.slot-0 { --x: 50%; --y: calc(50% - var(--ring)); }
.slot-1 { --x: calc(50% + var(--ring-diagonal)); --y: calc(50% - var(--ring-diagonal)); }
.slot-2 { --x: calc(50% + var(--ring)); --y: 50%; }
.slot-3 { --x: calc(50% + var(--ring-diagonal)); --y: calc(50% + var(--ring-diagonal)); }
.slot-4 { --x: 50%; --y: calc(50% + var(--ring)); }
.slot-5 { --x: calc(50% - var(--ring-diagonal)); --y: calc(50% + var(--ring-diagonal)); }
.slot-6 { --x: calc(50% - var(--ring)); --y: 50%; }
.slot-7 { --x: calc(50% - var(--ring-diagonal)); --y: calc(50% - var(--ring-diagonal)); }

/* アイコンは台の上に白（台より手前に描く） */
.cell .icon {
  position: relative;
  width: 18px;
  height: 18px;
  stroke-width: 1.9;
  transition: opacity 0.12s ease;
}

.slot-c .icon {
  width: 16px;
  height: 16px;
}

/* 向けているアイコン: 白い円に濃いアイコン（いま離すと実行）。細い暗い縁で、明るい地でも台の並びの穴に見えない */
.cell.on {
  background: #ffffff;
  color: #111111;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12), 0 0 12px rgba(255, 255, 255, 0.9), 0 2px 6px rgba(0, 0, 0, 0.22);
}

.cell.fire {
  animation: fire 0.32s ease;
}

@keyframes fire {
  40% {
    transform: scale(0.92);
  }
}

/* ポインタ（macOS の矢印）。先端が left・top。静止画では右のアイコン（Claude Code）を向いている */
.pointer {
  position: absolute;
  left: calc(50% + var(--ring));
  top: 50%;
  width: 12px;
  height: 19px;
  margin: -1px 0 0 -1px;
  fill: #000000;
  stroke: #ffffff;
  stroke-width: 1.2;
  stroke-linejoin: round;
  filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, 0.35));
  transition: left 0.32s ease, top 0.32s ease;
  pointer-events: none;
}

.pointer.jump {
  transition: none;
}

/* 向けたまま止めたアイコンの名前（白い円のすぐ下。アプリは 0.6 秒止めると出す）。静止画では右のアイコンの名前が出ている */
.hud-label {
  --x: calc(50% + var(--ring));
  --y: 50%;
  position: absolute;
  left: var(--x);
  top: calc(var(--y) + 22px);
  height: 18px;
  padding: 0 8px;
  border-radius: 9px;
  background: #fafafa;
  color: #111111;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 18px;
  white-space: nowrap;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.22);
  transform: translateX(-50%);
  transition: opacity 0.12s ease;
  pointer-events: none;
}

.toast {
  position: absolute;
  left: 50%;
  bottom: 9%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--toast-bg);
  color: var(--toast-fg);
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, 6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
}

.toast .icon {
  width: 14px;
  height: 14px;
}

/* トラックパッド。描くのは上の縁の帯（開く場所）だけ。マスはポインタで選ぶので、面には何も無い（アプリの図と同じ） */
.trackpad {
  position: relative;
  width: 240px;
  height: 150px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.trackpad-edge {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 9%;
  background: var(--line);
  opacity: 0.7;
}

/* 静止画の指: 上の縁から開いた位置（50%・12%）から右へ滑らせて、ポインタを右のアイコンに向けたところ（script.js の fingerFor） */
.finger,
.ripple {
  position: absolute;
  left: 81%;
  top: 12%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.finger {
  width: 24px;
  height: 24px;
  background: var(--fg);
  transition: left 0.32s ease, top 0.32s ease, opacity 0.12s ease, transform 0.12s ease;
}

.finger.jump {
  transition: opacity 0.12s ease, transform 0.12s ease;
}

/* 上の縁に置いた指から、いまの指までの跡。上端を縁に置き、長さと向きで指まで伸ばす（静止画は右のアイコンまで。script.js の place） */
.trail {
  position: absolute;
  left: 50%;
  top: 4%;
  width: 3px;
  height: 75px;
  border-radius: 2px;
  background: linear-gradient(to bottom, transparent, var(--fg-muted));
  transform: translateX(-50%) rotate(-81deg);
  transform-origin: top center;
  transition: height 0.32s ease, transform 0.32s ease, opacity 0.3s ease;
  pointer-events: none;
}

.trail.jump {
  transition: opacity 0.3s ease;
}

.ripple {
  width: 24px;
  height: 24px;
  border: 1.5px solid var(--fg-muted);
  opacity: 0;
}

.ripple.buzz {
  animation: buzz 0.45s ease-out;
}

@keyframes buzz {
  from {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(1);
  }
  to {
    opacity: 0;
    transform: translate(-50%, -50%) scale(2.6);
  }
}

/* JavaScript が無い・止めているときは、ここまでの静止画（上の縁から滑らせた指でポインタを右のアイコンに向け、HUD が出ている）。
   動いているときは、script.js が付ける状態（hud-open・finger-down・slide-in・in-frame・toast-show）で見せる */
.demo.is-live .hud {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.96);
}

.demo.is-live.hud-open .hud {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.demo.is-live .finger {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.6);
}

.demo.is-live.finger-down .finger {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.demo.is-live .trail {
  opacity: 0;
}

.demo.is-live.slide-in .trail {
  opacity: 1;
}

/* ポインタがアイコンの輪の外にある: 全部のアイコンが薄くなる（離しても何も実行しない。アプリと同じで文字は出さない）。
   台は残し、アイコンだけを薄くする（台ごと薄くすると、明るい地でアイコンが消える） */
.demo.is-live.in-frame .cell .icon {
  opacity: 0.4;
}

/* 動いている間、名前は向けたまま止めたときだけ出る */
.demo.is-live .hud-label {
  opacity: 0;
}

.demo.is-live.label-show .hud-label {
  opacity: 1;
}

.demo.is-live.toast-show .toast {
  opacity: 1;
  transform: translate(-50%, 0);
}

.demo figcaption {
  max-width: 30em;
  min-height: 3.4em;
  font-size: 13px;
  line-height: 1.7;
  text-align: center;
  color: var(--fg-muted);
}

.demo-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--fg-soft);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.demo-toggle:hover {
  color: var(--fg);
  border-color: var(--fg);
}

.demo-toggle[hidden] {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* MARK: セクション共通 */

.section {
  padding-block: 72px;
  border-top: 1px solid var(--line);
}

@media (min-width: 980px) {
  .section {
    padding-block: 104px;
  }
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 44em;
  margin-bottom: 40px;
}

.section-head h2 {
  font-size: clamp(1.625rem, 1.2rem + 1.6vw, 2.125rem);
}

.section-head p {
  color: var(--fg-soft);
}

.num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-muted);
}

/* MARK: 3つの約束 */

.promises {
  display: grid;
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 768px) {
  .promises {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.promises li {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.promises h3 {
  font-size: 1.125rem;
}

.promises p {
  font-size: 15px;
  color: var(--fg-soft);
}

/* MARK: 使い方 */

.flows {
  display: grid;
  gap: 20px;
}

.flow {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  border-radius: 16px;
  background: var(--bg-soft);
}

.flow h3 {
  font-size: 14px;
  color: var(--fg-soft);
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 88px;
  padding: 12px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--bg);
  text-align: center;
  line-height: 1.5;
}

.step b {
  font-size: 15px;
}

.step span {
  font-size: 13px;
  color: var(--fg-muted);
}

.step.is-hud {
  border-color: var(--fg);
  background: var(--fg);
  color: var(--bg);
}

.step.is-hud span {
  color: var(--bg);
  opacity: 0.75;
}

.step.is-goal {
  border: 2px solid var(--fg);
}

/* 矢印 */
.step + .step::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -22px;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--fg-muted);
  border-bottom: 2px solid var(--fg-muted);
  transform: translateX(-50%) rotate(45deg);
}

@media (min-width: 860px) {
  .steps {
    flex-direction: row;
    align-items: stretch;
    gap: 40px;
  }

  .step {
    flex: 1;
  }

  .step + .step::before {
    left: -26px;
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
  }
}

.notes {
  display: grid;
  gap: 12px 32px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  color: var(--fg-soft);
}

@media (min-width: 768px) {
  .notes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.notes li {
  position: relative;
  padding-left: 18px;
}

.notes li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--fg);
}

/* MARK: 機能 */

.features {
  display: grid;
  gap: 20px;
}

@media (min-width: 640px) {
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 980px) {
  .features {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.feature {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 22px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.feature h3 {
  font-size: 1.0625rem;
}

.feature p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--fg-soft);
}

.ill {
  display: block;
  width: 100%;
  max-width: 260px;
  height: auto;
  margin-bottom: 6px;
}

.ill .surface {
  fill: var(--surface);
  stroke: var(--line-strong);
}

.ill .panel {
  fill: var(--hud-bg);
  stroke: var(--hud-border);
}

.ill .tile {
  fill: var(--hud-cell);
}

.ill .tile-on {
  fill: var(--hud-on-bg);
}

.ill .ink {
  fill: var(--fg);
}

.ill .stroke {
  fill: none;
  stroke: var(--fg);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ill .faint {
  fill: none;
  stroke: var(--line-strong);
}

/* トラックパッドの上の縁の帯（開く場所） */
.ill .faint-fill {
  fill: var(--line);
}

.ill .dashed {
  fill: none;
  stroke: var(--line-strong);
  stroke-dasharray: 4 4;
}

.ill .ring {
  fill: none;
  stroke: var(--fg-muted);
}

.ill .label {
  fill: var(--fg);
  font-family: var(--font);
  font-size: 11px;
  font-weight: 500;
}

.ill .label-muted {
  fill: var(--fg-muted);
  font-family: var(--font);
  font-size: 11px;
}

.ill .label-hud {
  fill: var(--hud-title);
  font-family: var(--mono);
  font-size: 11px;
}

/* 塗りの上に抜きで描くもの（アイコンの中の点の輪・スイッチのつまみなど） */
.ill .knock {
  fill: var(--bg);
}

.ill .knock-line {
  fill: none;
  stroke: var(--bg);
  stroke-width: 1.3;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 8px;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 13px;
  line-height: 1.5;
}

/* MARK: 価格 */

.pricing {
  display: grid;
  gap: 32px;
  align-items: start;
}

@media (min-width: 900px) {
  .pricing {
    grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
    gap: 56px;
  }
}

.price-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 28px;
  border: 2px solid var(--fg);
  border-radius: 20px;
}

.price-trial {
  font-size: 14px;
  font-weight: 700;
}

.price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
}

.price-amount {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.price-note {
  font-size: 14px;
  color: var(--fg-muted);
}

.checks {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
}

.checks li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.checks .icon {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 0.3em;
}

.price-card .cta .btn {
  flex: 1 1 160px;
}

.price-card .fine a {
  color: inherit;
}

.price-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: -8px 0 0;
  padding: 0;
  list-style: none;
}

/* MARK: よくある質問 */

.faq {
  max-width: 820px;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  position: relative;
  display: block;
  padding: 20px 40px 20px 0;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--fg-muted);
  border-bottom: 2px solid var(--fg-muted);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.15s ease;
}

.faq details[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}

.faq .answer {
  display: grid;
  gap: 10px;
  padding: 0 0 22px;
  color: var(--fg-soft);
  font-size: 15px;
}

/* MARK: 作っている人 */

.maker-inner {
  display: grid;
  gap: 12px;
  max-width: 44em;
}

.maker h2 {
  font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem);
}

.maker p {
  color: var(--fg-soft);
}

/* MARK: 最後の呼びかけ */

.closing {
  text-align: center;
}

.closing .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.closing h2 {
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
}

.closing .cta {
  justify-content: center;
}

/* MARK: フッター */

.site-footer {
  padding-block: 40px 56px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--fg-muted);
}

.footer-inner {
  display: grid;
  gap: 20px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  color: var(--fg-soft);
}

.legal {
  display: grid;
  gap: 6px;
  max-width: 60em;
  font-size: 12px;
  line-height: 1.7;
}

/* MARK: 文書（プライバシーポリシー） */

.doc {
  padding-block: 56px 88px;
}

.doc .wrap {
  max-width: 760px;
}

.doc h1 {
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.25rem);
  margin-bottom: 8px;
}

.doc h2 {
  font-size: 1.25rem;
  margin: 40px 0 12px;
}

.doc p,
.doc ul {
  margin: 0 0 14px;
  color: var(--fg-soft);
}

.doc ul {
  padding-left: 1.4em;
}

.doc li + li {
  margin-top: 6px;
}

.doc .updated {
  font-size: 14px;
  color: var(--fg-muted);
  margin-bottom: 28px;
}

.doc ol {
  margin: 0 0 14px;
  padding-left: 1.6em;
  color: var(--fg-soft);
}

/* 項目と内容の表（特定商取引法に基づく表記）。狭い画面では縦に並べる */
.facts {
  width: 100%;
  margin: 8px 0 28px;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.75;
  color: var(--fg-soft);
}

.facts th,
.facts td {
  padding: 14px 16px 14px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.facts th {
  width: 12em;
  color: var(--fg);
  font-weight: 700;
}

@media (max-width: 600px) {
  .facts,
  .facts tbody,
  .facts tr,
  .facts th,
  .facts td {
    display: block;
    width: auto;
  }

  .facts th {
    padding-bottom: 2px;
    border-bottom: 0;
  }

  .facts td {
    padding-top: 0;
  }
}

/* MARK: ダウンロードのページ（thanks.html） */

.thanks {
  padding-block: 56px 88px;
}

.thanks h1 {
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.25rem);
}

.thanks-head {
  display: grid;
  gap: 14px;
  max-width: 44em;
  margin-bottom: 48px;
}

.thanks-head p {
  color: var(--fg-soft);
}

.thanks h2 {
  font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem);
  margin-bottom: 20px;
}

.install-steps {
  display: grid;
  gap: 20px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}

@media (min-width: 900px) {
  .install-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.install-step {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 22px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.install-step h3 {
  font-size: 1.0625rem;
}

.install-step p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--fg-soft);
}

.thanks-after {
  display: grid;
  gap: 8px;
  max-width: 44em;
  color: var(--fg-soft);
}

/* MARK: 利用ガイド（guide.html。原本は docs/user-guide*.md） */

.site-nav a[aria-current="page"],
.footer-links a[aria-current="page"] {
  color: var(--fg);
  font-weight: 600;
}

.guide h2 {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.guide h3 {
  font-size: 1.05rem;
  margin: 32px 0 10px;
}

.guide h4 {
  font-size: 1rem;
  margin: 24px 0 8px;
}

.guide ol {
  margin: 0 0 14px;
  padding-left: 1.6em;
  color: var(--fg-soft);
}

.guide li > ul,
.guide li > ol {
  margin: 6px 0 0;
}

.guide strong {
  color: var(--fg);
}

.guide :not(pre) > code {
  padding: 0.1em 0.35em;
  border-radius: 5px;
  background: var(--bg-soft);
}

.guide pre {
  margin: 0 0 14px;
  padding: 14px 16px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: normal;
}

.guide .table-wrap {
  margin: 0 0 14px;
  overflow-x: auto;
}

.guide table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.65;
  color: var(--fg-soft);
}

.guide th,
.guide td {
  padding: 9px 12px 9px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.guide th {
  border-bottom-color: var(--line-strong);
  color: var(--fg);
  font-weight: 700;
  white-space: nowrap;
}

/* 1列目（項目名・変数名）と、3列の表の2列目（既定）は狭くなりすぎないようにする */
.guide td:first-child {
  min-width: 10em;
  color: var(--fg);
  word-break: auto-phrase;
}

.guide td:first-child code {
  white-space: nowrap;
}

.guide td:nth-child(2):nth-last-child(2) {
  min-width: 7em;
  word-break: auto-phrase;
}

/* 狭い画面では、説明の列が細くなりすぎないよう、表だけを横にスクロールさせる */
@media (max-width: 600px) {
  .guide table {
    min-width: 36em;
    font-size: 13px;
  }
}

.toc {
  margin: 28px 0 8px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 15px;
}

.toc-title {
  margin-bottom: 8px;
  font-weight: 700;
}

.toc ol {
  margin: 0;
  padding-left: 1.4em;
}

.toc li + li {
  margin-top: 4px;
}

/* 節の中の見出しは、1行にまとめて並べる */
.toc ol ol {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 16px;
  margin: 2px 0 8px;
  padding: 0;
  list-style: none;
  font-size: 13px;
}

.toc ol ol li + li {
  margin-top: 0;
}

.toc a {
  color: var(--fg-soft);
  text-decoration: none;
}

.toc a:hover {
  color: var(--fg);
  text-decoration: underline;
}

.icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
