/*
 * 契約会社しらべの画面。
 *
 * speed.watrix.co.jp（watrix-speedtest/public/index.html の <style>）から、使う部品だけをそのまま移した（2026-11-08）。
 * 値は speedtest の実装を正とする。この画面のために足したもの・変えたものには「足した」「変えた」と書く。
 *
 * 色の決め（brief 0 章 Q-06）: --text-muted（#696969）は HUD のラベルなどの飾りだけに使う。
 * 情報を伝える文字（根拠、注記、出典、判定の限界、エラー）には --text-2（#9f9f9f。黒地でコントラスト比 7 以上）を使う。
 *
 * 日本語の折り返し: text-wrap: balance / pretty と word-break: auto-phrase は使わない。
 * 見出し・ラベルは keep-all + BudouX の <wbr>（ビルドのときに入れる）、本文は通常の組版で折る。
 */

/* Jost（可変）。自分のサーバーから配る（CSP の font-src 'self'） */
@font-face {
  font-family: 'Jost';
  src: url('/assets/jost.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;

  --bg: #000000;
  --panel: rgba(14, 14, 16, 0.92);
  --panel-2: rgba(21, 21, 24, 0.93);
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.24);

  --text: #ffffff;
  --text-2: #9f9f9f;
  --text-muted: #696969;

  /* 機能色。装飾では使わない */
  --cyan: #00e5ff;
  --mint: #00ff9c;
  --yellow: #ffe600;
  --amber: #ffb800;
  --magenta: #ff2a6d;

  --spectrum: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0) 0%,
    #3f1046 32%,
    #d92955 44%,
    #9f9f9f 56%,
    #00baee 72%,
    #008bee 85%,
    #2c1b78 100%
  );

  --ls-wide: 0.35em;
  --sans: 'Hiragino Sans', 'Noto Sans JP', 'Yu Gothic UI', Meiryo, sans-serif;
  --display: 'Jost', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html,
body {
  margin: 0;
  background: var(--bg);
}
/* 足した: iOS で横向きにしたときに文字が勝手に大きくならないようにする（文字の拡大は利用者の設定に任せる） */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.75;
  letter-spacing: 0.01em;
  font-feature-settings: 'palt' 1;
  -webkit-font-smoothing: antialiased;
  /* 本文は通常の日本語組版で折る。API から来る文（headline・根拠・注記）には <wbr> がないのでこちら */
  word-break: normal;
  overflow-wrap: anywhere;
  line-break: strict;
}
/* 見出し・ラベルなど原稿に書いた短い文は、BudouX で書き込んだ <wbr> で折り、語の途中では折らない */
.phrase,
.sec-head .jp,
.foot-line {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

/* ── 背景（speedtest と同じ）── */
.bg-agent {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}
.bg-agent img {
  position: absolute;
  left: 0;
  top: 50%;
  height: min(92vh, 890px);
  width: auto;
  max-width: none;
  transform: translate(-50%, -50%);
  opacity: 0.85;
  -webkit-mask-image: linear-gradient(to right, #000 90%, transparent 100%);
  mask-image: linear-gradient(to right, #000 90%, transparent 100%);
}
.bg-agent::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 56% 38% at 54% 26%, rgba(0, 0, 0, 0.9), transparent 72%),
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.28) 0%,
      rgba(0, 0, 0, 0.6) 30%,
      rgba(0, 0, 0, 0.9) 60%,
      rgba(0, 0, 0, 0.95) 100%
    );
}
.coderain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}
.columns {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  pointer-events: none;
  z-index: 1;
}
.columns > i {
  border-right: 1px solid var(--line);
}
.columns > i:last-child {
  border-right: none;
}
@media (min-width: 900px) {
  .columns {
    grid-template-columns: repeat(7, 1fr);
  }
}
.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 3px);
}
.wrap {
  position: relative;
  z-index: 3;
}

/* ── 上部 HUD ── */
.hud {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  overflow-x: auto;
  scrollbar-width: none;
}
.hud::-webkit-scrollbar {
  display: none;
}
.hud .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-right: 1px solid var(--line);
  flex: none;
}
.hud .brand img {
  height: 18px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}
