/**
 * TASFUL — スマホアプリ共通（下部タブ・ホーム・マイページ）
 * PC レイアウトには影響しない（max-width: 960px）
 */

.tasu-app-tabbar,
.talk-mobile-tabbar {
  display: none;
}

@media (max-width: 960px) {
  :root {
    --tasu-app-tabbar-h: 60px;
    --tasu-app-tabbar-total: calc(var(--tasu-app-tabbar-h) + env(safe-area-inset-bottom, 0px));
    --tasu-app-tabbar-pad: calc(var(--tasu-app-tabbar-h) + 12px + env(safe-area-inset-bottom, 0px));
    --tasu-app-safe-top: env(safe-area-inset-top, 0px);
  }

  body.tasu-app-mobile-page {
    overflow-x: hidden;
    padding-top: 0 !important;
    padding-bottom: var(--tasu-app-tabbar-pad) !important;
    box-sizing: border-box;
  }

  /* 求人詳細 — 固定CTA + タブバー（他ページの padding は上記のまま） */
  body[data-detail-type="job"].tasu-app-mobile-page.tasu-mdetail-page:not(.job-fixed-cta-visible) {
    padding-bottom: var(--tasu-app-tabbar-pad) !important;
  }

  body[data-detail-type="job"].tasu-app-mobile-page.tasu-mdetail-page.job-fixed-cta-visible {
    padding-bottom: var(--job-mobile-stack-pad, calc(132px + env(safe-area-inset-bottom, 0px))) !important;
  }

  body.tasu-app-mobile-page[data-page="demo-progress"] .dash-content,
  body.tasu-app-mobile-page[data-page="demo-complete"] .dash-content,
  body.tasu-app-mobile-page[data-page="demo-paid"] .dash-content,
  body.tasu-app-mobile-page[data-page="demo-unpaid"] .dash-content {
    padding-bottom: var(--tasu-app-tabbar-pad);
    box-sizing: border-box;
  }

  body.tasu-app-mobile-page[data-page="anpi-dashboard"] {
    padding-bottom: var(--tasu-app-tabbar-pad) !important;
  }

  body.tasu-app-mobile-page.builder-body {
    padding-bottom: var(--tasu-app-tabbar-pad) !important;
  }

  body.tasu-app-mobile-page.builder-body .builder-header {
    display: none !important;
  }

  body.tasu-app-mobile-page.builder-body .builder-main {
    padding-bottom: var(--tasu-app-tabbar-pad);
  }

  body.tasu-app-mobile-page .tasu-mobile-shell-head {
    display: flex;
    position: sticky;
    top: 0;
    z-index: 35;
  }

  body.tasu-app-mobile-page .tasu-banner {
    display: none !important;
  }

  body.tasu-app-mobile-page.dash-body .dash-header,
  body.tasu-app-mobile-page.dash-body .dash-sidebar,
  body.tasu-app-mobile-page.dash-body .dash-sidebar__overlay {
    display: none !important;
  }

  body.tasu-app-mobile-page.dash-body .dash-main {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  body.tasu-app-mobile-page.dash-body[data-page="anpi-dashboard"] .dash-content {
    min-height: 0 !important;
    height: auto !important;
  }

  body.tasu-app-mobile-page.dash-body .dash-content {
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    min-height: calc(100dvh - var(--tasu-app-tabbar-total));
  }

  body.tasu-app-mobile-page[data-detail-page] .page-subheader,
  body.tasu-app-mobile-page .post-header__back {
    display: none !important;
  }

  body.tasu-app-mobile-page .demo-deals-page-head__title {
    margin: 0;
  }

  body.tasu-app-mobile-page .demo-deals-page-head {
    padding-top: 0.25rem;
  }

  body.tasu-app-mobile-page:has(.tasu-mobile-shell-head) .demo-deals-page-head {
    display: none;
  }

  body.tasu-app-mobile-page .section-nav {
    position: sticky;
    top: calc(52px + var(--tasu-app-safe-top));
    z-index: 4;
  }

  body.tasu-app-mobile-page .shop-checkout,
  body.tasu-app-mobile-page .post-page {
    padding-bottom: calc(1rem + var(--tasu-app-tabbar-total));
  }

  /* TALK/通知導線 — プラット画面（550円支払い・チャット等） */
  body.tasu-app-mobile-page[data-tasu-platform-shell="1"][data-page="platform_chat_fee_pay"] {
    padding-bottom: var(--tasu-app-tabbar-pad) !important;
  }

  body.tasu-app-mobile-page[data-tasu-platform-shell="1"][data-page="platform_chat_fee_pay"] .shop-checkout.platform-fee-pay {
    padding-bottom: calc(0.55rem + var(--tasu-app-tabbar-total)) !important;
  }

  body.tasu-app-mobile-page[data-tasu-platform-shell="1"][data-page="platform_chat_fee_pay"] .platform-fee-pay__actions {
    margin-bottom: 0.1rem;
    padding-bottom: 0.1rem;
  }

  body.tasu-app-mobile-page[data-page="chat"] {
    --tasu-chat-composer-tab-gap: 10px;
    overflow: hidden;
    height: 100dvh;
    max-height: 100dvh;
    padding-bottom: 0 !important;
    display: flex;
    flex-direction: column;
  }

  html:has(body.tasu-app-mobile-page[data-page="chat"]) {
    overflow: hidden;
    height: 100%;
  }

  body.tasu-app-mobile-page[data-page="chat"] .tasu-banner {
    flex-shrink: 0;
  }

  body.tasu-app-mobile-page[data-page="chat"] .page.chat-detail-page {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding-top: 0 !important;
    padding-bottom: var(--tasu-app-tabbar-total) !important;
    box-sizing: border-box;
  }

  body.tasu-app-mobile-page[data-page="chat"] .chat-mobile-head {
    flex-shrink: 0;
    position: relative;
    z-index: 30;
  }

  body.tasu-app-mobile-page[data-page="chat"] .chat-shell {
    flex: 1 1 auto;
    min-height: 0 !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding-bottom: 0;
    margin-bottom: 0;
  }

  body.tasu-app-mobile-page[data-page="chat"] .chat-detail {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0 !important;
    max-height: none !important;
    height: auto !important;
    overflow: hidden;
    padding-bottom: 0 !important;
    box-sizing: border-box;
  }

  body.tasu-app-mobile-page[data-page="chat"] .chat-peer-header,
  body.tasu-app-mobile-page[data-page="chat"] .chat-card__head--context,
  body.tasu-app-mobile-page[data-page="chat"] .chat-note,
  body.tasu-app-mobile-page[data-page="chat"] .chat-room-status-row {
    flex-shrink: 0;
    min-width: 0;
  }

  body.tasu-app-mobile-page[data-page="chat"] .chat-detail__messages {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding-bottom: 0.75rem;
  }

  body.tasu-app-mobile-page[data-page="chat"] .chat-detail--job-completed .chat-detail__messages {
    padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  }

  body.tasu-app-mobile-page[data-page="chat"] .chat-composer > .chat-job-end-bar {
    flex-shrink: 0;
    margin: 0 0 0.4rem;
  }

  body.tasu-app-mobile-page[data-page="chat"] .chat-job-end-bar {
    flex-shrink: 0;
    margin: 0 0.65rem 0.4rem;
  }

  body.tasu-app-mobile-page[data-page="chat"] .chat-composer {
    position: static !important;
    flex-shrink: 0;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    z-index: 5;
    margin: 0 !important;
    max-width: none !important;
    width: 100% !important;
    box-sizing: border-box;
    padding: 0.5rem 0.75rem calc(0.55rem + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid rgba(232, 229, 222, 0.42);
    border-left: none;
    border-right: none;
    border-radius: 0;
    background: #fff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 0 -2px 8px rgba(15, 23, 42, 0.035);
    pointer-events: auto;
    transform: none;
  }

  body.tasu-app-mobile-page[data-page="chat"] .chat-composer[hidden] {
    display: none !important;
  }

  body.tasu-app-mobile-page[data-page="chat"] .chat-composer__toolbar,
  body.tasu-app-mobile-page[data-page="chat"] .chat-composer__slot--input {
    pointer-events: auto;
  }

  body.tasu-app-mobile-page[data-page="chat"] .chat-composer__toolbar {
    gap: 0.4rem;
  }

  body.tasu-app-mobile-page[data-page="chat"] .chat-post-complete-bar {
    position: static !important;
    flex-shrink: 0;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    z-index: 5;
    margin: 0 !important;
    max-width: none !important;
    width: 100% !important;
    box-sizing: border-box;
    padding: 0.65rem 0.75rem calc(0.65rem + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid rgba(232, 229, 222, 0.42);
    background: #fff;
    box-shadow: 0 -2px 8px rgba(15, 23, 42, 0.035);
  }

  body.tasu-app-mobile-page[data-page="chat"] .chat-post-complete-bar[hidden] {
    display: none !important;
  }

  body.tasu-app-mobile-page[data-page="chat"] .chat-report-modal[hidden] {
    display: none !important;
  }

  body.tasu-app-mobile-page[data-page="chat"] .chat-input {
    min-height: 44px;
    max-height: 96px;
    padding: 0.5rem 0.65rem;
    font-size: 16px;
    line-height: 1.35;
    resize: none;
    touch-action: manipulation;
    -webkit-user-select: text;
    user-select: text;
  }

  body.tasu-app-mobile-page[data-page="chat"] .chat-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }

  body.tasu-app-mobile-page[data-page="chat"] .chat-send {
    min-width: 78px;
    height: 40px;
    padding: 0 0.75rem;
    font-size: 0.8125rem;
  }

  body.tasu-app-mobile-page[data-page="chat"] .tasu-app-tabbar {
    border-top: 1px solid rgba(226, 232, 240, 0.5);
    box-shadow: 0 -1px 6px rgba(15, 23, 42, 0.03);
  }

  body.tasu-app-mobile-page[data-page="chat"] .chat-report-toast {
    bottom: calc(var(--tasu-app-tabbar-total) + 4.75rem);
  }

  body.tasu-app-mobile-page .dash-sidebar,
  body.tasu-app-mobile-page .dash-sidebar__overlay {
    display: none !important;
  }

  body.tasu-app-mobile-page .dash-main {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  body.tasu-app-mobile-page[data-page="dashboard"] .dash-header,
  body.tasu-app-mobile-page[data-page="profile-settings"] .dash-header {
    display: none !important;
  }

  body.tasu-app-mobile-page[data-page="dashboard"] .dash-content,
  body.tasu-app-mobile-page[data-page="profile-settings"] .dash-content {
    padding: 0 !important;
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    min-height: calc(100dvh - var(--tasu-app-tabbar-total));
    padding-bottom: var(--tasu-app-tabbar-total) !important;
  }

  body.tasu-app-mobile-page[data-page="dashboard"] .dash-sp-nav,
  body.tasu-app-mobile-page[data-page="dashboard"] .dash-welcome,
  body.tasu-app-mobile-page[data-page="dashboard"] .dash-stats,
  body.tasu-app-mobile-page[data-page="dashboard"] .dash-grid,
  body.tasu-app-mobile-page[data-page="dashboard"] .dash-disclaimer {
    display: none !important;
  }

  body.tasu-app-mobile-page[data-page="dashboard"] .dash-connect-banner:not([hidden]) {
    display: block;
    margin: 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  body.tasu-app-mobile-page[data-page="profile-settings"] .tasu-pc-profile-form,
  body.tasu-app-mobile-page[data-page="profile-edit"] .tasu-pc-only-head,
  body.tasu-app-mobile-page[data-page="tasful-notification-settings"] .dash-header {
    display: none !important;
  }

  body.tasu-app-mobile-page[data-page="profile-settings"] .dash-card.dash-settings {
    border: none;
    border-radius: 0;
    box-shadow: none;
    margin: 0;
  }

  body.tasu-app-mobile-page[data-page="profile-edit"] .dash-header {
    display: none !important;
  }

  body.tasu-app-mobile-page[data-page="tasful-notification-settings"] .dash-content,
  body.tasu-app-mobile-page[data-page="profile-edit"] .dash-content {
    padding: 0 !important;
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    min-height: calc(100dvh - var(--tasu-app-tabbar-total));
    padding-bottom: var(--tasu-app-tabbar-total) !important;
    background: #f4f6f9;
  }

  .tasu-app-tabbar,
  .talk-mobile-tabbar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    align-items: stretch;
    justify-content: space-around;
    min-height: var(--tasu-app-tabbar-h);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    border-top: 1px solid #e2e8f0;
    background: #fff;
    box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.06);
    box-sizing: border-box;
  }

  .tasu-app-tabbar__item,
  .talk-mobile-tabbar__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    min-height: var(--tasu-app-tabbar-h);
    padding: 0.4rem 0.12rem 0.35rem;
    border: none;
    background: transparent;
    color: #64748b;
    font: inherit;
    font-size: 0.625rem;
    font-weight: 700;
    line-height: 1.15;
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
    overflow: visible;
  }

  .tasu-app-tabbar__label,
  .talk-mobile-tabbar__label {
    display: block;
    line-height: 1.15;
    white-space: nowrap;
    overflow: visible;
  }

  .tasu-app-tabbar__item.is-active,
  .talk-mobile-tabbar__item.is-active {
    color: #967622;
  }

  .tasu-app-tabbar__icon,
  .talk-mobile-tabbar__icon {
    font-size: 1.125rem;
    line-height: 1;
  }

  /* --- LINE風ホーム --- */
  .tasu-mobile-home {
    display: block;
    width: 100%;
    max-width: 100vw;
    min-height: calc(100dvh - var(--tasu-app-tabbar-total));
    background: #f4f6f9;
    overflow-x: hidden;
  }

  .tasu-mobile-home__top {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: calc(0.85rem + var(--tasu-app-safe-top)) 1rem 0.85rem;
    background: linear-gradient(180deg, #fffbeb 0%, #fff 72%);
    border-bottom: 1px solid #e8edf2;
  }

  .tasu-mobile-home__profile {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex: 1;
    min-width: 0;
    text-decoration: none;
    color: inherit;
  }

  .tasu-mobile-home__avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
  }

  .tasu-mobile-home__name {
    margin: 0;
    font-size: 1.0625rem;
    font-weight: 800;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .tasu-mobile-home__sub {
    margin: 0.15rem 0 0;
    font-size: 0.75rem;
    color: #64748b;
  }

  .tasu-mobile-home__actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
  }

  .tasu-mobile-home__action {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    color: #334155;
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .tasu-mobile-home__action-icon {
    font-size: 1.125rem;
    line-height: 1;
  }

  .tasu-mobile-home__action-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-size: 0.5625rem;
    font-weight: 800;
    line-height: 16px;
    text-align: center;
  }

  .tasu-mobile-home__section {
    padding: 0.65rem 1rem 0;
  }

  .tasu-mobile-home__section-title {
    margin: 0 0 0.45rem;
    font-size: 0.8125rem;
    font-weight: 800;
    color: #475569;
  }

  .tasu-mobile-home__shortcuts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
  }

  .tasu-mobile-home__shortcut {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    min-height: 72px;
    padding: 0.5rem 0.35rem;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e8edf2;
    text-decoration: none;
    color: #0f172a;
    font-size: 0.6875rem;
    font-weight: 800;
    text-align: center;
    line-height: 1.3;
  }

  .tasu-mobile-home__shortcut-icon {
    font-size: 1.25rem;
    line-height: 1;
  }

  /* --- クイックアクセス（2×2 + Bottom Sheet） --- */
  .tasu-mobile-quick {
    padding: 0.65rem 1rem 0;
  }

  .tasu-mobile-quick .tasu-mobile-home__section-title {
    margin-bottom: 0.5rem;
  }

  .tasu-mobile-quick__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .tasu-mobile-quick__card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    min-height: 88px;
    padding: 0.55rem 0.45rem 0.5rem;
    border-radius: 14px;
    border: 1px solid #e8edf2;
    background: #fff;
    color: #0f172a;
    font-family: inherit;
    text-align: center;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  .tasu-mobile-quick__card:active {
    transform: scale(0.98);
  }

  .tasu-mobile-quick__card--explore {
    background: linear-gradient(180deg, #eff6ff 0%, #fff 100%);
    border-color: #bfdbfe;
  }

  .tasu-mobile-quick__card--publish {
    background: linear-gradient(180deg, #fffbeb 0%, #fff 100%);
    border-color: #fde68a;
  }

  .tasu-mobile-quick__card--comms {
    background: linear-gradient(180deg, #ecfdf5 0%, #fff 100%);
    border-color: #a7f3d0;
  }

  .tasu-mobile-quick__card--anpi {
    background: linear-gradient(180deg, #fef2f2 0%, #fff 100%);
    border-color: #fecaca;
  }

  .tasu-mobile-quick__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
    line-height: 1;
  }

  .tasu-mobile-quick__text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
    min-width: 0;
    width: 100%;
  }

  .tasu-mobile-quick__label {
    display: block;
    max-width: 100%;
    padding: 0 0.15rem;
    font-size: 0.8125rem;
    font-weight: 800;
    line-height: 1.25;
    color: #0f172a;
  }

  .tasu-mobile-quick__sub {
    display: block;
    max-width: 100%;
    padding: 0 0.15rem;
    font-size: 0.625rem;
    font-weight: 600;
    line-height: 1.25;
    color: #64748b;
  }

  .tasu-mobile-quick__badge {
    position: absolute;
    top: 6px;
    right: 6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-size: 0.625rem;
    font-weight: 800;
    line-height: 18px;
    text-align: center;
    pointer-events: none;
  }

  body.tasu-mobile-sheet-open {
    overflow: hidden;
  }

  .tasu-mobile-sheet {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    pointer-events: none;
  }

  .tasu-mobile-sheet[hidden] {
    display: none !important;
  }

  .tasu-mobile-sheet.is-open {
    pointer-events: auto;
  }

  .tasu-mobile-sheet__backdrop {
    position: absolute;
    inset: 0;
    border: none;
    margin: 0;
    padding: 0;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    transition: opacity 0.22s ease;
    cursor: pointer;
  }

  .tasu-mobile-sheet.is-open .tasu-mobile-sheet__backdrop {
    opacity: 1;
  }

  .tasu-mobile-sheet__panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-height: min(78dvh, 560px);
    border-radius: 18px 18px 0 0;
    background: #fff;
    box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.14);
    transform: translateY(100%);
    transition: transform 0.26s cubic-bezier(0.32, 0.72, 0, 1);
    display: flex;
    flex-direction: column;
    padding-bottom: calc(0.5rem + env(safe-area-inset-bottom, 0px));
  }

  .tasu-mobile-sheet.is-open .tasu-mobile-sheet__panel {
    transform: translateY(0);
  }

  .tasu-mobile-sheet__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem 0.75rem;
    border-bottom: 1px solid #eef2f6;
  }

  .tasu-mobile-sheet__head-text {
    flex: 1;
    min-width: 0;
  }

  .tasu-mobile-sheet__title {
    margin: 0;
    font-size: 1.0625rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
  }

  .tasu-mobile-sheet__desc {
    margin: 0.2rem 0 0;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    line-height: 1.35;
  }

  .tasu-mobile-sheet__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 10px;
    background: #f1f5f9;
    color: #475569;
    font-size: 1rem;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .tasu-mobile-sheet__body {
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0.65rem 1rem 0.35rem;
  }

  .tasu-mobile-sheet__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.45rem;
  }

  .tasu-mobile-sheet__card {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 60px;
    padding: 0.55rem 0.65rem;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #fff;
    text-decoration: none;
    color: inherit;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  }

  .tasu-mobile-sheet__card:active {
    background: #f8fafc;
    transform: scale(0.995);
  }

  .tasu-mobile-sheet__card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.06);
    font-size: 1.125rem;
    line-height: 1;
  }

  .tasu-mobile-sheet__card-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
  }

  .tasu-mobile-sheet__card-title {
    font-size: 0.875rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
  }

  .tasu-mobile-sheet__card-hint {
    font-size: 0.6875rem;
    font-weight: 600;
    color: #64748b;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .tasu-mobile-sheet__card-chevron {
    flex-shrink: 0;
    color: #cbd5e1;
    font-size: 1.125rem;
    line-height: 1;
    padding-left: 0.15rem;
  }

  .tasu-mobile-home__list {
    display: grid;
    gap: 0.35rem;
  }

  .tasu-mobile-home__row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0.75rem;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #eef2f6;
    text-decoration: none;
    color: inherit;
  }

  .tasu-mobile-home__row-thumb {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    background: #f1f5f9;
  }

  .tasu-mobile-home__row-main {
    flex: 1;
    min-width: 0;
  }

  .tasu-mobile-home__row-title {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 800;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .tasu-mobile-home__row-meta {
    margin: 0.12rem 0 0;
    font-size: 0.6875rem;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .tasu-mobile-home__row-chevron {
    color: #cbd5e1;
    font-size: 1.125rem;
    flex-shrink: 0;
  }

  .tasu-mobile-home__ads {
    margin: 0.75rem 1rem 1rem;
    padding: 1rem;
    border-radius: 12px;
    border: 1px dashed #cbd5e1;
    background: #fff;
    text-align: center;
    font-size: 0.75rem;
    color: #94a3b8;
  }

  .tasu-mobile-home__empty {
    margin: 0;
    padding: 0.75rem;
    font-size: 0.8125rem;
    color: #94a3b8;
    text-align: center;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eef2f6;
  }

  /* --- LINE風マイページ設定リスト --- */
  .tasu-mobile-settings {
    display: block;
    width: 100%;
    background: #f4f6f9;
    padding-top: calc(0.5rem + var(--tasu-app-safe-top));
  }

  .tasu-mobile-settings__hero {
    padding: 0.75rem 1rem 0.85rem;
    background: linear-gradient(180deg, #fffbeb 0%, #fff 80%);
    border-bottom: 1px solid #e8edf2;
  }

  .tasu-mobile-settings__title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 800;
    color: #0f172a;
  }

  .tasu-mobile-settings__sub {
    margin: 0.2rem 0 0;
    font-size: 0.75rem;
    color: #64748b;
  }

  .tasu-mobile-settings__group {
    margin: 0.65rem 0 0;
    background: #fff;
    border-top: 1px solid #e8edf2;
    border-bottom: 1px solid #e8edf2;
  }

  .tasu-mobile-settings__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
    padding: 0.85rem 1rem;
    border: none;
    border-bottom: 1px solid #f1f5f9;
    background: #fff;
    font: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #0f172a;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
  }

  .tasu-mobile-settings__item:last-child {
    border-bottom: none;
  }

  .tasu-mobile-settings__item:disabled,
  .tasu-mobile-settings__item--disabled {
    color: #94a3b8;
    cursor: default;
  }

  .tasu-mobile-settings__chevron {
    color: #cbd5e1;
    font-size: 1.125rem;
    flex-shrink: 0;
  }

  .tasu-mobile-settings__badge {
    font-size: 0.625rem;
    font-weight: 800;
    color: #94a3b8;
    margin-right: 0.25rem;
  }

  .tasu-mobile-settings__section-label {
    margin: 0.85rem 1rem 0.35rem;
    font-size: 0.6875rem;
    font-weight: 800;
    color: #94a3b8;
    letter-spacing: 0.04em;
  }

  .tasu-mobile-settings__group + .tasu-mobile-settings__section-label {
    margin-top: 1rem;
  }

  .tasu-mobile-page-head,
  .tasu-mobile-shell-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 48px;
    padding: calc(0.65rem + var(--tasu-app-safe-top)) 1rem 0.65rem;
    background: #fff;
    border-bottom: 1px solid #e8edf2;
    position: sticky;
    top: 0;
    z-index: 1100;
    box-sizing: border-box;
  }

  .tasu-mobile-shell-head:has(.tasu-mobile-page-head__slot--start) {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) 64px;
    align-items: center;
    column-gap: 0;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .tasu-mobile-page-head__slot {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    box-sizing: border-box;
  }

  .tasu-mobile-page-head__slot--start {
    grid-column: 1;
    justify-content: flex-start;
    width: 64px;
    min-width: 64px;
    max-width: 64px;
  }

  .tasu-mobile-page-head__slot--end {
    grid-column: 3;
    justify-content: flex-end;
    width: 64px;
    min-width: 64px;
    max-width: 64px;
  }

  .tasu-mobile-shell-head:has(.tasu-mobile-page-head__slot--start) .tasu-mobile-page-head__title {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    justify-self: stretch;
    flex: unset;
    min-width: 0;
    margin: 0;
    padding: 0;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .tasu-mobile-page-head__slot--start .tasu-mobile-page-head__back,
  .tasu-mobile-page-head__slot--start .app-detail-back,
  .tasu-mobile-page-head__slot--start [data-detail-back] {
    max-width: 64px;
    padding: 0 8px;
    font-size: 0.75rem;
  }

  .tasu-mobile-page-head__back,
  .app-detail-back,
  .deal-detail-back,
  [data-detail-back] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 56px;
    width: auto;
    max-width: none;
    height: 32px;
    padding: 0 10px;
    white-space: nowrap;
    flex-shrink: 0;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #475569;
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
  }

  .tasu-mobile-page-head:not(:has(.tasu-mobile-page-head__slot--end)) .tasu-mobile-page-head__title {
    flex: 1;
    text-align: center;
    padding-right: 64px;
  }

  .tasu-mobile-page-head__title {
    flex: 1;
    margin: 0;
    font-size: 1.0625rem;
    font-weight: 800;
    color: #0f172a;
    text-align: center;
    min-width: 0;
  }

  .tasu-mobile-page-lead {
    margin: 0;
    padding: 0.65rem 1rem;
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.5;
    background: #f4f6f9;
  }

  .tasu-notify-settings-card {
    margin: 0.5rem 0 1rem;
    background: #fff;
    border-top: 1px solid #e8edf2;
    border-bottom: 1px solid #e8edf2;
  }

  .tasu-notify-setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.95rem 1rem;
    border-bottom: 1px solid #f1f5f9;
  }

  .tasu-notify-setting-row:last-child {
    border-bottom: none;
  }

  .tasu-notify-setting-row__label {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #0f172a;
  }

  .tasu-notify-setting-toggle {
    position: relative;
    display: inline-flex;
    flex-shrink: 0;
  }

  .tasu-notify-setting-toggle input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
  }

  .tasu-notify-setting-toggle__ui {
    width: 48px;
    height: 28px;
    border-radius: 999px;
    background: #cbd5e1;
    transition: background 0.15s;
  }

  .tasu-notify-setting-toggle__ui::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    transition: transform 0.15s;
  }

  .tasu-notify-setting-toggle input:checked + .tasu-notify-setting-toggle__ui {
    background: #967622;
  }

  .tasu-notify-setting-toggle input:checked + .tasu-notify-setting-toggle__ui::after {
    transform: translateX(20px);
  }

  /* 友達追加モーダル（スマホホーム） */
  .tasu-friend-add-modal {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    align-items: flex-end;
    justify-content: center;
  }

  .tasu-friend-add-modal[hidden] {
    display: none !important;
  }

  .tasu-friend-add-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
  }

  .tasu-friend-add-modal__panel {
    position: relative;
    width: 100%;
    max-height: min(88dvh, 640px);
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px 16px 0 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    overflow: hidden;
  }

  .tasu-friend-add-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #f1f5f9;
  }

  .tasu-friend-add-modal__title {
    margin: 0;
    font-size: 1.0625rem;
    font-weight: 800;
  }

  .tasu-friend-add-modal__close {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    background: #f1f5f9;
    font-size: 1rem;
    cursor: pointer;
  }

  .tasu-friend-add-modal__body {
    overflow-y: auto;
    padding: 0.75rem 1rem;
  }

  .tasu-friend-add-modal__tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.35rem;
    margin-bottom: 0.75rem;
  }

  .tasu-friend-add-modal__tab {
    min-height: 40px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #64748b;
    cursor: not-allowed;
    opacity: 0.85;
  }

  .tasu-friend-add-modal__tab.is-active {
    border-color: #c4a24a;
    background: #fffbeb;
    color: #967622;
  }

  .tasu-friend-add-modal__list {
    list-style: none;
    margin: 0 0 0.75rem;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eef2f6;
  }

  .tasu-friend-add-modal__row {
    width: 100%;
    min-height: 48px;
    padding: 0.75rem 1rem;
    border: none;
    border-bottom: 1px solid #f1f5f9;
    background: #fff;
    font: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    text-align: left;
    color: #94a3b8;
    cursor: not-allowed;
  }

  .tasu-friend-add-modal__row:last-child {
    border-bottom: none;
  }

  .tasu-friend-add-modal__section-title {
    margin: 0 0 0.4rem;
    font-size: 0.6875rem;
    font-weight: 800;
    color: #94a3b8;
  }

  .tasu-friend-add-modal__people {
    list-style: none;
    margin: 0;
    padding: 0;
    border-radius: 12px;
    border: 1px solid #eef2f6;
    overflow: hidden;
  }

  .tasu-friend-add-modal__person {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    min-height: 52px;
    padding: 0.65rem 1rem;
    border: none;
    border-bottom: 1px solid #f1f5f9;
    background: #fff;
    font: inherit;
    text-align: left;
    cursor: not-allowed;
    color: #64748b;
  }

  .tasu-friend-add-modal__person:last-child {
    border-bottom: none;
  }

  .tasu-friend-add-modal__person-avatar {
    font-size: 1.25rem;
  }

  .tasu-friend-add-modal__person-name {
    font-size: 0.875rem;
    font-weight: 600;
  }

  .tasu-friend-add-modal__foot {
    padding: 0.65rem 1rem 0.85rem;
    border-top: 1px solid #f1f5f9;
  }

  .tasu-friend-add-modal__cancel {
    width: 100%;
    min-height: 44px;
    border: none;
    border-radius: 10px;
    background: #f1f5f9;
    font: inherit;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
  }

  body.tasu-friend-add-open {
    overflow: hidden;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 961px) {
  .tasu-mobile-home,
  .tasu-mobile-settings,
  .tasu-friend-add-modal,
  .tasu-mobile-page-head,
  .tasu-mobile-page-lead,
  .tasu-notify-settings-card,
  .tasu-mobile-shell-head,
  [data-tasu-app-tabbar-injected] {
    display: none !important;
  }
}

@media (max-width: 960px) {
  .tasu-mobile-home--hidden {
    display: none !important;
  }
}

@media (min-width: 961px) {
  .tasu-mobile-quick,
  .tasu-mobile-sheet:not([hidden]) {
    display: none !important;
  }
}
