/**
 * 公式サイトのみ・781px 以下向け（PC・通販文脈は変更しない）
 */

/* ── ヘッダー：ハンバーガー（公式のみ。既定は非表示＝PC/通販で DOM はあっても見えない） ── */
.tbt-official-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  margin: 0;
  border: 1px solid rgba(184, 139, 70, 0.45);
  border-radius: 10px;
  background: rgba(255, 252, 248, 0.92);
  color: var(--tbt-kachiiro, #181b39);
  cursor: pointer;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.tbt-official-nav-toggle__bar {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

#masthead.tbt-official-nav-open .tbt-official-nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

#masthead.tbt-official-nav-open .tbt-official-nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

#masthead.tbt-official-nav-open .tbt-official-nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.tbt-official-nav-toggle__bar {
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 781px) {
  body.tbt-context-official:not(.page-staff-only) {
    --tbt-mobile-nav-btn-left: max(0.55rem, env(safe-area-inset-left));
    --tbt-mobile-nav-btn-top: calc(max(0.5rem, env(safe-area-inset-top)) + 3.35rem);
    --tbt-mobile-nav-btn-size: 2.45rem;
    --tbt-mobile-nav-pane-gap: 0.7rem;
  }

  body.admin-bar.tbt-context-official:not(.page-staff-only) {
    --tbt-mobile-nav-btn-top: calc(max(0.5rem, env(safe-area-inset-top)) + 3.35rem + 46px);
  }

  body.tbt-context-official:not(.page-staff-only) .tbt-official-nav-toggle {
    display: inline-flex;
    order: -1;
    position: fixed;
    top: var(--tbt-mobile-nav-btn-top);
    left: var(--tbt-mobile-nav-btn-left);
    right: auto;
    z-index: 9996;
    width: var(--tbt-mobile-nav-btn-size);
    min-width: var(--tbt-mobile-nav-btn-size);
    height: var(--tbt-mobile-nav-btn-size);
    padding: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    border-radius: 10px;
    background: linear-gradient(90deg, rgba(127, 38, 41, 0.97), rgba(154, 52, 56, 0.96));
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 14px rgba(24, 18, 16, 0.22);
  }

  body.tbt-context-official:not(.page-staff-only) .tbt-official-nav-toggle::before {
    content: none !important;
  }

  body.tbt-context-official:not(.page-staff-only) .tbt-official-nav-toggle::after {
    content: none !important;
  }

  body.tbt-context-official:not(.page-staff-only) .tbt-official-nav-toggle__bar {
    display: block;
    width: 1.08rem;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
  }

  body.tbt-context-official:not(.page-staff-only) #masthead.tbt-official-nav-open .tbt-official-nav-toggle::before {
    content: none !important;
  }

  body.tbt-context-official:not(.page-staff-only) #masthead.tbt-official-nav-open .tbt-official-nav-toggle::after {
    content: none !important;
  }

  body.tbt-context-official:not(.page-staff-only) .site-header-inner {
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
  }

  body.tbt-context-official:not(.page-staff-only) .site-branding {
    flex: 1;
    min-width: 0;
  }

  body.tbt-context-official:not(.page-staff-only) #masthead:not(.tbt-official-nav-open) .main-navigation {
    display: none !important;
  }

  body.tbt-context-official:not(.page-staff-only) #masthead.tbt-official-nav-open .main-navigation {
    display: block !important;
    position: fixed;
    top: calc(var(--tbt-mobile-nav-btn-top) + var(--tbt-mobile-nav-btn-size) + var(--tbt-mobile-nav-pane-gap));
    left: max(0.55rem, env(safe-area-inset-left));
    right: max(0.55rem, env(safe-area-inset-right));
    z-index: 9995;
    width: auto;
    max-height: min(72vh, 30rem);
    overflow: auto;
    padding: 0.6rem 0.5rem 0.5rem;
    border: 1px solid rgba(184, 139, 70, 0.26);
    border-radius: 12px;
    background: rgba(255, 252, 248, 0.97);
    box-shadow: 0 10px 24px rgba(24, 18, 16, 0.2);
    margin-top: 0;
  }

  body.tbt-context-official:not(.page-staff-only) #masthead.tbt-official-nav-open .main-navigation .nav-menu {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0.15rem;
    align-items: stretch;
  }

  body.tbt-context-official:not(.page-staff-only) #masthead.tbt-official-nav-open .main-navigation .nav-menu a {
    display: block;
    padding: 0.55rem 0.35rem;
    border-radius: 8px;
  }

  /* 戻る導線はハンバーガーの占有域を避ける（他要素と重ならないことを優先） */
  body.tbt-context-official:not(.page-staff-only) .tbt-inline-back-wrap {
    margin-top: calc(var(--tbt-mobile-nav-btn-size) + 0.6rem);
    margin-left: var(--tbt-mobile-nav-btn-left);
    margin-right: auto;
    width: fit-content;
    padding-left: 0;
    min-height: 0;
    text-align: left !important;
  }

  /* 固定ページ設定：ハンバーガーを隠し、メニューを常時表示（開いた状態と同じ見え方） */
  body.tbt-page-mobile-header-nav--hide.tbt-context-official:not(.page-staff-only) .tbt-official-nav-toggle {
    display: none !important;
  }

  body.tbt-page-mobile-header-nav--hide.tbt-context-official:not(.page-staff-only) #masthead .main-navigation {
    display: block !important;
    flex: 1 0 100%;
    width: 100%;
    padding: 0.5rem 0 0.35rem;
    border-top: 1px solid rgba(184, 139, 70, 0.25);
    margin-top: 0.25rem;
  }

  body.tbt-page-mobile-header-nav--hide.tbt-context-official:not(.page-staff-only) #masthead .main-navigation .nav-menu {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0.15rem;
    align-items: stretch;
  }

  body.tbt-page-mobile-header-nav--hide.tbt-context-official:not(.page-staff-only) #masthead .main-navigation .nav-menu a {
    display: block;
    padding: 0.55rem 0.35rem;
    border-radius: 8px;
  }

  /* 通販トップ（スマホ）：ヘッダー拡張をEC向けに小型化 */
  body.tbt-shop-landing-page.tbt-context-official:not(.page-staff-only) .tbt-official-nav-toggle {
    top: var(--tbt-mobile-nav-btn-top);
    left: max(0.8rem, env(safe-area-inset-left));
    right: auto;
    width: 2.55rem;
    min-width: 2.55rem;
    height: 2.55rem;
    padding: 0;
    border-radius: 10px;
    background: linear-gradient(90deg, rgba(127, 38, 41, 0.97), rgba(154, 52, 56, 0.96));
    color: #fff;
  }

  body.tbt-shop-landing-page.tbt-context-official:not(.page-staff-only) #masthead.tbt-official-nav-open .main-navigation {
    top: calc(max(0.5rem, env(safe-area-inset-top)) + 6.2rem);
    max-height: min(60vh, 28rem);
  }

  /* 公式（トップ/こだわり以外）は通販側と同じヘッダー追従ロジックへ統一 */
  body.tbt-context-official:not(.page-staff-only):not(.home):not(.front-page):not(.tbt-page-kodawari) #masthead,
  body.tbt-context-official:not(.page-staff-only):not(.home):not(.front-page):not(.tbt-page-kodawari) .site-header {
    position: fixed !important;
    top: 0 !important;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 120 !important;
  }

  body.tbt-context-official:not(.page-staff-only):not(.home):not(.front-page):not(.tbt-page-kodawari) .site-inner {
    padding-top: calc(0.88rem + 58px) !important;
  }

  body.tbt-context-official:not(.page-staff-only):not(.home):not(.front-page):not(.tbt-page-kodawari) .tbt-official-nav-toggle {
    top: calc(var(--tbt-shop-header-bottom, 58px) + 0.35rem);
    left: max(0.55rem, env(safe-area-inset-left));
    right: auto;
  }

  body.tbt-context-official:not(.page-staff-only):not(.home):not(.front-page):not(.tbt-page-kodawari) #masthead.tbt-official-nav-open .main-navigation {
    top: calc(max(0.5rem, env(safe-area-inset-top)) + 5.55rem);
  }

  /* トップ/こだわり：初期非表示ハンバーガーをスライド + フェードで表示 */
  body.tbt-context-official:is(.home, .front-page, .tbt-page-kodawari):not(.page-staff-only) .tbt-official-nav-toggle {
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.22s ease, visibility 0.22s ease, transform 0.22s ease;
  }

  body.tbt-context-official:is(.home, .front-page, .tbt-page-kodawari).tbt-show-floating-shortcuts:not(.page-staff-only) .tbt-official-nav-toggle,
  body.tbt-context-official:is(.home, .front-page, .tbt-page-kodawari):not(.page-staff-only) #masthead.tbt-official-nav-open .tbt-official-nav-toggle {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

