/* =========================================================================
   shell.css — アプリの「器」（構造と動作）
   ------------------------------------------------------------------------
   ★このファイルに色・書体・文字サイズの**値を1つも書かない**。
     使ってよいのは tokens.css が供給する var(--…) だけ。
     （check_shell.py が hex／rgb／生pxのフォントサイズを検出して落とす）
   ★design.md を差し替えて tokens.css を作り直せば、このファイルは1行も触らずに
     配色・書体だけが変わる。それが分割の目的。

   ここが定義してよい「構造の寸法」だけ :root に置く（見た目ではなく器の寸法）:
     --side-w / --side-w-open / --topbar-h / --content-max / --tabbar-h / z-index
   ========================================================================= */

/* UA既定の [hidden]{display:none}(0,1,0) は `.field{display:flex}` のような
   クラスに必ず負ける。共通CSSの冒頭で1本だけ !important を置いて勝たせる。 */
[hidden] { display: none !important; }

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

:root {
  /* ---- 器の寸法（デザインではなく構造） ---- */
  --side-w: 68px;          /* 折りたたみ時。既定はこちら */
  --side-w-open: 240px;    /* hover / focus-within で一時展開 */
  --side-w-drawer: 280px;  /* SPのドロワー */
  --topbar-h: 64px;
  --content-max: 1400px;
  --tabbar-h: 62px;
  --z-topbar: 30; --z-tabbar: 40; --z-side: 50;
  --z-overlay: 45; --z-modal: 60; --z-toast: 80;   /* 幕はサイド(50)より下。55だとSPでドロワーが押せない（2026-08-29 実測） */
}

html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-jp);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--bg);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;              /* 和文はベタ組み。締めるのは画面タイトルだけ */
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: var(--r-sm); }
.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* =========================================================================
   1. シェル（3層）— 全画面共通。画面側から変更しない
   ========================================================================= */
.app-shell { min-height: 100vh; background: var(--bg); }

.shell-side {
  position: fixed; inset-block: 0; left: 0; z-index: var(--z-side);
  width: var(--side-w);
  display: flex; flex-direction: column;
  background: var(--surface); border-right: 1px solid var(--border);
  transition: width 200ms ease, transform 200ms ease;
  overflow-x: hidden;            /* 折りたたみ時にラベルを切る */
}
.shell-side__nav { flex: 1; overflow-y: auto; overflow-x: hidden; padding: var(--s3) var(--s2); }
.shell-side__logo {
  height: var(--topbar-h); flex: none; display: flex; align-items: center;
  gap: var(--s3); padding: 0 var(--s4); justify-content: flex-start;
  border-bottom: 1px solid var(--border); overflow: hidden;
}
.shell-side__logo .mark {
  width: 36px; height: 36px; flex: none; border-radius: var(--r-sm);
  background: var(--brand-grad); color: var(--on-brand);
  display: grid; place-items: center; font-weight: 800; font-size: var(--fs-label);
}
.shell-side__logo .name { font-size: var(--fs-h3); font-weight: 700; white-space: nowrap; }
.shell-side__foot { flex: none; border-top: 1px solid var(--border); padding: var(--s3) var(--s4); }
.shell-side__foot .row { display: flex; align-items: center; gap: var(--s3); flex-wrap: nowrap; }

.nav-label {
  position: relative;
  font-size: var(--fs-caption); font-weight: 700; color: var(--ink-mute);
  letter-spacing: .06em; padding: var(--s4) var(--s3) var(--s2); white-space: nowrap;
}
.nav-item {
  display: flex; align-items: center; gap: var(--s3);
  height: 40px; padding: 0 var(--s4); justify-content: flex-start;
  border-radius: var(--r-md); color: var(--ink-sub);
  font-size: var(--fs-body); font-weight: 500; white-space: nowrap;
  transition: background .15s, color .15s;
}
.nav-item svg { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; }
.nav-item:hover { background: var(--surface-hover); color: var(--ink); }
.nav-item[aria-current="page"] { background: var(--brand-tint); color: var(--brand-fg); font-weight: 700; }
.nav-item .count {
  margin-left: auto; font-size: var(--fs-caption); font-weight: 700;
  color: var(--ink-mute); font-family: var(--font-num);
}
.nav-item[aria-current="page"] .count { color: var(--brand-fg); }