.hud .cell {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-right: 1px solid var(--line);
  color: var(--text-muted);
  white-space: nowrap;
  flex: none;
}
.hud .cell b {
  color: var(--text);
  font-weight: 500;
  letter-spacing: 0.08em;
}
.hud .cell.live b {
  color: var(--cyan);
}
@media (max-width: 700px) {
  .hud .cell.opt {
    display: none;
  }
  .hud .cell,
  .hud .brand {
    padding: 12px 14px;
  }
}
/* 足した: ドメインは大文字にしない。長い名前は HUD の中だけで切る（ページを横に広げない） */
.hud-target {
  text-transform: none;
  max-width: 42vw;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* 足した: HUD の状態の色（speedtest は JS で style.color を変えている。CSP の style-src 'self' に合わせてクラスにした） */
.hud .cell.live b.s-done {
  color: var(--mint);
}
.hud .cell.live b.s-error {
  color: var(--magenta);
}

/* ── ステージ ── */
.stage {
  position: relative;
  padding: 48px 20px 30px;
  text-align: center;
  overflow: hidden;
}
.ghost {
  position: fixed;
  top: 50%;
  right: 0;
  width: 16vh;
  height: 90vh;
  transform: translateY(-50%);
  z-index: 1;
  pointer-events: none;
  user-select: none;
}
.ghost > span {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-90deg);
  font-family: var(--display);
  font-weight: 900;
  font-size: 16.5vh;
  line-height: 1;
  letter-spacing: -0.055em;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.08);
}
@media (max-width: 700px) {
  .ghost {
    display: none;
  }
}
.tagline {
  position: relative;
  font-family: var(--display);
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--text-2);
  margin: 0 0 24px;
}
/* speedtest はドローンを避けるため左右を 64px 空けている。ドローンを使わないので、空けずに字間だけ詰める */
@media (max-width: 560px) {
  .tagline {
    font-size: 10px;
    letter-spacing: 0.22em;
    line-height: 1.8;
  }
}

/* 足した: 見出し。speedtest の数字（.value）と同じ書体・太さで、日本語に合う大きさにした */
.title {
  position: relative;
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(36px, 9vw, 72px);
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--text);
}
.lead {
  position: relative;
  max-width: 36em;
  margin: 18px auto 0;
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--text-2);
}

/* 足した: 検索のフォーム。枠と色は speedtest の button / .conn と同じ値を使う */
.search {
  position: relative;
  max-width: 640px;
  margin: 30px auto 0;
  text-align: left;
}
.search-label {
  display: block;
  margin-bottom: 8px;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--text-2);
}
.search-row {
  display: flex;
  gap: 10px;
}
.search input {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: var(--panel);
  color: var(--text);
  /* 16px 未満だと iOS が入力のたびに画面を拡大する */
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 0.02em;
}
.search input:focus {
  outline: 2px solid var(--cyan);
  outline-offset: -1px;
  border-color: var(--cyan);
}
.search button {
  flex: none;
  min-height: 48px;
}
.hint {
  margin: 8px 0 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--text-2);
}
@media (max-width: 560px) {
  .search-row {
    flex-direction: column;
  }
}

.status {
  position: relative;
  margin: 24px 0 0;
  font-size: 13.5px;
  color: var(--text-2);
  min-height: 22px;
}
/* 足した: エラーは白で出し、頭にマゼンタの印を付ける（色だけで伝えないよう、文も必ず出す） */
.status.error {
  color: var(--text);
}
.status.error::before {
  content: 'ERROR';
  margin-right: 10px;
  padding: 2px 6px;
  border: 1px solid var(--magenta);
  color: var(--magenta);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  vertical-align: 1px;
}

.bar {
  position: relative;
  margin: 22px auto 0;
  width: min(520px, 86vw);
  height: 2px;
  background: var(--line);
  overflow: hidden;
}
.bar > i {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--spectrum);
  background-size: 520px 100%;
  transition: width 0.2s linear;
}
/* 足した: 調べている間は進み具合が分からないので、スペクトラムを左右に流す */
.bar.busy > i {
  width: 45%;
  animation: sweep 1.4s ease-in-out infinite;
}
.bar.done > i {
  width: 100%;
}
@keyframes sweep {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(230%);
  }
}
.stage::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--spectrum);
}

/* ── 本文 ── */
.content {
  max-width: 900px;
  margin: 0 auto;
  padding: 28px 20px 72px;
}
@media (max-width: 700px) {
  .stage {
    padding: 34px 16px 24px;
  }
  .content {
    padding: 20px 16px 56px;
  }
}
.sec {
  margin-top: 44px;
}
.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  margin-bottom: 16px;
}
/* 変えた: 支援技術が日本語の名前も読むよう、英字と日本語を h2 の中に入れた。見た目は speedtest の .sec-head と同じ */
.sec-head h2 {
  margin: 0 auto 0 0;
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  font-weight: 400;
}
.sec-head h2 .en {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(26px, 5vw, 38px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--text);
}
.sec-head .jp {
  font-size: 13px;
  color: var(--text-2);
  letter-spacing: 0.06em;
}