@media (min-width: 782px) {
  body.tbt-context-official .tbt-official-nav-toggle {
    display: none !important;
  }

  body.tbt-context-official #masthead .main-navigation {
    display: block !important;
  }

  body.tbt-context-official .site-header-inner {
    flex-wrap: nowrap;
  }
}

/* ── トップ：CTA 追記（layout.css の .tbt-front-cta-buttons と併用。781px 以下は文字詰め） ── */
body.home.tbt-context-official .tbt-front-content .tbt-front-btn-tsuhan.wp-block-button,
body.home.tbt-context-official .tbt-front-content .tbt-front-btn-contact.wp-block-button,
body.home.tbt-context-official .tbt-front-content .tbt-front-cta-buttons .wp-block-button {
  width: auto !important;
  max-width: 100%;
  flex-shrink: 0;
}

body.home.tbt-context-official .tbt-front-content .tbt-front-btn-tsuhan[class*='wp-block-button__width-'],
body.home.tbt-context-official .tbt-front-content .tbt-front-btn-contact[class*='wp-block-button__width-'],
body.home.tbt-context-official .tbt-front-content .tbt-front-cta-buttons .wp-block-button[class*='wp-block-button__width-'] {
  width: auto !important;
}

body.home.tbt-context-official .tbt-front-content .tbt-front-btn-tsuhan .wp-block-button__link,
body.home.tbt-context-official .tbt-front-content .tbt-front-btn-contact .wp-block-button__link {
  writing-mode: horizontal-tb !important;
  -webkit-writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
  white-space: nowrap !important;
  word-break: keep-all !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  text-align: center !important;
  width: auto !important;
  max-width: min(100%, 42rem);
  min-width: 0;
  min-height: 3rem !important;
  height: auto !important;
  line-height: 1.3 !important;
  padding: 0.82rem 1.35rem !important;
  border-radius: 999px !important;
  box-sizing: border-box;
  letter-spacing: 0.03em;
}