/* -------------------------------------------------------------------------
   1-2. 折りたたみ／展開：★開閉でアイコンを1pxも動かさない
   -------------------------------------------------------------------------
   やってはいけない実装（実測で壊れた）:
     ✗ 折りたたみ=中央寄せ／展開=左寄せ に切り替える → アイコンが横に飛ぶ
     ✗ ラベルを display:none で消す → ①縦位置まで動く ②補間できずカクつく
                                      ③アクセシビリティツリーから消えて名前が無くなる
     ✗ opacity で消した文字に nowrap を付け忘れる → 幅0で1文字ずつ折り返し、
        器が縦に伸びる（実測：フッタ 69px → 202px、アバターが66px押し上げられた）

   正しい作り:
     ① レイアウトは常に左寄せで固定する
     ② 余白の算数でアイコン中心を折りたたみ幅の中央に合わせる
        ナビ padding 8px ＋ 項目 padding 16px ＝ 24px からアイコン20px → 中心34px
        ロゴも padding 16px ＋ マーク36px → 中心34px（＝68pxの中央）
     ③ ラベル・見出しは display ではなく **opacity** で出し入れする
     ④ opacity で消す文字には必ず **white-space:nowrap** を付ける
     ⑤ :hover だけでなく **:focus-within** を併記する（キーボードで開けなくなる）
     ⑥ 折りたたみ時に読める名前を残すため、ナビ項目に aria-label と title を付ける
   ------------------------------------------------------------------------- */
.shell-side__logo .name,
.nav-item .label,
.nav-item .count,
.shell-side__foot .row > span:last-child {
  opacity: 0; transition: opacity 160ms ease;
}
/* opacity:0 の文字も**レイアウトには残る**。nowrap が無いと器の高さが変わる */
.shell-side__foot .row > span:last-child,
.shell-side__foot .row > span:last-child > * { white-space: nowrap; }

/* グループ見出しは、閉じている間は細い区切り線に置き換える。
   要素そのものは残すので、開閉で項目の縦位置が動かない。 */
.nav-label span { display: block; opacity: 0; transition: opacity 160ms ease; }
.nav-label::after {
  content: ""; position: absolute; left: var(--s4); right: var(--s4); bottom: var(--s2);
  height: 1px; background: var(--border); opacity: 1; transition: opacity 160ms ease;
}

.shell-side:hover, .shell-side:focus-within {
  width: var(--side-w-open); box-shadow: var(--shadow-lg);
}
.shell-side:hover .shell-side__logo .name,
.shell-side:hover .nav-item .label,
.shell-side:hover .nav-item .count,
.shell-side:hover .nav-label span,
.shell-side:hover .shell-side__foot .row > span:last-child,
.shell-side:focus-within .shell-side__logo .name,
.shell-side:focus-within .nav-item .label,
.shell-side:focus-within .nav-item .count,
.shell-side:focus-within .nav-label span,
.shell-side:focus-within .shell-side__foot .row > span:last-child { opacity: 1; }
.shell-side:hover .nav-label::after,
.shell-side:focus-within .nav-label::after { opacity: 0; }

/* -------------------------------------------------------------------------
   1-3. 本体（トップバー＋コンテンツ）
   ------------------------------------------------------------------------- */
.shell-main { padding-left: var(--side-w); min-width: 0; }
/* ★padding は --side-w のまま。展開はオーバーレイなので本文を動かさない */

