/** 音・動きの操作は生成した正方形アイコンで表示し、読み上げ名はaria-labelで保持する。 */
#audio-toggle,
#motion-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 44px;
  height: 44px;
  min-width: 44px;
  max-width: 44px;
  min-height: 44px;
  max-height: 44px;
  flex: 0 0 44px;
  aspect-ratio: 1 / 1;
  margin: 0;
  padding: 0;
  border: 0;
  border-image: none;
  border-radius: 0;
  appearance: none;
  background-color: transparent;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  box-shadow: none;
  font-size: 0;
  line-height: 0;
  letter-spacing: 0;
  color: transparent;
  text-shadow: none;
  vertical-align: middle;
}

#audio-toggle {
  background-image: url('./assets/ui/sound-on.webp');
}
#audio-toggle[aria-pressed='true'] {
  background-image: url('./assets/ui/sound-off.webp');
}
#motion-toggle {
  background-image: url('./assets/ui/motion-on.webp');
}
#motion-toggle[aria-pressed='true'] {
  background-image: url('./assets/ui/motion-off.webp');
}

#audio-toggle:hover:not(:disabled),
#motion-toggle:hover:not(:disabled) {
  background-color: transparent;
  filter: brightness(1.08);
  transform: none;
  scale: 1;
  translate: none;
}

/* フォーカス枠は既存の:focus-visibleを引き継ぎ、アイコンの外側に残す。 */
#audio-toggle:focus-visible,
#motion-toggle:focus-visible {
  outline-offset: 4px;
}
/* 音と動きはヘッダーの隣り合う位置へ置く。 */
.site-header nav{gap:6px}#motion-toggle{position:static;inset:auto}.scene-controls:empty{display:none}@media(max-width:600px){.site-header nav{gap:4px}}@media(max-width:360px){.wordmark img{width:116px;max-width:37vw}}