/* 1行2ボタン行：layout.css の width:100%（flex 子の均等幅）を維持しつつ横書きのみ上書き */
body.home.tbt-context-official .tbt-front-content .tbt-front-cta-buttons .wp-block-button__link {
  writing-mode: horizontal-tb !important;
  -webkit-writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
  white-space: nowrap !important;
  word-break: keep-all !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  text-align: center !important;
  min-width: 0;
  min-height: 3rem !important;
  height: auto !important;
  line-height: 1.3 !important;
  padding: 0.82rem 1.25rem !important;
  border-radius: 999px !important;
  box-sizing: border-box;
  letter-spacing: 0.03em;
}

body.home.tbt-context-official .tbt-front-content .tbt-front-btn-tsuhan .wp-block-button__link strong,
body.home.tbt-context-official .tbt-front-content .tbt-front-btn-contact .wp-block-button__link strong,
body.home.tbt-context-official .tbt-front-content .tbt-front-cta-buttons .wp-block-button__link strong {
  font-weight: inherit;
  white-space: nowrap !important;
}

/* ── トップ本文：浮遊カード・カラムを広く（牛・肉セクションの細長さ緩和） ── */
@media (max-width: 781px) {
  /*
   * トップだけ左右ガターを狭くし、alignfull のネガティブマージンと数値を一致させる
   *（site-inner の 1rem と alignfull の打ち消しがズレると余白が残る）
   */
  body.home.tbt-context-official {
    --tbt-front-mobile-gutter: 0.4rem;
  }

  /* CTA 行が親より広がるため横クリップを避ける */
  body.home.tbt-context-official .tbt-front-content {
    overflow-x: visible;
  }

  /* 通販＋お問い合わせ：横幅を親の約1.8倍まで拡大（はみ出し分は左右センタリング） */
  body.home.tbt-context-official .tbt-front-content .tbt-front-cta-buttons {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch;
    justify-content: center;
    gap: 0.65rem 1rem;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    width: min(96vw, calc(100% * 1.8));
    max-width: none;
    box-sizing: border-box;
  }

  body.home.tbt-context-official .tbt-front-content .tbt-front-cta-buttons.is-layout-flex.is-vertical,
  body.home.tbt-context-official .tbt-front-content .tbt-front-cta-buttons.is-layout-vertical,
  body.home.tbt-context-official .tbt-front-content .tbt-front-cta-buttons.is-vertical {
    flex-direction: row !important;
  }

  body.home.tbt-context-official .tbt-front-content .tbt-front-cta-buttons .wp-block-button {
    flex: 1 1 0;
    min-width: 0;
    width: auto !important;
    max-width: none !important;
  }

  body.home.tbt-context-official .tbt-front-content .tbt-front-cta-buttons .wp-block-button[class*='wp-block-button__width-'] {
    width: auto !important;
    flex: 1 1 0;
  }

  body.home.tbt-context-official .tbt-front-content .tbt-front-cta-buttons .wp-block-button__link {
    width: 100% !important;
    max-width: 100%;
    min-height: 3.1rem !important;
    height: auto !important;
    box-sizing: border-box;
    padding: 0.85rem 1.15rem !important;
    line-height: 1.35 !important;
    border-radius: 999px !important;
    text-align: center !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    writing-mode: horizontal-tb !important;
    -webkit-writing-mode: horizontal-tb !important;
    white-space: nowrap !important;
    word-break: keep-all !important;
  }

  body.home.tbt-context-official .site-inner {
    padding-left: max(var(--tbt-front-mobile-gutter, 0.4rem), env(safe-area-inset-left, 0px));
    padding-right: max(var(--tbt-front-mobile-gutter, 0.4rem), env(safe-area-inset-right, 0px));
    overflow-x: visible;
  }

  body.home.tbt-context-official .tbt-front-content > .alignfull,
  body.home.tbt-context-official .tbt-front-content .wp-block-group.alignfull,
  body.home.tbt-context-official .tbt-front-content .wp-block-cover.alignfull,
  body.home.tbt-context-official .tbt-front-content .wp-block-image.alignfull {
    width: calc(100% + 2 * var(--tbt-front-mobile-gutter, 0.4rem)) !important;
    max-width: none !important;
    margin-left: calc(-1 * var(--tbt-front-mobile-gutter, 0.4rem)) !important;
    margin-right: calc(-1 * var(--tbt-front-mobile-gutter, 0.4rem)) !important;
  }

  body.home.tbt-context-official .tbt-front-content .tcf-floating-card,
  body.home.tbt-context-official .tbt-front-content .is-style-tcf-floating-card.wp-block-group {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box;
  }

  /* 全幅セクション内の「幅広」グループもモバイルでは親いっぱいに */
  body.home.tbt-context-official .tbt-front-content .alignfull .wp-block-group.alignwide {
    max-width: 100% !important;
    width: 100% !important;
  }

  body.home.tbt-context-official .tbt-front-content .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
    max-width: 100% !important;
  }

  /* ネストしたグループ・メディアとテキストもトップ内では横幅いっぱいに寄せる */
  body.home.tbt-context-official .tbt-front-content .wp-block-group:not(.alignfull):not(.alignwide),
  body.home.tbt-context-official .tbt-front-content .wp-block-media-text {
    max-width: 100% !important;
  }

  body.home.tbt-context-official .tbt-front-content .wp-block-media-text:not(.alignfull) {
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  body.home.tbt-context-official .tbt-front-content .wp-block-columns {
    flex-direction: column !important;
    gap: 1rem !important;
  }

  body.home.tbt-context-official .tbt-front-content .wp-block-column {
    flex-basis: 100% !important;
    max-width: 100% !important;
  }

  body.home.tbt-context-official .tcf-fixed-bg-section {
    padding-left: max(var(--tbt-front-mobile-gutter, 0.4rem), env(safe-area-inset-left, 0px));
    padding-right: max(var(--tbt-front-mobile-gutter, 0.4rem), env(safe-area-inset-right, 0px));
  }

  /* 狭い画面でもタップしやすい大きさ（幅は flex で均等に広げる） */
  body.home.tbt-context-official .tbt-front-content .tbt-front-btn-tsuhan .wp-block-button__link,
  body.home.tbt-context-official .tbt-front-content .tbt-front-cta-buttons .wp-block-button:first-child .wp-block-button__link {
    font-size: clamp(0.88rem, 3.8vw, 1.2rem) !important;
    max-width: none;
    padding-left: 1.1rem !important;
    padding-right: 1.1rem !important;
    min-height: 3.1rem !important;
  }

  body.home.tbt-context-official .tbt-front-content .tbt-front-btn-contact .wp-block-button__link,
  body.home.tbt-context-official .tbt-front-content .tbt-front-cta-buttons .wp-block-button:last-child .wp-block-button__link {
    font-size: clamp(0.92rem, 4vw, 1.25rem) !important;
    max-width: none;
    min-height: 3.1rem !important;
  }

  /* 店舗案内ボタンは個別に小さめへ（他2ボタンより大きくなりすぎないよう固定） */
  body.home.tbt-context-official .tbt-front-content .tbt-front-btn-store-info .wp-block-button__link,
  body.home.tbt-context-official .tbt-front-content .tbt-front-cta-buttons .wp-block-button:nth-child(2) .wp-block-button__link {
    font-size: clamp(0.9rem, 3.9vw, 1.14rem) !important;
    min-height: 2.9rem !important;
    padding-top: 0.72rem !important;
    padding-bottom: 0.72rem !important;
  }

  /* トップ本文の縮小を最優先で反映（他ルールに負けないよう official 側で明示） */
  body:is(.home, .front-page).tbt-context-official .tbt-front-content .is-style-takahashi-menu-typography :where(p, li):not(.has-x-large-font-size):not(.has-xx-large-font-size) {
    font-size: 0.9rem !important;
    line-height: 1.6 !important;
  }

  body:is(.home, .front-page).tbt-context-official .tbt-front-content .tcf-catalog-canvas :where(p, li):not(.has-x-large-font-size):not(.has-xx-large-font-size) {
    font-size: 0.9rem !important;
    line-height: 1.6 !important;
  }

  /* セクション本文は「半分くらい」を優先して広めに適用 */
  body:is(.home, .front-page).tbt-context-official .tbt-front-content .tcf-fixed-bg-section :where(p, li):not(.wp-block-button__link):not(.has-x-large-font-size):not(.has-xx-large-font-size) {
    font-size: 0.9rem !important;
    line-height: 1.62 !important;
  }

  body:is(.home, .front-page).tbt-context-official .tbt-front-content .wp-block-group :where(p, li):not(.wp-block-button__link):not(.tcf-site-news__title):not(.tcf-site-news__excerpt):not(.tcf-site-news__body):not(.has-x-large-font-size):not(.has-xx-large-font-size) {
    font-size: 0.9rem !important;
    line-height: 1.62 !important;
  }

  /* 赤見出し（xx-large）は中間値1.4remで固定 */
  body:is(.home, .front-page).tbt-context-official .tbt-front-content
    p.is-style-default.has-enzhi-color.has-sawarabi-mincho-font-family.has-xx-large-font-size {
    font-size: 1.4rem !important;
    line-height: 1.4 !important;
  }

}