.shell-topbar {
  position: sticky; top: 0; z-index: var(--z-topbar); height: var(--topbar-h);
  display: flex; align-items: center; gap: var(--s3); padding-inline: var(--s6);
  background: var(--surface); border-bottom: 1px solid var(--border);
}
.shell-crumb {
  display: flex; align-items: center; gap: var(--s2);
  font-size: var(--fs-label); color: var(--ink-mute); min-width: 0; overflow: hidden;
}
.shell-crumb .sep { color: var(--border-strong); }
.shell-crumb .here { color: var(--brand-fg); font-weight: 700; white-space: nowrap; }
.shell-topbar__right { margin-left: auto; display: flex; align-items: center; gap: var(--s3); }

.shell-content { max-width: var(--content-max); margin-inline: auto; padding: var(--s6); }
.shell-content.is-wide { max-width: none; }

.shell-burger, .shell-tabbar, .shell-overlay, .shell-side__close { display: none; }

/* =========================================================================
   2. レスポンシブ — ブレイクポイントは 767 / 1023 / 1439 の3つだけ
      （これ以外を足さない。check_shell.py が数える）
   ========================================================================= */

/* --- SP（〜767px）：サイドはドロワー・下部タブ・ハンバーガー --- */
@media (max-width: 767px) {
  .shell-side {
    width: var(--side-w-drawer);
    transform: translateX(-100%);
    /* 閉じている間は visibility も落とす: 画面外でもフォーカスが入らず、
       Playwright の toBeHidden() が成立する（2026-08-29・削減実績収集の移行で確定） */
    visibility: hidden;
    transition: transform 200ms ease, visibility 0s linear 200ms;
  }
  .shell-side[data-open="true"] { transform: translateX(0); visibility: visible; transition-delay: 0s; box-shadow: var(--shadow-lg); }
  /* ドロワーは常に開いた状態なので、文字を出して区切り線を消す */
  .shell-side .shell-side__logo .name,
  .shell-side .nav-item .label,
  .shell-side .nav-item .count,
  .shell-side .nav-label span,
  .shell-side .shell-side__foot .row > span:last-child { opacity: 1; }
  .shell-side .nav-label::after { opacity: 0; }

  .shell-main { padding-left: 0; }
  .shell-topbar { padding-inline: var(--s4); }
  .shell-content {
    padding: var(--s4);
    /* 最終行が下部タブに隠れる事故を防ぐ。省略禁止 */
    padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 16px);
  }

  .shell-burger {
    display: grid; place-items: center; width: 44px; height: 44px;
    margin-left: calc(var(--s4) * -1);
    background: none; border: 0; color: var(--ink); cursor: pointer; border-radius: var(--r-md);
  }
  .shell-burger svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; }

  .shell-side__close {
    display: grid; place-items: center; margin-left: auto; width: 44px; height: 44px;
    background: none; border: 0; color: var(--ink-sub); cursor: pointer; border-radius: var(--r-md);
  }
  .shell-side__close svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; }

  .shell-overlay {
    display: block; position: fixed; inset: 0; z-index: var(--z-overlay);
    background: var(--scrim); opacity: 0; pointer-events: none; transition: opacity 200ms ease;
  }
  .shell-overlay[data-open="true"] { opacity: 1; pointer-events: auto; }

  .shell-tabbar {
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
    position: fixed; inset-inline: 0; bottom: 0; z-index: var(--z-tabbar);
    height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--surface); border-top: 1px solid var(--border);
  }
  .shell-tabbar a {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 2px; min-height: 44px;
    color: var(--ink-mute); font-size: var(--fs-caption); font-weight: 500;
  }
  .shell-tabbar a svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; }
  .shell-tabbar a[aria-current="page"] { color: var(--brand); font-weight: 700; }
}

@media (min-width: 1440px) { .shell-content { padding-inline: var(--s7); } }

/* =========================================================================
   3. ページの骨（見出し・セクション）
   ========================================================================= */
