縦組みを横に並べるときは flex-direction: row-reverse にする。 素の display: flex だと DOM 順に左→右へ置かれ、日本語の縦組みとして読む向き(右→左)と逆になる。実サイトは 375px でも縦組みのまま 15 要素を保つ(モバイルで横組みに戻さない)。
01 — Visual Theme
CSS 変数の --primary-color も --text-color も #000000。影はぼかし 0 の 6px 6px 0 / 10px 10px 0 で版ズレのような陰を作る。ナビの帯は #ffea5c、ページの地は #ffefef。
02 — Color Palette
3 種とも border-radius: 12px 0 / padding: 3px 9px / 12px / weight 600。
03 — Typography
Google Fonts の URL は Noto+Sans+JP:wght@400;700;900 の 3 本だけ。CSS は 600 を 177 要素(最多)に当てているが、描画はすべて 700。URL に 600 を足すと本当に SemiBold が降ってきて、既存より細く出る。
03.5 — Letter spacing
| 要素 | font-size | letter-spacing(実測) | em 換算 | 出どころ |
|---|---|---|---|---|
| body / 本文 | 16px | 0.48px | 0.03em | body からの px 継承 |
| Lead | 17px | 0.51px | 0.03em | 同上(継承) |
| ナビ項目 | 14px | 0.42px | 0.03em | 同上(継承) |
| 展示室リスト | 13px | 1.3px | 0.1em | 要素が自分で宣言 |
| Display | 27px | 2.7px | 0.1em | 同上(宣言) |
| キャプション | 15px | 1.5px | 0.1em | 同上(宣言) |
サイズが違うのに px が同じなら継承、サイズに比例して px が変わるなら em の宣言。 本文は body に 1 回だけ 0.03em を書き、リストと見出しには個別に 0.1em を当てる。
03.9 — Accessibility
| 標準 | 大 | 特大 | |
|---|---|---|---|
| html | 10px | 12px | 15px |
| body | 16px | 19.2px | 24px |
| h1 | 32px | 38.4px | 48px |
| body の letter-spacing | 0.48px | 0.576px | 0.72px |
| 倍率 | ×1.0 | ×1.2 | ×1.5 |
<input type="radio" hidden> + <label> + <span tabindex="0"> の構成で、ラジオの意味論を保ったまま見た目を作る。選択は localStorage(headerSize)に永続化される。サイズを px で直書きするとこの機能が丸ごと壊れる。
04 — Components
04 — Forms
全角でご入力ください
フォーカスリングは --outline-color(#9b5100)
半角数字でご入力ください
06 — Depth & Elevation
Level 1 / 2 は blur: 0 / spread: 0。ぼかさず右下にベタの黒を 20% で置く、版ズレ・シルクスクリーンのような陰。要素の大きさに応じて 6px → 10px とオフセットを変えているのも意図。
08 — Responsive
| 幅 | html | body | line-height | letter-spacing |
|---|---|---|---|---|
| 1366px(帯の境目・連続) | 10px | 16px | 32px | 0.48px |
| 1365px | 10px | 15.9883px | 31.9766px | 0.4796px |
| 1200px | 10px | 14.0556px | 28.1113px | 0.4217px |
| 1024px | 10px | 11.9941px | 23.9883px | 0.3598px |
| 834px | 10px | 9.7687px | 19.5373px | 0.2931px |
| 769px | 10px | 9.0073px ← 最小 | 18.0146px | 0.2702px |
| 768px | 10px | 28.672px ← 3.18倍に跳ぶ | 57.344px | 0.8602px |
| 428px | 10px | 15.9787px | 31.9573px | 0.4794px |
| 375px(モバイル設計幅) | 10px | 14px | 28px | 0.42px |
html { font-size: 10px } は全幅で固定。動くのは body だけで、
≥1366px は 1.6rem、769〜1365px は 1.1713vw、≤768px は 3.73333vw の 3 帯。
タブレット帯の本文は 10px を切る(834px で 9.77px、769px で 9.01px が最小)。
規定の 4 幅(1440 / 1200 / 834 / 375px)では崖が見えない。
崖を確かめるには only screen and (max-width: 768px) の境界 ±1px を測る。
05 — Layout