/* 公式：DPS モバイル固定バー（店頭／配送）を出さない（フッター・ジャンプUIと重なるため） */
body.tbt-context-official:not(.page-staff-only) .dps-mobile-bar {
  display: none !important;
}

/* ── フッター（公式）：モバイルは縦積み（左情報 → カレンダー → メニュー） ── */
@media (max-width: 781px) {
  body.tbt-context-official:not(.page-staff-only) .footer-widgets {
    padding: 0.65rem 0.85rem 0.5rem;
  }

  body.tbt-context-official:not(.page-staff-only) .footer-widgets-inner {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.85rem;
    align-items: stretch;
  }

  body.tbt-context-official:not(.page-staff-only) .footer-widget-col {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }

  /* footer.php のサイドバー id に対応（メニュー＝footer-2 を最下段） */
  body.tbt-context-official:not(.page-staff-only) .footer-widget-col--footer-1 {
    grid-row: 1;
  }

  body.tbt-context-official:not(.page-staff-only) .footer-widget-col--footer-3 {
    grid-row: 2;
  }

  body.tbt-context-official:not(.page-staff-only) .footer-widget-col--footer-2 {
    grid-row: 3;
  }

  body.tbt-context-official:not(.page-staff-only) .footer-widget-col,
  body.tbt-context-official:not(.page-staff-only) .footer-widget-col .widget {
    font-size: 0.8rem;
    line-height: 1.45;
  }

  body.tbt-context-official:not(.page-staff-only) .footer-widget-col .widget-title {
    font-size: 0.85rem;
    margin-bottom: 0.32rem;
  }

  body.tbt-context-official:not(.page-staff-only) #colophon.site-footer {
    padding: 0.55rem 0.85rem 0.85rem !important;
  }

  body.tbt-context-official:not(.page-staff-only) .footer-copy {
    font-size: 0.75rem;
  }

  /* フッター内ミニカレンダー：2ヶ月同時表示（タブ非表示・スライド解除） */
  body.tbt-context-official:not(.page-staff-only) #colophon .tbt-mini-calendar-wrap {
    border-radius: 12px;
    width: 100%;
    max-width: min(22.5rem, 100%);
    margin-left: auto;
    margin-right: auto;
  }

  body.tbt-context-official:not(.page-staff-only) #colophon .tbt-mini-calendar-wrap--has-slider .tbt-mini-calendar-nav {
    display: none !important;
  }

  body.tbt-context-official:not(.page-staff-only) #colophon .tbt-mini-calendar-wrap--has-slider .tbt-mini-calendar-viewport {
    overflow: visible;
  }

  body.tbt-context-official:not(.page-staff-only) #colophon .tbt-mini-calendar-wrap--has-slider .tbt-mini-calendar-track {
    width: auto !important;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 0.15rem 0.28rem;
    transform: none !important;
    transition: none;
  }

  body.tbt-context-official:not(.page-staff-only)
    #colophon
    .tbt-mini-calendar-wrap--has-slider.tbt-mini-calendar-wrap--slide-next
    .tbt-mini-calendar-track {
    transform: none !important;
  }

  body.tbt-context-official:not(.page-staff-only)
    #colophon
    .tbt-mini-calendar-wrap--has-slider
    .tbt-mini-calendar-panel:not(.tbt-mini-calendar-panel--desktop-only) {
    flex: 1 1 0 !important;
    max-width: none !important;
    padding: 0.4rem 0.28rem 0.32rem;
    min-width: 0;
    display: flex;
    justify-content: stretch;
    align-items: stretch;
  }

  body.tbt-context-official:not(.page-staff-only) #colophon .tbt-mini-calendar-panel--desktop-only {
    display: none !important;
  }

  body.tbt-context-official:not(.page-staff-only) #colophon .tbt-mini-calendar-meta {
    padding: 0.42rem 0.5rem 0.32rem;
  }

  body.tbt-context-official:not(.page-staff-only) #colophon .tbt-mini-calendar-hours {
    font-size: 0.68rem;
    gap: 0.25rem 0.45rem;
  }

  body.tbt-context-official:not(.page-staff-only) #colophon .tbt-mini-calendar-hours-label {
    font-size: 0.62rem;
  }

  body.tbt-context-official:not(.page-staff-only) #colophon .tbt-mini-calendar-hours-value {
    font-size: 0.78rem;
  }

  body.tbt-context-official:not(.page-staff-only) #colophon .tbt-mini-calendar-footer-meta {
    padding: 0.24rem 0.3rem 0.3rem;
  }

  body.tbt-context-official:not(.page-staff-only) #colophon .tbt-mini-calendar-legend,
  body.tbt-context-official:not(.page-staff-only) #colophon .tbt-mini-calendar-wrap p.tbt-mini-calendar-legend {
    font-size: 0.65rem !important;
    line-height: 1.4;
  }

  /* 枠内いっぱいにグリッドを広げ、固定の極小セルをやめる */
  body.tbt-context-official:not(.page-staff-only) #colophon .tbt-mini-calendar-panel {
    display: flex;
    justify-content: stretch;
    align-items: stretch;
    padding: 0.45rem 0.4rem 0.38rem;
    box-sizing: border-box;
  }

  body.tbt-context-official:not(.page-staff-only) #colophon .tbt-mini-calendar {
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    font-size: clamp(0.72rem, 2.4vw, 0.88rem);
  }

  body.tbt-context-official:not(.page-staff-only) #colophon .tbt-mini-calendar-head {
    font-size: clamp(0.78rem, 2.6vw, 0.92rem);
    margin: 0 0 0.35rem;
    padding-bottom: 0.28rem;
  }

  body.tbt-context-official:not(.page-staff-only) #colophon .tbt-mini-calendar-dow {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: clamp(0.1rem, 1.35vw, 0.32rem);
    margin-bottom: 0.3rem;
    font-size: clamp(0.58rem, 2vw, 0.72rem);
    width: 100%;
    justify-content: stretch;
  }

  body.tbt-context-official:not(.page-staff-only) #colophon .tbt-mini-calendar-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: clamp(0.1rem, 1.35vw, 0.32rem);
    width: 100%;
    justify-content: stretch;
  }

  body.tbt-context-official:not(.page-staff-only) #colophon .tbt-mini-calendar-cell {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: auto;
    min-width: 0;
    min-height: 0;
    aspect-ratio: 1;
    border-radius: 0;
    font-size: clamp(0.64rem, 2.65vw, 0.86rem);
  }

  body.tbt-context-official:not(.page-staff-only) #colophon .tbt-mini-calendar-cell--open {
    isolation: isolate;
    box-shadow: none;
    background-color: transparent !important;
  }

  /* セル全体ではなく内側の円だけ装飾（可変グリッドでも数字と丸の比率を抑える） */
  body.tbt-context-official:not(.page-staff-only) #colophon .tbt-mini-calendar-cell--open::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(1.38rem, 66%);
    height: min(1.38rem, 66%);
    box-sizing: border-box;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1.5px var(--tbt-enzhi, #7f2629);
    background-color: rgba(127, 38, 41, 0.08);
    z-index: 0;
    pointer-events: none;
  }

  body.tbt-context-official:not(.page-staff-only) #colophon .tbt-mini-calendar-cell--today.tbt-mini-calendar-cell--open {
    box-shadow: none !important;
    background-color: transparent !important;
  }

  body.tbt-context-official:not(.page-staff-only) #colophon .tbt-mini-calendar-cell--today.tbt-mini-calendar-cell--open::before {
    box-shadow: inset 0 0 0 2px var(--tbt-enzhi, #7f2629) !important;
    background-color: rgba(127, 38, 41, 0.13) !important;
  }

  body.tbt-context-official:not(.page-staff-only) #colophon .tbt-mini-calendar-cell--today.tbt-mini-calendar-cell--closed,
  body.tbt-context-official:not(.page-staff-only) #colophon .tbt-mini-calendar-cell--today.tbt-mini-calendar-cell--open {
    font-size: clamp(0.68rem, 2.85vw, 0.9rem);
  }
}