.page-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: var(--s4); margin-bottom: var(--s6); flex-wrap: wrap;
}
.page-head h1 {
  font-size: var(--fs-h1); font-weight: 700;
  line-height: var(--lh-tight); letter-spacing: var(--tracking-title);
}
.page-head h1 .accentword { color: var(--brand-fg); }
.page-head .lead {
  font-size: var(--fs-sub); color: var(--ink-sub); margin-top: var(--s2); max-width: 42em;
  /* 「作っていませ／ん。」のような1〜2文字の孤立を防ぐ */
  text-wrap: pretty; word-break: auto-phrase;
}
.page-head__actions { display: flex; align-items: center; gap: var(--s3); flex-wrap: nowrap; }

h2.section-title {
  font-size: var(--fs-h2); font-weight: 700; line-height: var(--lh-heading);
  padding-left: var(--s3); border-left: 3px solid var(--brand); margin-bottom: var(--s4);
}
h3.card-title { font-size: var(--fs-h3); font-weight: 700; line-height: var(--lh-heading); }
.sub { font-size: var(--fs-sub); color: var(--ink-sub); }
.label { font-size: var(--fs-label); font-weight: 700; color: var(--ink-sub); }
.caption { font-size: var(--fs-caption); font-weight: 500; color: var(--ink-mute); }
.muted { color: var(--ink-mute); }
.stack { display: flex; flex-direction: column; gap: var(--s4); }
.row { display: flex; align-items: center; gap: var(--s3); }
.wrap { flex-wrap: wrap; }
.spacer { margin-left: auto; }

/* アイコン＋文字は必ずこの共通クラスで組む（素の span に SVG を置かない）。
   同種ラベルが2箇所以上あるなら、その場のインラインstyleでなくクラスを共有する。 */