/* ── 結果の見出し ── */
.result-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
  margin-bottom: 20px;
}
.result-title {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 4px 12px;
  flex-wrap: wrap;
  font-weight: 400;
}
.result-title:focus {
  outline: none;
}
.result-title:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}
.result-title .target {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(26px, 6vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--text);
  overflow-wrap: anywhere;
  min-width: 0;
}
.result-title .target-sub {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-2);
  overflow-wrap: anywhere;
}
.result-title .jp {
  font-size: 14px;
  color: var(--text-2);
  letter-spacing: 0.06em;
}
.when {
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-2);
}
.result-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ── 分野のカード（speedtest の .conn の部品）── */
.fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.conn {
  border: 1px solid var(--line);
  background: var(--panel);
  min-width: 0;
}
.conn-head {
  padding: 20px 18px 16px;
  border-bottom: 1px solid var(--line);
}
/* 足した: 分野の名前。番号と英字は飾りなので --text-muted、日本語の名前は --text */
.field-label {
  margin: 0 0 10px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--text);
}
.field-label .no {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}
.conn-name {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.conn-name b {
  /* 変えた: Worker が BudouX で区切った文節（<wbr>）で折り、語の途中では折らない（brief 15 章 D-02） */
  word-break: keep-all;
  overflow-wrap: anywhere;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(21px, 5vw, 26px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--cyan);
  min-width: 0;
}
.conn-badge {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 3px 8px;
  border: 1px solid currentColor;
  color: var(--text-2);
  white-space: nowrap;
}
/* 足した: 確からしさの色（brief 8.3）。ラベルの文字も必ず出す */
.conn-badge.c-confirmed {
  color: var(--mint);
}
.conn-badge.c-strong {
  color: var(--cyan);
}
.conn-badge.c-weak {
  color: var(--amber);
}
.conn-badge.c-neutral {
  color: var(--text-2);
  border-color: var(--line-strong);
}
.conn-sub {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-2);
}
.conn-rows {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  background: var(--line);
  margin: 0;
}
.conn-row {
  flex: 1 1 230px;
  background: var(--panel);
  padding: 13px 18px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 14px;
  flex-wrap: wrap;
}
.conn-row .k {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-2);
  white-space: nowrap;
}
.conn-row .v {
  font-family: var(--mono);
  font-size: 13.5px;
  color: var(--text);
  text-align: right;
  margin-left: auto;
  overflow-wrap: anywhere;
}
/* 変えた: この画面の行は「値 → 日本語のルールの文」なので、1 行を全幅にし、左寄せで読む */
.field .conn-row,
.contacts .conn-row {
  flex-basis: 100%;
  justify-content: flex-start;
}
.field .conn-row .k,
.contacts .conn-row .k {
  flex: 0 0 auto;
  min-width: 6.5em;
}
.field .conn-row .v,
.contacts .conn-row .v {
  /* 375px でも k と同じ行に収まる幅。収まらない長い値だけ次の行へ落ちる */
  flex: 1 1 11em;
  min-width: 0;
  margin: 0;
  text-align: left;
  font-family: var(--sans);
  font-size: 13.5px;
  line-height: 1.7;
}
.contacts .conn-row .v.redacted {
  color: var(--text-2);
}
/* 足した: 取得した値は等幅で書く（brief 8.3） */
code.val {
  font-family: var(--mono);
  font-size: 0.96em;
  overflow-wrap: anywhere;
  word-break: break-all;
}

/* 足した: カードの中の区切り（2 件目以降の判定、IP ごと、管理パネル） */
.grp + .grp {
  border-top: 1px solid var(--line);
}
.grp-head {
  display: flex;
  align-items: baseline;
  gap: 6px 10px;
  flex-wrap: wrap;
  padding: 14px 18px 12px;
  background: var(--panel-2);
  border-bottom: 1px solid var(--line);
}
.grp-kicker {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-2);
}
.grp-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text);
}
.grp-handle {
  font-size: 12px;
  color: var(--text-2);
}
.grp-note {
  margin: 0;
  padding: 10px 18px 12px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--text-2);
}
.grp-note + .grp-note {
  padding-top: 0;
}

/* 変えた: speedtest は --text-muted。注記と message は情報なので --text-2（brief 0 章 Q-06・8.3） */
.conn-note {
  padding: 14px 18px 16px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.75;
  color: var(--text-2);
}
.conn-note p {
  margin: 0;
}
.conn-note p + p {
  margin-top: 6px;
}
.field-body:empty {
  display: none;
}
.contacts .contacts-msg {
  margin: 0;
  padding: 16px 18px;
}
.contacts > .conn-rows + .grp,
.contacts > .contacts-msg + .grp {
  border-top: 1px solid var(--line);
}
.contacts .grp-head .grp-title {
  font-size: 14px;
}

