/* phone.css: スマホ（ヘッダー・日の見出し・横向き）と、スマホで文字を大きくする所。 */
@media (min-width: 601px) {
  :root { --label-w: 134px; }
}
@media (max-width: 600px) {
  :root { --label-w: 86px; }
  .label { padding: 6px 4px 6px 13px; }
  /* スマホ: 日付を小さくし、更新時刻を横に置く。 */
  .dayhead { height: 46px; min-height: 0; padding-bottom: 10px; flex-wrap: nowrap;
    align-items: flex-end; }
  .dayhead .big { font-size: 34px; }
  .dayhead .en { display: none; }
  .dayhead h2 { gap: 8px; }
  .dayhead p { white-space: nowrap; font-size: 11px; }
  /* 隠した劇場の数は時間割の角の劇場ボタンに出る。高さ固定の見出しには置く場所がない。 */
  .dayhead .hidden-wrap { display: none; }
  .dayhead .ja { white-space: nowrap; }
  /* お知らせ（#newsBar）があるときだけ、日付の下に1行ぶん伸ばす。出すかどうかは描く前に決まるので、ずれない。 */
  .dayhead:has(.news-bar:not([hidden])) { height: auto; flex-wrap: wrap; }
  .news-bar { margin-top: 4px; font-size: 12px; }
  main { padding-top: 14px; }
    /* ヘッダーのボタン: タブバーのように、アイコンの下に短いラベル。 */
  .bar { padding: 8px 10px 4px 16px; }
  .tools { gap: 0; }
  .tools .theme { flex-direction: column; gap: 1px; height: 46px; min-width: 52px; padding: 0 4px;
    border-color: transparent; font-size: 10.5px; color: var(--ink); }
  .tools .theme svg { width: 19px; height: 19px; }
  .tools .theme[aria-pressed="true"] { border-color: transparent; background: var(--surface-2); }
  :root[data-help-new] #helpBtn::after { top: 5px; right: 12px; }
  /* ボタンが 4 つになって幅が足りないので、狭いスマホでは HASHIGO の小さな字を隠す。 */
  .brand .en { display: none; }
  #syncBtn.on .sync-av { width: 22px !important; height: 22px !important; }
  .sync-lbl { max-width: 4.6em; }
  .looks, .venues { top: 60px; }
}
/* 横向きのスマホ: マイ時間割は（PC と同じ）横の列にして、固定ヘッダーの真下に置く。 */
@media (min-width: 700px) and (max-height: 520px) and (max-width: 1099px) {
  :root { --panel-w: 300px; }
  /* 低い日付の帯: 日付と曜日を横に並べ、月は変わる所だけ小さなタグで残す。 */
  .dates { height: 52px; padding-bottom: 8px; }
  /* 月のタグの上に余白を取り、選択中の日の端ではなく中に収める。 */
  .chip { height: 42px; padding-top: 9px; grid-template-columns: auto auto; column-gap: 3px; align-items: baseline;
    position: relative; }
  .chip .m { position: absolute; top: 3px; left: 6px; font-size: 10px; }
  .dates-next { top: 12px; }
  #plan { top: calc(var(--top-h, 140px) + 8px); margin-top: 12px; max-height: calc(100vh - var(--top-h, 140px) - 16px);
    }
  :root[data-head-min] #plan { top: calc(var(--top-h, 140px) - var(--bar-h, 0px) + 14px);
    max-height: calc(100vh - var(--top-h, 140px) + var(--bar-h, 0px) - 22px); }
}
/* ---------- スマホ: 文字を大きく ----------
   読む文字（シート、マイ時間割の一覧、ヘルプ、このサイトについて）は 14–15px にする。
   時間割の上映回は一段階だけ大きくする。これ以上だと題名が切れる。コンパクトは自分の小さいサイズのまま。 */
@media (max-width: 600px) {
  :root:not([data-density="compact"]) .show b { font-size: 13px; line-height: 1.28; }
  :root:not([data-density="compact"]) .show span { font-size: 12px; }
  :root:not([data-density="compact"]) .label { font-size: 13px; }
  :root:not([data-density="compact"]) .label small { font-size: 11px; }
  .item .ttl { font-size: 15px; }
  .item .where, .item .t small { font-size: 12px; }
  .gap { font-size: 13px; }
  .legend { font-size: 13px; }
  .sheet .meta, .sheet .fit, .sheet .facts, .sheet .links, .sheet .also { font-size: 15px; }
  .help li { font-size: 14px; }
  .about { font-size: 14px; }
  .about .fine { font-size: 12px; }
  /* 表示する劇場 */
  .venues .vname .n { font-size: 15px; }
  .venues .vname small { font-size: 12px; }
  .venues .seg button, .venues .vareas button { font-size: 13px; height: 32px; }
  .venues .vsearch input, .venues .vsort { font-size: 15px; }
  /* ↑↓ ボタンは幅を名前に譲る。スマホではグリップ（長押ししてドラッグ）で並べ替える。 */
  .venues .vrow .move { display: none; }
}