.il { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.il svg { flex: none; width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }

/* =========================================================================
   4. 表 — 和文が1文字ずつ縦に割れるのを防ぐ
   -------------------------------------------------------------------------
   ★和文は任意の位置で改行できるので、幅が足りないと**単語ではなく文字単位**で割れる。
     英語なら溢れて気づくが、日本語は横スクロールを出さずに黙って縦へ伸びるだけなので、
     「横スクロール0」の検査を全部すり抜ける。列が多い表は必ず .table--wide を付ける。
   ========================================================================= */
.table-wrap { border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table--wide th, .table--wide td { white-space: nowrap; }
.table--wide .wrapok { white-space: normal; }

.table thead th {
  text-align: left; font-size: var(--fs-label); font-weight: 700; color: var(--ink-sub);
  background: var(--surface-sub); padding: var(--s3) var(--s4);
  border-bottom: 1px solid var(--border); white-space: nowrap;
}
.table tbody td { padding: var(--s3) var(--s4); border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .12s; }
.table tbody tr:hover { background: var(--surface-hover); }
.table tbody tr[aria-selected="true"] { background: var(--brand-soft); }
/* width:100% は「セル幅に従う」宣言。auto レイアウトでは固有幅0扱いになり、
   他列が広がった瞬間にその列ごと潰れる（ビューポート幅に無関係に起きる） */
.table .input, .table .select { min-width: 112px; }
/* 操作列は絶対に折り返さない。縦積みは行高が跳ね、削除の誤爆を誘発する */
.table td.actions, .table th.actions { width: 1%; white-space: nowrap; }
.table td.actions .row { flex-wrap: nowrap; gap: var(--s2); }

@media (max-width: 767px) {
  /* SPはカード化する（横スクロールで詰め込まない） */
  .table-wrap { border: 0; background: transparent; overflow: visible; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table thead { display: none; }
  .table tbody tr {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm); padding: var(--s4); margin-bottom: var(--s3);
  }
  .table tbody tr:hover { background: var(--surface); }
  .table tbody td { border: 0; padding: var(--s1) 0; display: flex; gap: var(--s3); align-items: center; }
  .table tbody td::before {
    content: attr(data-label); flex: none; min-width: 6em;
    font-size: var(--fs-label); font-weight: 700; color: var(--ink-mute);
  }
  .table tbody td[data-label=""]::before, .table tbody td:not([data-label])::before { content: none; }
  .table td.actions { width: auto; padding-top: var(--s3); }
  .table--wide th, .table--wide td { white-space: normal; }  /* カード化したら1行に収める必要はない */
}

/* ★細いコンテナ（左ペイン・ドロワー・分割ペイン）の中は無条件でカード化する。
   @media はビューポート幅で効くので、1440pxの画面に置いた幅360pxのペインでは一度も発火しない。 */
.pane-list .table, .pane-list .table tbody, .pane-list .table tr, .pane-list .table td { display: block; width: 100%; }
.pane-list .table thead { display: none; }

/* 格子（マトリクス）はSPでもカード化しない。縦横の関係が読めなくなるため。
   ★display だけでなく **width も取り返す**こと。`.table td{width:100%}` が残ると
     1列目が表幅いっぱいに膨らみ、中身が画面外へ押し出される。
   ★thead の tr も table-row に戻すこと。tbody だけ戻すと見出し行が
     表のレイアウトから外れ、列見出しと本体の列が一致しなくなる。 */
@media (max-width: 767px) {
  .matrix { display: table; table-layout: fixed; min-width: 0; width: 100%; }
  .matrix thead { display: table-header-group; }
  .matrix thead tr { display: table-row; width: auto; }
  .matrix tbody { display: table-row-group; }
  .matrix tbody tr {
    display: table-row; border: 0; border-radius: 0; box-shadow: none;
    padding: 0; margin: 0; background: var(--surface);
  }
  .matrix tbody td, .matrix tbody th, .matrix thead th {
    display: table-cell; width: auto; padding: var(--s3) var(--s2);
    border-bottom: 1px solid var(--border); vertical-align: middle;
  }
  .matrix tbody td::before { content: none; }
}

/* =========================================================================
   5. モーダル — <dialog> は使わない
   -------------------------------------------------------------------------
   UA既定の width/height:fit-content・margin:auto・max-width:calc(100% - 38px) が
   作者スタイルに勝ち、「560px と書いた箱が実測308px」になる。div で組む。
   ========================================================================= */
.modal-backdrop {
  position: fixed; inset: 0; z-index: var(--z-modal); background: var(--scrim);
  display: none; align-items: flex-start; justify-content: center;
  padding: var(--s6); overflow-y: auto;
}
.modal-backdrop[data-open="true"] { display: flex; }
.modal {
  background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  width: min(720px, 100%); max-height: calc(100vh - 40px);
  display: flex; flex-direction: column; margin: auto;
}
.modal__head {
  flex: none; display: flex; align-items: center; gap: var(--s3);
  padding: var(--s5) var(--s6); border-bottom: 1px solid var(--border);
}
.modal__head h3 { font-size: var(--fs-h2); font-weight: 700; }
.modal__body { flex: 1; overflow-y: auto; padding: var(--s6); }
/* 送信ボタンは常に無スクロールで押せる位置に固定する */
.modal__foot {
  flex: none; position: sticky; bottom: 0; background: var(--surface);
  display: flex; justify-content: flex-end; gap: var(--s3);
  padding: var(--s4) var(--s6); border-top: 1px solid var(--border);
  border-radius: 0 0 var(--r-lg) var(--r-lg);
}
/* 項目6以上のフォームは2列＋節見出し。
   auto-fit を入れ子にすると親の細さを継承して黙って1列に潰れるので、
   単一グリッド＋ grid-column:1/-1 の span で組む。 */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--s4); }
.form-grid > .span-all { grid-column: 1 / -1; }
.form-grid > .sec {
  grid-column: 1 / -1; font-size: var(--fs-label); font-weight: 700; color: var(--brand-fg);
  padding-top: var(--s3); border-top: 1px solid var(--border);
}
.form-grid > .sec:first-child { padding-top: 0; border-top: 0; }