/* ── 畳める区切り（speedtest の .dev-group）── */
.dev-group-head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 18px;
  background: var(--panel-2);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.dev-group-head::-webkit-details-marker {
  display: none;
}
.dev-group-head::after {
  content: '+';
  margin-left: auto;
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 400;
  color: var(--text-2);
}
.dev-group[open] > .dev-group-head::after {
  content: '−';
}
.dev-group[open] > .dev-group-head {
  border-bottom: 1px solid var(--line);
}
@media (hover: hover) {
  .dev-group-head:hover {
    background: rgba(255, 255, 255, 0.05);
  }
}
.dev-group-head:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: -2px;
}

/* 足した: 生データ。speedtest の .log-body と同じ文字の組み方 */
.raw-sec + .raw-sec {
  border-top: 1px solid var(--line);
}
.raw-title {
  margin: 0;
  padding: 12px 18px 0;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: var(--text-2);
}
.raw-pre {
  margin: 0;
  padding: 10px 18px 16px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.8;
  letter-spacing: 0.02em;
  color: var(--text-2);
  max-height: 380px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-all;
}
.raw-pre:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: -2px;
}

/* 足した: 注意書き（AC-16） */
.disclaimer {
  margin: 28px 0 0;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--amber);
  background: var(--panel);
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--text);
}

/* 足した: 判定の限界（AC-64） */
.limits-body {
  padding: 6px 18px 20px;
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--text-2);
}
.limits-body h3 {
  margin: 18px 0 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text);
}
.limits-body ul {
  margin: 0;
  padding-left: 1.2em;
}
.limits-body li + li {
  margin-top: 6px;
}
.limits-body p {
  margin: 0;
}
.levels {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.levels > div {
  display: flex;
  gap: 6px 14px;
  flex-wrap: wrap;
  align-items: baseline;
}
.levels dt {
  flex: 0 0 6.5em;
}
.levels dd {
  margin: 0;
  flex: 1 1 18em;
  min-width: 0;
}

/* ── ボタン（speedtest と同じ）── */
button {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 13px 30px;
  border-radius: 0;
  border: 1px solid var(--text);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, opacity 0.2s, border-color 0.2s;
}
@media (hover: hover) {
  button:hover:not(:disabled) {
    background: var(--text);
    color: #000;
  }
}
button.primary {
  border-color: var(--cyan);
  color: var(--cyan);
}
@media (hover: hover) {
  button.primary:hover:not(:disabled) {
    background: var(--cyan);
    color: #000;
  }
}
button:disabled {
  opacity: 0.3;
  cursor: default;
}
/* 足した: キーボードで操作しているときの印（speedtest の .dev-group-head と同じシアンの枠） */
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}
/* 変えた: 「調べる」は日本語なので、英字向けの広い字間を少し詰める */
.search button {
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.12em;
}
button,
summary,
a {
  -webkit-tap-highlight-color: transparent;
}
@media (hover: none) {
  button:active:not(:disabled) {
    background: rgba(255, 255, 255, 0.14);
  }
  button.primary:active:not(:disabled) {
    background: rgba(0, 229, 255, 0.16);
  }
  .dev-group-head:active {
    background: rgba(255, 255, 255, 0.08);
  }
}
@media (pointer: coarse) {
  button.mini {
    min-height: 44px;
    padding: 10px 16px;
  }
}
button.mini {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: none;
  padding: 7px 14px;
  border-color: var(--line-strong);
  color: var(--text-2);
}
/* 足した: コピーしたことを、押したボタンの上でも見せる */
button.mini.done {
  border-color: var(--mint);
  color: var(--mint);
}

/* ── フッター（speedtest と同じ）── */
footer {
  border-top: 1px solid var(--line);
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  /* 変えた: 宣伝文は情報なので --text-2 */
  color: var(--text-2);
  position: relative;
  z-index: 2;
}
footer a {
  color: var(--text-2);
  text-decoration: none;
  font-family: var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  /* 指で押せる高さ */
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
@media (hover: hover) {
  footer a:hover {
    color: var(--text);
  }
}

/* 足した: 読み上げだけに使う文（コピーしたことの通知） */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.01ms !important;
  }
  /* 足した: 流れるバーも止め、全幅で出しておく */
  .bar.busy > i {
    width: 100%;
    animation: none;
  }
}