/* ── スマホ・ページ内ジャンプ（開閉ドック） ── */
.tbt-mobile-jump-dock {
  display: none;
}

@media (max-width: 781px) {
  body.tbt-has-mobile-jump-dock .tbt-mobile-jump-dock,
  body.tbt-page-section-jump .tbt-mobile-jump-dock,
  body.home.tbt-context-official .tbt-mobile-jump-dock {
    display: block;
  }

  /* ジャンプ割当時は従来3アイコンを出さない */
  body.tbt-has-mobile-jump-dock .tbt-mobile-footer-nav,
  body.tbt-page-section-jump .tbt-mobile-footer-nav,
  body.home.tbt-context-official .tbt-mobile-footer-nav {
    display: none !important;
  }

  body.tbt-has-mobile-jump-dock .site,
  body.tbt-page-section-jump .site,
  body.home.tbt-context-official .site {
    padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px));
  }

  .tbt-mobile-jump-dock__backdrop {
    position: fixed;
    inset: 0;
    z-index: 9996;
    background: rgba(24, 18, 16, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
  }

  .tbt-mobile-jump-dock__backdrop.is-visible {
    opacity: 1;
    visibility: visible;
  }

  .tbt-mobile-jump-dock__panel {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9997;
    max-height: min(52vh, 420px);
    overflow: auto;
    padding: 1rem 1.1rem calc(1rem + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(180deg, #fffdf9 0%, #faf6ef 100%);
    border-radius: 16px 16px 0 0;
    border: 1px solid rgba(184, 139, 70, 0.28);
    box-shadow: 0 -8px 28px rgba(24, 18, 16, 0.12);
    transform: translateY(102%);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .tbt-mobile-jump-dock__panel.is-open {
    transform: translateY(0);
  }

  .tbt-mobile-jump-dock__header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem 0.85rem;
    margin: 0 0 0.65rem;
  }

  .tbt-mobile-jump-dock__title {
    margin: 0;
    flex: 1;
    min-width: 0;
    font-family: var(--tbt-font-serif, serif);
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--tbt-kachiiro, #181b39);
    letter-spacing: 0.06em;
    line-height: 1.35;
  }

  .tbt-mobile-jump-dock__title::before {
    content: none !important;
  }

  .tbt-mobile-jump-dock__close {
    flex-shrink: 0;
    margin: 0;
    padding: 0.35rem 0.5rem;
    border: none;
    border-radius: 8px;
    background: transparent;
    font-family: var(--tbt-font-sans, sans-serif);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--tbt-enzhi, #7f2629);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    text-decoration: underline;
    text-underline-offset: 0.18em;
  }

  .tbt-mobile-jump-dock__close:focus-visible {
    color: var(--tbt-senju, #5c1a1d);
    outline: 2px solid rgba(127, 38, 41, 0.35);
    outline-offset: 2px;
  }

  @media (hover: hover) and (pointer: fine) {
    .tbt-mobile-jump-dock__close:hover {
      color: var(--tbt-senju, #5c1a1d);
      outline: 2px solid rgba(127, 38, 41, 0.35);
      outline-offset: 2px;
    }
  }

  .tbt-mobile-jump-dock__menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
  }

  .tbt-mobile-jump-dock__menu a {
    display: block;
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--tbt-shouzumi, #3f3f3f) !important;
    text-decoration: none !important;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(184, 139, 70, 0.2);
  }

  .tbt-mobile-jump-dock__menu a:focus-visible {
    background: rgba(184, 139, 70, 0.12);
    color: var(--tbt-enzhi, #7f2629) !important;
    outline: none;
  }

  @media (hover: hover) and (pointer: fine) {
    .tbt-mobile-jump-dock__menu a:hover {
      background: rgba(184, 139, 70, 0.12);
      color: var(--tbt-enzhi, #7f2629) !important;
      outline: none;
    }
  }

  .tbt-mobile-jump-dock__toggle {
    position: fixed;
    left: max(0.45rem, env(safe-area-inset-left, 0px));
    right: auto;
    bottom: calc(4.25rem + env(safe-area-inset-bottom, 0px));
    transform: none;
    z-index: 9998;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 3.45rem;
    min-width: 3.45rem;
    max-width: 3.45rem;
    min-height: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: 1px solid rgba(127, 38, 41, 0.88);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(127, 38, 41, 0.98), rgba(154, 52, 56, 0.96));
    box-shadow: 0 4px 18px rgba(24, 18, 16, 0.1);
    cursor: pointer;
    color: #fff;
    -webkit-tap-highlight-color: transparent;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
  }

  body.tbt-show-floating-shortcuts .tbt-mobile-jump-dock__toggle {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  /* ページ上部へ戻る（↑）と差別化：縦並びの三点（ケバブ／メニュー系） */
  .tbt-mobile-jump-dock__toggle::before {
    content: "";
    display: block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 7px 0 #fff, 0 14px 0 #fff;
    transform: translateY(-7px);
    font-size: 0;
    line-height: 0;
    font-weight: 400;
  }

  .tbt-mobile-jump-dock__toggle-icon,
  .tbt-mobile-jump-dock__toggle-label {
    display: none !important;
  }

  .tbt-mobile-jump-dock__toggle-label {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.2;
  }

  /* 開いている間は一覧と重なる「ページ内へ」を非表示（タブフォーカスも除外） */
  .tbt-mobile-jump-dock.is-open .tbt-mobile-jump-dock__toggle {
    display: none !important;
  }

  body.tbt-has-mobile-jump-dock .tbt-scroll-to-top.is-visible,
  body.tbt-page-section-jump .tbt-scroll-to-top.is-visible,
  body.home.tbt-context-official .tbt-scroll-to-top.is-visible {
    bottom: calc(4.25rem + env(safe-area-inset-bottom, 0px));
  }
}