@media (max-width: 767px) {
  /* ★既定は「中身なりの高さで中央」。2行の確認ダイアログまで全画面にすると
     大きな空白が生まれ、しかも日常操作で毎回それが出る。
     全画面が要るのは項目の多いフォームだけなので --sheet で明示する。 */
  .modal-backdrop { padding: var(--s4); align-items: center; }
  .modal { width: 100%; max-height: calc(100vh - 32px); border-radius: var(--r-lg); margin: auto; }
  .modal__head, .modal__body { padding: var(--s4); }
  .modal__foot { padding: var(--s3) var(--s4); }
  .modal-backdrop--sheet { padding: 0; align-items: stretch; }
  .modal-backdrop--sheet .modal { max-height: 100vh; border-radius: 0; margin: 0; }
  .modal-backdrop--sheet .modal__foot { border-radius: 0; }
}

/* =========================================================================
   6. トースト
   ========================================================================= */
.toast-wrap {
  position: fixed; right: var(--s6); bottom: var(--s6); z-index: var(--z-toast);
  display: flex; flex-direction: column; gap: var(--s3); pointer-events: none;
}
@media (max-width: 767px) {
  .toast-wrap {
    right: var(--s4); left: var(--s4);
    bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 12px);
  }
}
.toast {
  background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--brand);
  border-radius: var(--r-md); box-shadow: var(--shadow-lg); padding: var(--s3) var(--s4);
  min-width: 260px; max-width: min(420px, 100%); font-size: var(--fs-body);
  animation: toast-in .2s ease both;
}
.toast.success { border-left-color: var(--ok); }
.toast.warn { border-left-color: var(--warn); }
/* 操作つき（toast(msg, type, {action})）。文と「元に戻す」を横に並べる。
   .toast-wrap は pointer-events:none なので、操作つきの1枚だけ押せるように戻す。
   ボタンの見た目は components.css の .btn--secondary.btn--sm（ここで色・寸法を足さない） */
.toast--action { display: flex; align-items: center; gap: var(--s3); pointer-events: auto; }
.toast--action .toast__msg { flex: 1; min-width: 0; }
.toast--action .btn { flex: none; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* =========================================================================
   7. 入場・カウントアップ（JSが無くても必ず表示されること）
   ========================================================================= */
[data-reveal] { animation: reveal-in .34s cubic-bezier(.22,.61,.36,1) both; }
@keyframes reveal-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
/* ★opacity:0 を固定値で置かない。JS無効のとき要素が消える事故になる。
   `animation … both` なら JS が無くても最終状態で表示される。 */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  .shell-side, .shell-main, .shell-overlay { transition: none !important; }
}

/* =========================================================================
   8. SPのタップ標的
   -------------------------------------------------------------------------
   ★★ 詳細度を上げて「読み込み順に依存しない」形にする ★★
   ここを単一クラス（.btn など）で書くと、**後から読まれる components.css / parts.css の
   `.btn{height:40px}` に同詳細度・後勝ちで負けて効かない**。
   メディアクエリは詳細度を上げないので、@media の中に書いても救われない。
   （実測：この形にする前は check_shell.py の M4 が9件のNGを出した）
   → クラスを2回書いて詳細度を (0,2,0) にする。これで順序に関係なく勝つ。
   ========================================================================= */
@media (max-width: 767px) {
  .btn.btn { height: 44px; }
  .btn--sm.btn--sm { height: 44px; padding: 0 var(--s4); }
  .btn--icon.btn--icon { width: 44px; }
  .chip.chip { height: 44px; }
  .shell-side .nav-item.nav-item { height: 44px; }
  a.inline-link.inline-link { display: inline-flex; align-items: center; min-height: 44px; }
  /* 文字リンクも指で押せる高さにする（mailto など） */
  a.mailto.mailto { display: inline-flex; align-items: center; min-height: 44px; }
}
