/* 全テーマ共通の「働き」だけの CSS（見た目は theme.css）。build が dist/<id>/assets/site.css に置く。
   base.html.j2 は theme.css より先にこれを読むこと。 */
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 8px; top: -100px; z-index: 1000; }
.skip-link:focus { top: 8px; }
.form-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
img, svg, video { max-width: 100%; height: auto; }
.table-wrap, .chart__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.chart__svg { display: block; width: 100%; min-width: 640px; height: auto; }
.article__body img:not(.brand-logo), .article__body video { display: block; height: auto; }
/* 公式ロゴ（YouTube など）は本文の写真の決まりから外し、小さな大きさを保つ */
.article__body img.brand-logo { display: inline-block; width: auto !important; height: 1.25em !important; max-width: none; vertical-align: -0.2em; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---- アイコン・公式ロゴの「崩れない最低限」（site/ICONS.md）。見た目はテーマの theme.css で付ける ----
   .icon：自作アイコン（色は color で付く）。どのテーマでも 300×150 に広がらないよう、ここで字の大きさに合わせる。
   .brand-logo：theSVG の公式ロゴ。色・形を変えない（filter・着色・変形・切り抜き禁止）。縦横比は保つ。 */
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { display: inline-block; width: 1.25em; height: 1.25em; flex: none; vertical-align: -.22em; fill: none; stroke: none; overflow: visible; }
.brand-logo { display: inline-block; width: auto; height: 24px; max-width: none; flex: none; vertical-align: middle; filter: none !important; transform: none !important; }
/* ボタンの中のロゴは白い台の上に置く（緑や黒の地でロゴが潰れないように） */
.btn__logo { box-sizing: content-box; background: #fff; border-radius: 6px; padding: 3px; height: 22px; }

/* スマホ用の図の組み直し（.chart__list）は、使うテーマだけが出す */
.chart__list { display: none; }
