/* The phone bar (inc/ticket-banner.php tcm_sp_actions): the client's handoff of 2026-11-17 (TCM_SP_入稿データ v1.0),
 * ported by sp-ticket-20261118/work/port_css.py. 678px and below; common/js/sp-actions.js sets html.tcm-sp-ready, which
 * hides the floating banner and PAGE TOP and shows the bar. Wider screens and translated pages keep the old ones.
 */
.tcm-sp-actions,.tcm-sp-spacer{display:none;}
@media screen and (max-width:678px){
  html.tcm-sp-ready .btn-ticket-fixed,
  html.tcm-sp-ready .pagetop{display:none!important;}
  /* What opens over the page must sit above the bar (90) and under the menu (.hamburger__menu, 100) — the client's
   * guide, section 6. Dialogs (showModal) and the venue map card (100000) already do; these two were under it: the
   * language list (i18n.css .tcm-lang, 20) and the stage timetable's calendar (stage-timetable.css .tcm-date-options,
   * 30, kept above the language list as before).
   */
  html.tcm-sp-ready .tcm-lang{z-index:91;}
  html.tcm-sp-ready .tcm-date-options{z-index:92;}
  html.tcm-sp-ready .tcm-sp-actions{
    display:grid;
    grid-template-columns:minmax(0,1fr) 104px 52px;
    align-items:center;
    column-gap:8px;
    position:fixed;
    z-index:90;
    left:0;right:0;bottom:0;
    width:100%;max-width:none;
    margin:0;
    padding:8px max(10px,env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left));
    background:linear-gradient(180deg,rgba(2,11,36,0),rgba(2,11,36,.96) 20%);
    border:0;border-radius:0;
    box-sizing:border-box;
    font-family:"Noto Sans JP","Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif;
    line-height:1.3;
    text-align:center;
    color:#fff;
    isolation:isolate;
  }
  .tcm-sp-actions *{box-sizing:border-box;}
  .tcm-sp-actions .tcm-sp-action{
    display:flex;
    height:64px;min-height:44px;min-width:0;
    margin:0;padding:7px;
    border:2px solid #e5ca77;border-radius:10px;
    color:#fff;
    text-decoration:none;
    box-shadow:0 2px 8px rgba(0,0,0,.24);
    -webkit-tap-highlight-color:rgba(255,255,255,.2);
    touch-action:manipulation;
  }
  .tcm-sp-actions .tcm-sp-web{
    display:grid;grid-template-columns:46px minmax(0,1fr) 8px;
    align-items:center;column-gap:4px;
    background:linear-gradient(135deg,#b70c24,#8d0615);
  }
  .tcm-sp-actions .tcm-sp-web__copy{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:0;}
  .tcm-sp-actions .tcm-sp-web__title{
    display:block;white-space:nowrap;
    font-family:"Yu Mincho","Hiragino Mincho ProN",serif;
    font-size:clamp(13px,3.85vw,17px);font-weight:700;letter-spacing:0;line-height:1.2;
  }
  .tcm-sp-actions .tcm-sp-web__sub{display:block;white-space:nowrap;font-size:clamp(8px,2.25vw,10px);font-weight:600;letter-spacing:0;line-height:1.3;}
  /* The venue cards' mug layers (800x196: the mug in the left 217px, the rest transparent) at their own ratio, clipped
   * to the mug. Backgrounds, not <img>: only a phone showing the bar fetches them (an <img> in the hidden bar would be
   * fetched on PC too, and style.js holds #loading until every <img> has loaded). Same addresses as index.php's venue
   * cards: keep ?20261024 in step with index.php.
   */
  .tcm-sp-actions .tcm-sp-mugs{display:block;width:46px;height:32px;position:relative;}
  .tcm-sp-actions .tcm-sp-mug{position:absolute;top:0;width:32px;height:29px;overflow:hidden;background:no-repeat 0 0/auto 29px;}
  .tcm-sp-actions .tcm-sp-mug--blue{left:0;z-index:2;background-image:url(../../images/avenue__button-mug.png?20261024);}
  .tcm-sp-actions .tcm-sp-mug--red{left:15px;top:3px;z-index:1;background-image:url(../../images/avenue__button-shiba-mug.png?20261024);}
  .tcm-sp-actions .tcm-sp-chevron{display:inline-block;width:7px;height:7px;flex-shrink:0;border-top:2px solid currentColor;border-right:2px solid currentColor;transform:rotate(45deg);vertical-align:middle;}
  .tcm-sp-actions .tcm-sp-web>.tcm-sp-chevron{color:#f7dfa1;}
  .tcm-sp-actions .tcm-sp-famima{flex-direction:column;align-items:center;justify-content:center;gap:7px;background:linear-gradient(145deg,#0e5939,#06452e);padding:6px 4px;}
  .tcm-sp-actions .tcm-sp-famima__brand{display:block;font-size:10.8px;font-weight:700;white-space:nowrap;letter-spacing:0;line-height:1.25;}
  .tcm-sp-actions .tcm-sp-famima__guide{display:flex;align-items:center;justify-content:center;gap:7px;font-size:14px;font-weight:600;line-height:1.2;white-space:nowrap;}
  .tcm-sp-actions .tcm-sp-top{
    display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;
    width:52px;min-width:44px;height:72px;min-height:44px;
    margin:0;padding:0;border:0;border-radius:6px;
    background:transparent;color:#fff;box-shadow:none;
    appearance:none;cursor:pointer;touch-action:manipulation;
    font:inherit;
  }
  .tcm-sp-actions .tcm-sp-top img{display:block;width:49px;height:49px;max-width:100%;object-fit:contain;margin:0;border:0;}
  .tcm-sp-actions .tcm-sp-top__arrow{display:block;width:8px;height:8px;border-top:2px solid #fff;border-left:2px solid #fff;transform:rotate(45deg);margin:1px 0 -3px;}
  .tcm-sp-actions .tcm-sp-top__label{display:block;font-family:Georgia,"Times New Roman",serif;font-size:9px;font-weight:700;line-height:1.2;white-space:nowrap;letter-spacing:.02em;}
  .tcm-sp-actions a:visited,.tcm-sp-actions a:hover,.tcm-sp-actions a:active{color:#fff;text-decoration:none;}
  .tcm-sp-actions a:active,.tcm-sp-actions button:active{filter:brightness(1.12);}
  .tcm-sp-actions a:focus-visible,.tcm-sp-actions button:focus-visible{outline:3px solid #fff;outline-offset:3px;}
  html.tcm-sp-ready .tcm-sp-spacer{display:block;height:var(--tcm-sp-reserve,calc(88px + env(safe-area-inset-bottom)));width:100%;pointer-events:none;}
  html.tcm-sp-ready{scroll-padding-bottom:var(--tcm-sp-reserve,120px);}
  /* Avoid covering the IME / form while editing. */
  html.tcm-sp-keyboard .tcm-sp-actions{visibility:hidden;pointer-events:none;}
}
@media screen and (max-width:374px){
  html.tcm-sp-ready .tcm-sp-actions{grid-template-columns:minmax(0,1fr) 94px 48px;column-gap:6px;padding-left:8px;padding-right:8px;}
  .tcm-sp-actions .tcm-sp-web{grid-template-columns:minmax(0,1fr) 7px;column-gap:3px;padding:6px;}
  .tcm-sp-actions .tcm-sp-mugs{display:none;}
  .tcm-sp-actions .tcm-sp-web__title{font-size:13px;}
  .tcm-sp-actions .tcm-sp-web__sub{font-size:8.2px;}
  .tcm-sp-actions .tcm-sp-famima__brand{font-size:10px;}
  .tcm-sp-actions .tcm-sp-famima__guide{font-size:13px;}
  .tcm-sp-actions .tcm-sp-top{width:48px;}
  .tcm-sp-actions .tcm-sp-top img{width:46px;height:46px;}
}
@media screen and (min-width:480px) and (max-width:678px){
  html.tcm-sp-ready .tcm-sp-actions{grid-template-columns:minmax(0,1fr) 140px 60px;column-gap:10px;padding-left:16px;padding-right:16px;}
  .tcm-sp-actions .tcm-sp-web{grid-template-columns:48px minmax(0,1fr) 10px;}
  .tcm-sp-actions .tcm-sp-famima__brand{font-size:13px;}
  .tcm-sp-actions .tcm-sp-top{width:60px;}
}
@media print{.tcm-sp-actions,.tcm-sp-spacer{display:none!important;}}
