/**
 * スマホ詳細ページ共通テンプレ（960px以下のみ）
 */

/* 非アクティブ時のシェルは全幅で常に非表示（PC幅の空カード防止） */
.tasu-mobile-detail-shell[hidden],
.tasu-mobile-detail-shell[aria-hidden="true"],
.tasu-mobile-detail-shell:not(.tasu-mobile-detail-shell--active) {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  max-height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  overflow: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
}

@media (max-width: 960px) {
  :root {
    --tasu-mdetail-cta-h: 72px;
    --tasu-mdetail-pad-x: 14px;
    --tasu-mdetail-section-gap: 16px;
    --tasu-mdetail-card-radius: 20px;
    --tasu-mdetail-card-pad: 18px;
    --tasu-mdetail-tabbar-h: 64px;
    --tasu-mdetail-shell-bottom-extra: 12px;
    --tasu-mdetail-bottom-extra: 12px;
    --tasu-mdetail-bottom-pad: calc(
      var(--tasu-mdetail-cta-h) + var(--tasu-mdetail-tabbar-h) + var(--tasu-mdetail-bottom-extra) +
        env(safe-area-inset-bottom, 0px)
    );
    --tasu-mdetail-tabbar-measured: var(--tasu-app-tabbar-total, 52px);
    --tasu-mdetail-tabbar-offset: var(--tasu-mdetail-tabbar-measured, var(--tasu-app-tabbar-total, 52px));
    --tasu-mdetail-bottom-stack: calc(var(--tasu-mdetail-cta-h, 72px) + var(--tasu-mdetail-tabbar-offset, 52px) + 12px);
    --tasu-mdetail-type-title: 1.25rem;
    --tasu-mdetail-type-section: 1.125rem;
    --tasu-mdetail-type-body: 0.875rem;
    --tasu-mdetail-type-caption: 0.8125rem;
    --tasu-mdetail-line: 1.6;
  }

  body.tasu-mdetail-page {
    padding-top: 0 !important;
    padding-bottom: var(--tasu-mdetail-bottom-pad) !important;
  }

  body.tasu-mdetail-page .biz-detail-status-wrap,
  body.tasu-mdetail-page .bsd-status-wrap {
    margin: 0 !important;
    padding: 0 !important;
    min-height: 0 !important;
  }

  body.tasu-mdetail-page.tasu-mdetail-page--business-service,
  body.tasu-mdetail-page.biz-detail-page--business-service {
    padding-bottom: 0 !important;
    --tasu-mdetail-pad-x: 14px;
    --tasu-mdetail-section-gap: 16px;
    --tasu-mdetail-card-radius: 20px;
    --tasu-mdetail-card-pad: 18px;
    --tasu-mdetail-tabbar-h: 64px;
    --tasu-mdetail-footer-clearance: calc(
      var(--tasu-mdetail-cta-h, 72px) + var(--tasu-app-tabbar-total, 64px) + 12px
    );
    --tasu-mdetail-shell-bottom-extra: 0px;
    --tasu-mdetail-bottom-extra: 0px;
    --tasu-mdetail-type-title: 1.3125rem;
    --tasu-mdetail-type-section: 1.125rem;
    --tasu-mdetail-type-body: 0.875rem;
    --tasu-mdetail-type-caption: 0.8125rem;
  }

  /* スマホテンプレ専用ラッパー（PC DOMの外） */
  body.tasu-mdetail-page .tasu-mobile-detail-shell {
    display: none;
  }

  body.tasu-mdetail-ready .tasu-mobile-detail-shell,
  body.tasu-mdetail-ready .tasu-mobile-detail-shell--active {
    display: block !important;
    margin: 0;
    padding: 0;
    min-height: 0;
    background: transparent;
  }

  body.tasu-mdetail-page.biz-detail-page--business-service.tasu-mdetail-ready .tasu-mobile-detail-shell--active,
  body.tasu-mdetail-page.tasu-mdetail-page--business-service.tasu-mdetail-ready .tasu-mobile-detail-shell--active {
    padding-bottom: 0;
    box-sizing: border-box;
  }

  /* 固定CTA+タブの下にコンテンツが潜り込まないよう、フッターは通常フロー・重なりなし */
  body.tasu-mdetail-page.biz-detail-page--business-service.tasu-mdetail-ready .tasu-mdetail-site-footer,
  body.tasu-mdetail-page.tasu-mdetail-page--business-service.tasu-mdetail-ready .tasu-mdetail-site-footer {
    position: relative;
    z-index: 1;
    margin-bottom: 0;
  }

  body.tasu-mdetail-page.biz-detail-page--business-service.tasu-mdetail-ready,
  body.tasu-mdetail-page.tasu-mdetail-page--business-service.tasu-mdetail-ready {
    padding-bottom: 0 !important;
  }

  /* PC用詳細本体・バナー・フッター等は取得元のみ（data 属性付与時のみ非表示） */
  body.tasu-mdetail-ready.tasu-mdetail-page [data-tasu-mdetail-pc-hidden] {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    max-height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
    border: none !important;
    box-shadow: none !important;
    opacity: 0 !important;
  }

  /* 戻るバー */
  body.tasu-mdetail-page .tasu-mobile-shell-head {
    position: sticky;
    top: 0;
    z-index: 1200;
    margin-top: 0;
    padding-top: calc(0.5rem + env(safe-area-inset-top, 0px));
    padding-bottom: 0.5rem;
    background: #fff;
    border-bottom: 1px solid #e8edf2;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
  }

  body.tasu-mdetail-page .tasu-mobile-page-head__title {
    flex: 1;
    text-align: center;
    font-size: 1rem;
    font-weight: 800;
    padding: 0 0.25rem;
    padding-right: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body.tasu-mdetail-page .tasu-mobile-page-head__back,
  body.tasu-mdetail-page .app-detail-back,
  body.tasu-mdetail-page [data-detail-back] {
    width: auto;
    max-width: none;
    min-width: 56px;
    height: 32px;
    padding: 0 10px;
    font-size: 0.8125rem;
    font-weight: 700;
    white-space: nowrap;
    line-height: 1;
  }

  .tasu-mdetail-head__menu {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    color: #475569;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
  }

  /* メイン情報カード */
  .tasu-mdetail-hero {
    margin: 14px var(--tasu-mdetail-pad-x, var(--tasu-detail-pad-x, 14px)) 0;
    padding: var(--tasu-mdetail-card-pad, 18px);
    background: #fff;
    border: 1px solid #e8edf2;
    border-radius: var(--tasu-mdetail-card-radius, 20px);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05), 0 4px 14px rgba(15, 23, 42, 0.04);
  }

  .tasu-mdetail-hero__chip {
    display: inline-block;
    margin-bottom: 0.5rem;
    padding: 0.2rem 0.55rem;
    font-size: 0.6875rem;
    font-weight: 700;
    color: #967622;
    background: #fff9eb;
    border-radius: 999px;
  }

  .tasu-mdetail-hero__title {
    margin: 0 0 0.5rem;
    font-size: var(--tasu-mdetail-type-title, 1.25rem);
    font-weight: 800;
    line-height: 1.35;
    color: #0f172a;
  }

  .tasu-mdetail-hero__provider {
    margin: 0 0 0.35rem;
    font-size: var(--tasu-mdetail-type-caption, 0.8125rem);
    line-height: var(--tasu-mdetail-line, 1.6);
    color: #64748b;
  }

  .tasu-mdetail-hero__price {
    margin: 0 0 0.35rem;
    font-size: 1.0625rem;
    font-weight: 800;
    line-height: var(--tasu-mdetail-line, 1.6);
    color: #0f172a;
  }

  .tasu-mdetail-hero__rating {
    margin: 0 0 0.35rem;
    font-size: var(--tasu-mdetail-type-caption, 0.8125rem);
    line-height: var(--tasu-mdetail-line, 1.6);
    color: #b45309;
  }

  .tasu-mdetail-hero__area {
    margin: 0 0 0.5rem;
    font-size: var(--tasu-mdetail-type-caption, 0.8125rem);
    line-height: var(--tasu-mdetail-line, 1.6);
    color: #64748b;
  }

  .tasu-mdetail-hero__desc {
    margin: 0;
    font-size: var(--tasu-mdetail-type-body, 0.875rem);
    line-height: var(--tasu-mdetail-line, 1.6);
    color: #334155;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .tasu-mdetail-hero__media {
    margin: 0 0 0.75rem;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e8edf2;
  }

  .tasu-mdetail-hero__img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 220px;
    object-fit: cover;
  }

  /* 求人詳細 — スマホファーストビュー（PC上部の情報設計を縮小移植） */
  body[data-detail-type="job"].tasu-mdetail-page .tasu-mdetail-hero--job {
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    border-bottom: 1px solid #e8edf2;
    overflow: hidden;
  }

  body[data-detail-type="job"].tasu-mdetail-page .tasu-mdetail-hero--job .tasu-mdetail-hero__media-wrap--job {
    position: relative;
  }

  body[data-detail-type="job"].tasu-mdetail-page .tasu-mdetail-hero--job .tasu-mdetail-hero__topbar--job {
    display: flex;
    justify-content: flex-end;
    padding: 10px var(--tasu-mdetail-pad-x, 14px) 0;
  }

  body[data-detail-type="job"].tasu-mdetail-page .tasu-mdetail-hero--job .tasu-mdetail-hero__favorite-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    padding: 0;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #ffffff;
    color: #64748b;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    overflow: hidden;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
  }

  body[data-detail-type="job"].tasu-mdetail-page .tasu-mdetail-hero--job .tasu-mdetail-hero__favorite-btn .tasu-favorite-btn__icon {
    display: block;
    margin: 0;
    font-size: 18px;
    line-height: 1;
  }

  body[data-detail-type="job"].tasu-mdetail-page .tasu-mdetail-hero--job .tasu-mdetail-hero__favorite-btn .tasu-favorite-btn__label,
  body[data-detail-type="job"].tasu-mdetail-page .tasu-mdetail-hero--job .tasu-mdetail-hero__favorite-btn .job-top-cta__favorite-label {
    display: none !important;
  }

  body[data-detail-type="job"].tasu-mdetail-page .tasu-mdetail-hero--job .tasu-mdetail-hero__media-wrap--job .tasu-mdetail-hero__favorite-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
  }

  body[data-detail-type="job"].tasu-mdetail-page .tasu-mdetail-hero--job .tasu-mdetail-hero__favorite-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
  }

  body[data-detail-type="job"].tasu-mdetail-page .tasu-mdetail-hero--job .tasu-mdetail-hero__favorite-btn.tasu-favorite-btn .tasu-mdetail-hero__favorite-icon {
    display: none;
  }

  body[data-detail-type="job"].tasu-mdetail-page .tasu-mdetail-hero--job .tasu-mdetail-hero__favorite-btn.is-active,
  body[data-detail-type="job"].tasu-mdetail-page .tasu-mdetail-hero--job .tasu-mdetail-hero__favorite-btn.is-favorite,
  body[data-detail-type="job"].tasu-mdetail-page .tasu-mdetail-hero--job .tasu-mdetail-hero__favorite-btn[aria-pressed="true"] {
    color: #db2777;
    border-color: rgba(219, 39, 119, 0.35);
    background: #fff;
  }

  body[data-detail-type="job"].tasu-mdetail-page .tasu-mdetail-hero--job .tasu-mdetail-hero__favorite-btn.is-active .tasu-mdetail-hero__favorite-icon,
  body[data-detail-type="job"].tasu-mdetail-page .tasu-mdetail-hero--job .tasu-mdetail-hero__favorite-btn.is-favorite .tasu-mdetail-hero__favorite-icon,
  body[data-detail-type="job"].tasu-mdetail-page .tasu-mdetail-hero--job .tasu-mdetail-hero__favorite-btn[aria-pressed="true"] .tasu-mdetail-hero__favorite-icon {
    fill: currentColor;
  }

  body[data-detail-type="job"].tasu-mdetail-page .tasu-mdetail-hero--job .tasu-mdetail-hero__media--job {
    margin: 0;
    border: none;
    border-radius: 0;
  }

  body[data-detail-type="job"].tasu-mdetail-page .tasu-mdetail-hero--job .tasu-mdetail-hero__img--job {
    width: 100%;
    max-height: 200px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
  }

  body[data-detail-type="job"].tasu-mdetail-page .tasu-mdetail-hero--job .tasu-mdetail-hero__content--job {
    padding: 16px var(--tasu-mdetail-pad-x, 14px) 18px;
  }

  body[data-detail-type="job"].tasu-mdetail-page .tasu-mdetail-hero--job .tasu-mdetail-hero__title--job {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.35;
    color: #0f172a;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }

  body[data-detail-type="job"].tasu-mdetail-page .tasu-mdetail-hero--job .tasu-mdetail-hero__summary--job {
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.6;
    color: #374151;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
  }

  body[data-detail-type="job"].tasu-mdetail-page .tasu-mdetail-hero--job .tasu-mdetail-hero__fv-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 12px;
  }

  body[data-detail-type="job"].tasu-mdetail-page .tasu-mdetail-hero--job .tasu-mdetail-hero__fv-tags .job-tag-pill {
    display: inline-flex;
    align-items: center;
    min-height: 0;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.25;
    color: #374151;
    background: #f3f4f6;
    border: none;
    box-sizing: border-box;
  }

  body[data-detail-type="job"].tasu-mdetail-page .tasu-mdetail-hero--job .tasu-mdetail-hero__fv-tags .job-tag-pill--accent {
    color: #57534e;
    background: rgba(254, 243, 199, 0.65);
  }

  body[data-detail-type="job"].tasu-mdetail-page .tasu-mdetail-hero--job .tasu-mdetail-hero__seller-mini {
    display: block;
    margin: 0 0 12px;
    padding: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
    text-decoration: none;
    color: inherit;
    box-sizing: border-box;
  }

  body[data-detail-type="job"].tasu-mdetail-page .tasu-mdetail-hero--job .job-hero-fv-seller__header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
  }

  body[data-detail-type="job"].tasu-mdetail-page .tasu-mdetail-hero--job .job-hero-fv-seller__logo-wrap {
    flex-shrink: 0;
  }

  body[data-detail-type="job"].tasu-mdetail-page .tasu-mdetail-hero--job .job-hero-fv-seller__logo-wrap .job-company-avatar,
  body[data-detail-type="job"].tasu-mdetail-page .tasu-mdetail-hero--job .job-hero-fv-seller__logo-wrap img {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: cover;
    display: block;
  }

  body[data-detail-type="job"].tasu-mdetail-page .tasu-mdetail-hero--job .job-hero-fv-seller__intro {
    flex: 1;
    min-width: 0;
  }

  body[data-detail-type="job"].tasu-mdetail-page .tasu-mdetail-hero--job .job-hero-fv-seller__name,
  body[data-detail-type="job"].tasu-mdetail-page .tasu-mdetail-hero--job .job-top-company__name {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    color: #0f172a;
  }

  body[data-detail-type="job"].tasu-mdetail-page .tasu-mdetail-hero--job .job-hero-fv-seller__intro .job-top-company__badges,
  body[data-detail-type="job"].tasu-mdetail-page .tasu-mdetail-hero--job .job-top-company__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
  }

  body[data-detail-type="job"].tasu-mdetail-page .tasu-mdetail-hero--job .job-hero-fv-seller__intro .job-company-badge,
  body[data-detail-type="job"].tasu-mdetail-page .tasu-mdetail-hero--job .job-top-company__badges .job-company-badge {
    min-height: 22px;
    padding: 0 8px;
    font-size: 10px;
    font-weight: 700;
    border-radius: 999px;
  }

  body[data-detail-type="job"].tasu-mdetail-page .tasu-mdetail-hero--job .job-hero-fv-seller__identity {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin-top: 10px;
  }

  body[data-detail-type="job"].tasu-mdetail-page .tasu-mdetail-hero--job .job-hero-fv-seller__online,
  body[data-detail-type="job"].tasu-mdetail-page .tasu-mdetail-hero--job .job-top-company__online {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    font-size: 12px;
    font-weight: 600;
    color: #15803d;
    background: none;
    border: none;
    box-shadow: none;
  }

  body[data-detail-type="job"].tasu-mdetail-page .tasu-mdetail-hero--job .job-hero-fv-seller__online-dot,
  body[data-detail-type="job"].tasu-mdetail-page .tasu-mdetail-hero--job .job-top-company__online-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #22c55e;
  }

  body[data-detail-type="job"].tasu-mdetail-page .tasu-mdetail-hero--job .job-hero-fv-seller__handle,
  body[data-detail-type="job"].tasu-mdetail-page .tasu-mdetail-hero--job .job-top-company__handle {
    margin: 0;
    font-size: 12px;
    line-height: 1.4;
    color: #64748b;
  }

  body[data-detail-type="job"].tasu-mdetail-page .tasu-mdetail-hero--job .job-hero-fv-seller__meta,
  body[data-detail-type="job"].tasu-mdetail-page .tasu-mdetail-hero--job .job-top-company__meta-rows {
    margin-top: 10px;
  }

  body[data-detail-type="job"].tasu-mdetail-page .tasu-mdetail-hero--job .job-top-company__meta-row {
    display: flex;
    gap: 8px;
    margin: 0 0 4px;
    font-size: 12px;
    line-height: 1.5;
    color: #475569;
  }

  body[data-detail-type="job"].tasu-mdetail-page .tasu-mdetail-hero--job .job-top-company__meta-row:last-child {
    margin-bottom: 0;
  }

  body[data-detail-type="job"].tasu-mdetail-page .tasu-mdetail-hero--job .job-top-company__meta-label {
    flex-shrink: 0;
    min-width: 4.5em;
    color: #64748b;
    font-weight: 500;
  }

  body[data-detail-type="job"].tasu-mdetail-page .tasu-mdetail-hero--job .job-top-company__meta-value {
    color: #334155;
    font-weight: 600;
  }

  body[data-detail-type="job"].tasu-mdetail-page .tasu-mdetail-hero--job .tasu-mdetail-hero__reward--job {
    margin: 0 0 12px;
    padding: 12px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    box-sizing: border-box;
  }

  body[data-detail-type="job"].tasu-mdetail-page .tasu-mdetail-hero--job .tasu-mdetail-hero__reward-label {
    display: block;
    margin: 0 0 4px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
    color: #6b7280;
  }

  body[data-detail-type="job"].tasu-mdetail-page .tasu-mdetail-hero--job .tasu-mdetail-hero__reward-price {
    margin: 0;
    font-size: 26px;
    font-weight: 800;
    line-height: 1.15;
    color: #111827;
    letter-spacing: -0.01em;
  }

  body[data-detail-type="job"].tasu-mdetail-page .tasu-mdetail-hero--job .tasu-mdetail-hero__price--job {
    display: none !important;
  }

  body[data-detail-type="job"].tasu-mdetail-page .tasu-mdetail-hero--job .tasu-mdetail-hero__apply {
    display: inline-flex;
    flex: 0 0 calc((100% - 8px) * 0.7);
    max-width: calc((100% - 8px) * 0.7);
    min-width: 0;
    width: auto;
    height: 48px;
    min-height: 48px;
    margin: 0;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    color: #fff;
    background: linear-gradient(135deg, #f6c43d, #d49a00);
    border: none;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(180, 120, 0, 0.28);
    box-sizing: border-box;
  }

  body[data-detail-type="job"].tasu-mdetail-page .tasu-mdetail-hero--job .tasu-mdetail-hero__cta-actions {
    display: flex;
    gap: 8px;
    width: 100%;
    margin: 0;
  }

  body[data-detail-type="job"].tasu-mdetail-page .tasu-mdetail-hero--job .tasu-mdetail-hero__consult {
    flex: 0 0 calc((100% - 8px) * 0.3);
    max-width: calc((100% - 8px) * 0.3);
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    min-height: 48px;
    padding: 0 10px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #b77900;
    font-weight: 700;
    font-size: 0.875rem;
    text-decoration: none;
    box-sizing: border-box;
  }

  body[data-detail-type="job"].tasu-mdetail-page .tasu-mdetail-hero--job .tasu-mdetail-hero__consult:active {
    background: #f9fafb;
  }

  body[data-detail-type="job"].tasu-mdetail-page .tasu-mdetail-hero--job .tasu-mdetail-hero__company {
    display: none !important;
  }

  body[data-detail-type="job"].tasu-mdetail-page .tasu-mdetail-hero--job .tasu-mdetail-hero__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    margin: 0;
  }

  body[data-detail-type="job"].tasu-mdetail-page .tasu-mdetail-hero--job .tasu-mdetail-hero__tags .job-tag-pill {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    font-size: 12px;
    border-radius: 999px;
    box-sizing: border-box;
  }

  body[data-detail-type="job"].tasu-mdetail-page .tasu-mdetail-hero--job .tasu-mdetail-hero__tags .job-tag-pill--hero-key {
    font-weight: 600;
    color: #334155;
    background: #f1f5f9;
    border: none;
  }

  body[data-detail-type="job"].tasu-mdetail-page .tasu-mdetail-hero--job .tasu-mdetail-hero__tags .job-tag-pill--hero-sub {
    font-weight: 400;
    color: #94a3b8;
    background: transparent;
    border: 1px solid #e5e7eb;
  }

  body[data-detail-type="job"].tasu-mdetail-page .tasu-mdetail-section__label {
    margin: 0 0 14px;
    padding-left: 10px;
    border-left: 2px solid #d4a017;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    color: #0f172a;
  }

  body[data-detail-type="job"].tasu-mdetail-page .tasu-mdetail-section__body,
  body[data-detail-type="job"].tasu-mdetail-page .tasu-mdetail-section__body p,
  body[data-detail-type="job"].tasu-mdetail-page .tasu-mdetail-section__body li,
  body[data-detail-type="job"].tasu-mdetail-page .tasu-mdetail-section__body td,
  body[data-detail-type="job"].tasu-mdetail-page .tasu-mdetail-section__body .section-description,
  body[data-detail-type="job"].tasu-mdetail-page .tasu-mdetail-section__body .job-section-card__body,
  body[data-detail-type="job"].tasu-mdetail-page .tasu-mdetail-section__body .job-detail-section__body {
    font-size: 14px;
    line-height: 1.62;
    color: #374151;
  }

  body[data-detail-type="job"].tasu-mdetail-page .tasu-mdetail-hero--job .tasu-mdetail-hero__apply:active {
    filter: brightness(0.97);
    transform: translateY(1px);
  }

  body[data-detail-type="job"].tasu-mdetail-page {
    --tasu-mdetail-cta-h: 0px;
    --tasu-mdetail-tabbar-h: var(--tasu-app-tabbar-total, 60px);
    --tasu-mdetail-bottom-extra: 0px;
    --tasu-mdetail-bottom-pad: var(--tasu-app-tabbar-pad, calc(72px + env(safe-area-inset-bottom, 0px)));
    --tasu-mdetail-bottom-stack: var(--tasu-app-tabbar-total, 60px);
    padding-bottom: var(--tasu-app-tabbar-pad, calc(72px + env(safe-area-inset-bottom, 0px))) !important;
  }

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

  body[data-detail-type="job"].tasu-mdetail-page .tasu-mdetail-section.section-anchor {
    scroll-margin-top: 90px;
    scroll-margin-bottom: 0;
  }

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

  body[data-detail-type="job"].tasu-mdetail-page .tasu-mdetail-sections {
    padding-bottom: 16px;
  }

  body[data-detail-type="job"].tasu-mdetail-page .tasu-mdetail-site-footer--job {
    padding: 8px var(--tasu-mdetail-pad-x, 14px) 16px;
    margin-top: 4px;
  }

  body[data-detail-type="job"].tasu-mdetail-page .tasu-mdetail-job-footer {
    margin: 0;
    padding: 0;
    font-size: 0.75rem;
    line-height: 1.5;
    color: #94a3b8;
    text-align: center;
  }

  body[data-detail-type="job"].tasu-mdetail-page .tasu-mdetail-section__body .job-workplace-gallery__track-wrap {
    margin-inline: -0.15rem;
    padding-inline: 0.15rem;
  }

  body[data-detail-type="job"].tasu-mdetail-page .tasu-mdetail-section__body .job-workplace-gallery__track {
    display: flex;
    gap: 0.65rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.2rem;
    grid-template-columns: unset;
  }

  body[data-detail-type="job"].tasu-mdetail-page .tasu-mdetail-section__body .job-workplace-gallery__item {
    flex: 0 0 78%;
    max-width: 18.5rem;
    scroll-snap-align: start;
  }

  body[data-detail-type="job"].tasu-mdetail-page .tasu-mdetail-section__chunk[data-tasu-mdetail-from="otherServices"] .job-related-panel__head,
  body[data-detail-type="job"].tasu-mdetail-page .tasu-mdetail-section__chunk[data-tasu-mdetail-from="otherServices"] .detail-strip-scroll-btn {
    display: none !important;
  }

  body[data-detail-type="job"].tasu-mdetail-page .tasu-mdetail-section__chunk[data-tasu-mdetail-from="otherServices"] .detail-seller-services__track-wrap {
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  body[data-detail-type="job"].tasu-mdetail-page .tasu-mdetail-section__chunk[data-tasu-mdetail-from="otherServices"] .detail-seller-services__track {
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow: visible;
    scroll-snap-type: none;
    padding: 0;
  }

  body[data-detail-type="job"].tasu-mdetail-page .tasu-mdetail-section__chunk[data-tasu-mdetail-from="otherServices"] .job-detail-related-card {
    flex: none;
    width: 100%;
    max-width: none;
    scroll-snap-align: unset;
  }

  body[data-detail-type="job"].tasu-mdetail-page .tasu-mdetail-section__chunk[data-tasu-mdetail-from="otherServices"] .job-detail-related-card__link {
    padding: 14px 12px;
  }

  body[data-detail-type="job"].tasu-mdetail-page .tasu-mdetail-section__chunk[data-tasu-mdetail-from="otherServices"] .job-detail-related-card__location,
  body[data-detail-type="job"].tasu-mdetail-page .tasu-mdetail-section__chunk[data-tasu-mdetail-from="otherServices"] .job-detail-related-card__employment {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    font-size: 12px;
  }

  body[data-detail-type="job"].tasu-mdetail-page .tasu-mdetail-section__chunk[data-tasu-mdetail-from="otherServices"] .job-detail-related-card__tags {
    margin-top: 4px;
  }

  .tasu-mdetail-gallery-clone {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .tasu-mdetail-gallery__main {
    grid-column: 1 / -1;
    margin: 0;
    border-radius: 14px;
    overflow: hidden;
  }

  .tasu-mdetail-gallery__main img,
  .tasu-mdetail-gallery__thumb {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid #e8edf2;
  }

  /* 下固定 CTA（タブバーの直上・safe-area はタブ側のみ） */
  .tasu-mdetail-cta-dock,
  .tasu-mdetail-fixed-cta,
  [data-tasu-mdetail-fixed-cta] {
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(var(--tasu-mdetail-tabbar-measured, var(--tasu-mdetail-tabbar-offset, var(--tasu-app-tabbar-total, 52px))) + 2px);
    z-index: 45;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    flex-shrink: 0;
    gap: 0.5rem;
    width: 100%;
    max-width: 100vw;
    min-height: 64px;
    box-sizing: border-box;
    padding: 10px var(--tasu-mdetail-pad-x, 14px);
    margin: 0;
    background: #fff;
    border-top: 1px solid #e8edf2;
    box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.08);
  }

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

  body.tasu-mdetail-page .tasu-app-tabbar__item,
  body.tasu-mdetail-page .talk-mobile-tabbar__item {
    flex: 1 1 0;
    flex-shrink: 0;
    min-height: var(--tasu-app-tabbar-h, 60px);
    padding: 0.4rem 0.12rem 0.35rem;
    box-sizing: border-box;
    overflow: visible;
  }

  .tasu-mdetail-cta-dock__btn {
    flex: 1 1 0;
    min-width: 0;
    min-height: 44px;
    max-height: none;
    padding: 0.55rem 0.75rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
    line-height: 1.3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .tasu-mdetail-cta-dock__btn--primary {
    background: linear-gradient(135deg, #c9a227 0%, #967622 100%);
    color: #fff;
  }

  .tasu-mdetail-cta-dock__btn--secondary {
    background: #fff;
    color: #334155;
    border: 1px solid #cbd5e1;
  }

  /* PC用ナビ・上部CTAを非表示 */
  body.tasu-mdetail-page .section-nav,
  body.tasu-mdetail-page nav.section-nav,
  body.tasu-mdetail-page .relax-tabs-sticky-wrap,
  body.tasu-mdetail-page .shop-sticky-action-nav,
  body.tasu-mdetail-page .shop-sticky-action-nav-spacer,
  body.tasu-mdetail-page .bsd-sticky-nav,
  body.tasu-mdetail-page [data-bsd-sticky-nav],
  body.tasu-mdetail-page .biz-detail-sticky-bar,
  body.tasu-mdetail-page .tasu-banner,
  body.tasu-mdetail-page .bsd-back,
  body.tasu-mdetail-page .bsd-breadcrumb,
  body.tasu-mdetail-page .biz-detail-back,
  body.tasu-mdetail-page .page-subheader {
    display: none !important;
  }

  body.tasu-mdetail-page .bsd-page .bsd-cta-card,
  body.tasu-mdetail-page .bsd-cta-card,
  body.tasu-mdetail-page .hero-cta-card,
  body.tasu-mdetail-page .biz-detail-fv-card,
  body.tasu-mdetail-page .bsd-cta-card__head,
  body.tasu-mdetail-page [data-bsd-cta-head],
  body.tasu-mdetail-page .bsd-cta-card__materials,
  body.tasu-mdetail-page .bsd-cta-materials-card,
  body.tasu-mdetail-page .bsd-cta-card__fav,
  body.tasu-mdetail-page .biz-detail-favorite,
  body.tasu-mdetail-page .hero-download-card,
  body.tasu-mdetail-ready .bsd-hero .bsd-cta-card,
  body.tasu-mdetail-ready .bsd-hero__col--cta,
  body.tasu-mdetail-page .biz-detail-sidebar__sticky,
  body.tasu-mdetail-page .skill-hero-premium__cta,
  body.tasu-mdetail-page .product-cta-panel,
  body.tasu-mdetail-page .job-cta-panel,
  body.tasu-mdetail-page .skill-cta-panel,
  body.tasu-mdetail-page [data-biz-detail-sidebar-actions],
  body.tasu-mdetail-page [data-bsd-cta-actions],
  body.tasu-mdetail-page [data-bsd-materials-link],
  body.tasu-mdetail-page .bsd-hero__sidebar,
  body.tasu-mdetail-page .bsd-hero__aside-col,
  body.tasu-mdetail-page .shop-sticky-action-nav__actions,
  body.tasu-mdetail-page [data-business-sticky-action-actions],
  body.tasu-mdetail-page [data-shop-sticky-action-actions] {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  body.tasu-mdetail-ready .skill-hero-premium__center,
  body.tasu-mdetail-ready .skill-hero-premium__cta,
  body.tasu-mdetail-ready .bsd-hero__main-copy,
  body.tasu-mdetail-ready .bsd-hero__sidebar-col,
  body.tasu-mdetail-ready .bsd-hero__cta-col {
    display: none !important;
  }

  body.tasu-mdetail-ready .demo-deals-page-head {
    display: none !important;
  }

  /* 縦セクション */
  body.tasu-mdetail-page .tasu-mdetail-sections {
    display: flex;
    flex-direction: column;
    gap: var(--tasu-mdetail-section-gap, 16px);
    padding: 14px var(--tasu-mdetail-pad-x, var(--tasu-detail-pad-x, 14px)) 8px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  body.tasu-mdetail-page .tasu-mdetail-section {
    margin: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: var(--tasu-mdetail-card-pad, 18px);
    background: #fff;
    border: 1px solid #e8edf2;
    border-radius: var(--tasu-mdetail-card-radius, 20px);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05), 0 4px 14px rgba(15, 23, 42, 0.04);
  }

  body.tasu-mdetail-page .tasu-mdetail-section:empty,
  body.tasu-mdetail-page .tasu-mdetail-section--empty,
  body.tasu-mdetail-page .tasu-mdetail-section__body:empty {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    min-height: 0 !important;
    height: 0 !important;
  }

  body.tasu-mdetail-page .tasu-mdetail-fallback-list {
    margin: 0;
    padding-left: 1.1rem;
    font-size: var(--tasu-mdetail-type-body, 0.875rem);
    line-height: var(--tasu-mdetail-line, 1.6);
    color: #334155;
  }

  body.tasu-mdetail-page .tasu-mdetail-body,
  body.tasu-mdetail-page .tasu-mdetail-staff-lead {
    margin: 0;
    font-size: var(--tasu-mdetail-type-body, 0.875rem);
    line-height: var(--tasu-mdetail-line, 1.6);
    color: #334155;
  }

  body.tasu-mdetail-page .tasu-mdetail-notes {
    margin: 0;
    font-size: var(--tasu-mdetail-type-caption, 0.8125rem);
    line-height: var(--tasu-mdetail-line, 1.6);
    color: #64748b;
  }

  body.tasu-mdetail-page .tasu-mdetail-section__body .bsd-section,
  body.tasu-mdetail-page .tasu-mdetail-section__body > section {
    border: none;
    padding: 0;
    margin: 0 0 0.5rem;
    box-shadow: none;
    background: transparent;
  }

  body.tasu-mdetail-page .tasu-mdetail-section__label {
    margin: 0 0 0.75rem;
    font-size: var(--tasu-mdetail-type-section, 1.125rem);
    font-weight: 800;
    line-height: 1.35;
    color: #0f172a;
  }

  body.tasu-mdetail-page .tasu-mdetail-section .section-header .section-title,
  body.tasu-mdetail-page .tasu-mdetail-section__body .bsd-trust-section__title,
  body.tasu-mdetail-page .tasu-mdetail-section__body .request-flow__title,
  body.tasu-mdetail-page .tasu-mdetail-section__body .pricing-plan__title,
  body.tasu-mdetail-page .tasu-mdetail-section__body h2 {
    font-size: var(--tasu-mdetail-type-section, 1.125rem) !important;
    line-height: 1.35 !important;
  }

  body.tasu-mdetail-page .tasu-mdetail-section__body,
  body.tasu-mdetail-page .tasu-mdetail-pc-content {
    font-size: var(--tasu-mdetail-type-body, 0.875rem);
    line-height: var(--tasu-mdetail-line, 1.6);
    color: #334155;
  }

  body.tasu-mdetail-page .tasu-mdetail-section__body p,
  body.tasu-mdetail-page .tasu-mdetail-section__body li,
  body.tasu-mdetail-page .tasu-mdetail-section__body td,
  body.tasu-mdetail-page .tasu-mdetail-section__body .bsd-flow__desc,
  body.tasu-mdetail-page .tasu-mdetail-section__body .section-description,
  body.tasu-mdetail-page .tasu-mdetail-section__body .bsd-trust-section__lead {
    font-size: var(--tasu-mdetail-type-body, 0.875rem);
    line-height: var(--tasu-mdetail-line, 1.6);
  }

  body.tasu-mdetail-page .tasu-mdetail-section__body .bsd-trust-section__lead,
  body.tasu-mdetail-page .tasu-mdetail-section__body .pricing-plan__lead,
  body.tasu-mdetail-page .tasu-mdetail-section__body .request-flow__lead,
  body.tasu-mdetail-page .tasu-mdetail-section__body small,
  body.tasu-mdetail-page .tasu-mdetail-section__body .bsd-cert-item__desc {
    font-size: var(--tasu-mdetail-type-caption, 0.8125rem);
    line-height: var(--tasu-mdetail-line, 1.6);
    color: #64748b;
  }

  body.tasu-mdetail-page .tasu-mdetail-section__body .bsd-pricing-table-wrap,
  body.tasu-mdetail-page .tasu-mdetail-section__body .pricing-plan__table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -0.25rem;
    padding: 0 0.25rem;
  }

  body.tasu-mdetail-page .tasu-mdetail-section__body .bsd-pricing-table,
  body.tasu-mdetail-page .tasu-mdetail-section__body .pricing-plan__table {
    min-width: 520px;
    font-size: var(--tasu-mdetail-type-caption, 0.8125rem);
  }

  body.tasu-mdetail-page .tasu-mdetail-section__body img,
  body.tasu-mdetail-page .tasu-mdetail-gallery-clone img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    object-fit: cover;
  }

  body.tasu-mdetail-page .tasu-mdetail-section__body [class*="grid"],
  body.tasu-mdetail-page .tasu-mdetail-section__body .bsd-work-cases-grid,
  body.tasu-mdetail-page .tasu-mdetail-section__body .biz-detail-cases,
  body.tasu-mdetail-page .tasu-mdetail-section__body .bsd-overview-kpis,
  body.tasu-mdetail-page .tasu-mdetail-section__body .tasu-mdetail-staff-kpis {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  body.tasu-mdetail-page .tasu-mdetail-section__body .bsd-overview-kpis,
  body.tasu-mdetail-page .tasu-mdetail-section__body .tasu-mdetail-staff-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.tasu-mdetail-page .tasu-mdetail-section__body .bsd-hero__grid,
  body.tasu-mdetail-page .tasu-mdetail-section__body .bsd-page__grid,
  body.tasu-mdetail-page .tasu-mdetail-section__body .reviews-panel__layout--split {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
  }

  body.tasu-mdetail-page .tasu-mdetail-section__body .bsd-section,
  body.tasu-mdetail-page .tasu-mdetail-section__body > section.bsd-section {
    margin-top: 0 !important;
    margin-bottom: 14px !important;
    padding: 0 !important;
    max-width: 100% !important;
  }

  body.tasu-mdetail-page .tasu-mdetail-section__body .bsd-section:last-child,
  body.tasu-mdetail-page .tasu-mdetail-section__body > section.bsd-section:last-child {
    margin-bottom: 0 !important;
  }

  body.tasu-mdetail-page .tasu-mdetail-section__body .bsd-work-cases-grid,
  body.tasu-mdetail-page .tasu-mdetail-section__body .biz-detail-cases {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    overflow: visible !important;
  }

  body.tasu-mdetail-page .tasu-mdetail-section__body .bsd-work-case-card {
    width: 100% !important;
    max-width: none !important;
  }

  body.tasu-mdetail-page .tasu-mdetail-section__body .bsd-work-case-card__media img {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
  }

  body.tasu-mdetail-page .tasu-mdetail-section__body .bsd-flow,
  body.tasu-mdetail-page .tasu-mdetail-section__body [data-bsd-flow-steps] {
    display: grid;
    gap: 0.5rem;
    padding: 0;
    list-style: none;
  }

  body.tasu-mdetail-page .tasu-mdetail-section__body .reviews-panel__slider,
  body.tasu-mdetail-page .tasu-mdetail-section__body .reviews-panel__cards {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  body.tasu-mdetail-page .tasu-mdetail-section__body .reviews-panel__layout,
  body.tasu-mdetail-page .tasu-mdetail-section__body .taxi-review-section__grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  body.tasu-mdetail-page .tasu-mdetail-section__body .bsd-company-table {
    width: 100%;
    font-size: 0.8125rem;
  }

  body.tasu-mdetail-page .tasu-mdetail-section__body .bsd-company-table th {
    width: 34%;
    vertical-align: top;
    color: #64748b;
    font-weight: 600;
  }

  body.tasu-mdetail-page .tasu-mdetail-section__body .bsd-area-v2__top {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
  }

  body.tasu-mdetail-page .tasu-mdetail-section__body .biz-detail-faq__item {
    margin-bottom: 0.5rem;
    border: 1px solid #e8edf2;
    border-radius: 10px;
    padding: 0.35rem 0.65rem;
  }

  body.tasu-mdetail-page .tasu-mdetail-section__body .tasu-mdetail-notes,
  body.tasu-mdetail-page .tasu-mdetail-section__body .bsd-notice-list {
    margin: 0;
    padding-left: 1.1rem;
    font-size: 0.8125rem;
    line-height: 1.55;
    color: #64748b;
  }

  body.tasu-mdetail-page .tasu-mdetail-sections {
    padding-bottom: 0.5rem;
  }

  body.tasu-mdetail-page .tasu-mdetail-site-footer {
    margin: 0;
    padding: 0 var(--tasu-mdetail-pad-x, var(--tasu-detail-pad-x, 14px));
    width: 100%;
    box-sizing: border-box;
    position: static;
  }

  /* 業務サービス詳細 — スマホ専用 TASFULフッター（PCの .bsd-footer ルールは非適用） */
  body.tasu-mdetail-page.biz-detail-page--business-service .tasu-mdetail-site-footer--business-service,
  body.tasu-mdetail-page.tasu-mdetail-page--business-service .tasu-mdetail-site-footer--business-service,
  body.tasu-mdetail-page.biz-detail-page--business-service .tasu-mdetail-site-footer,
  body.tasu-mdetail-page.tasu-mdetail-page--business-service .tasu-mdetail-site-footer {
    position: static;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 100%;
    margin: 0;
    padding: 20px 14px var(--tasu-mdetail-site-footer-pad-bottom, calc(var(--tasu-mdetail-bottom-stack, 140px) + 12px));
    box-sizing: border-box;
    text-align: center;
  }

  body.tasu-mdetail-page.biz-detail-page--business-service .tasu-mdetail-site-footer .tasu-mdetail-mobile-footer,
  body.tasu-mdetail-page.tasu-mdetail-page--business-service .tasu-mdetail-site-footer .tasu-mdetail-mobile-footer {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-top: 1px solid #edf0f3;
    background: transparent;
    box-shadow: none;
  }

  body.tasu-mdetail-page.biz-detail-page--business-service .tasu-mdetail-site-footer .bsd-footer__inner,
  body.tasu-mdetail-page.tasu-mdetail-page--business-service .tasu-mdetail-site-footer .bsd-footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  body.tasu-mdetail-page.biz-detail-page--business-service .tasu-mdetail-site-footer .bsd-footer__brand,
  body.tasu-mdetail-page.tasu-mdetail-page--business-service .tasu-mdetail-site-footer .bsd-footer__brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.5;
    color: #0f172a;
  }

  body.tasu-mdetail-page.biz-detail-page--business-service .tasu-mdetail-site-footer .bsd-footer__mark,
  body.tasu-mdetail-page.tasu-mdetail-page--business-service .tasu-mdetail-site-footer .bsd-footer__mark {
    width: 16px;
    height: 16px;
    border-radius: 5px;
    background: linear-gradient(145deg, #f5c842 0%, #e8a020 55%, #d48806 100%);
  }

  body.tasu-mdetail-page.biz-detail-page--business-service .tasu-mdetail-site-footer .bsd-footer__tagline,
  body.tasu-mdetail-page.tasu-mdetail-page--business-service .tasu-mdetail-site-footer .bsd-footer__tagline {
    margin: 0;
    font-size: 11px;
    line-height: 1.5;
    color: #64748b;
  }

  body.tasu-mdetail-page.biz-detail-page--business-service .tasu-mdetail-site-footer .bsd-footer__copy,
  body.tasu-mdetail-page.tasu-mdetail-page--business-service .tasu-mdetail-site-footer .bsd-footer__copy {
    margin: 0;
    font-size: 10px;
    line-height: 1.5;
    color: #64748b;
  }

  body.tasu-mdetail-page .tasu-mdetail-section__body .tasu-mdetail-section__chunk--notices h2,
  body.tasu-mdetail-page .tasu-mdetail-section__body [data-tasu-mdetail-from="disclaimer"] h2.bsd-section__title {
    display: none !important;
  }

  body.tasu-mdetail-page.tasu-mdetail-page--business-service .tasu-mobile-detail-shell,
  body.tasu-mdetail-page.biz-detail-page--business-service .tasu-mobile-detail-shell {
    width: 100%;
    max-width: 100%;
  }

  body.tasu-mdetail-page:not(.biz-detail-page--business-service) .tasu-mdetail-site-footer .bsd-footer,
  body.tasu-mdetail-page:not(.tasu-mdetail-page--business-service) .tasu-mdetail-site-footer .bsd-footer,
  body.tasu-mdetail-page:not(.biz-detail-page--business-service) .tasu-mdetail-site-footer [data-fs-site-footer],
  body.tasu-mdetail-page:not(.tasu-mdetail-page--business-service) .tasu-mdetail-site-footer [data-fs-site-footer] {
    display: block !important;
    visibility: visible !important;
    height: auto !important;
    margin: 0 !important;
    padding: 1rem 1rem 0.75rem !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
}

/* 業務サービス詳細（スマホ）— メインカード上部の余白を縮小（PCは非対象） */
@media (max-width: 480px) {
  body.tasu-mdetail-page.biz-detail-page--business-service,
  body.tasu-mdetail-page.tasu-mdetail-page--business-service {
    padding-top: 0 !important;
    --tasu-mdetail-pad-x: 14px;
    --tasu-mdetail-section-gap: 16px;
    --tasu-mdetail-card-radius: 20px;
    --tasu-mdetail-card-pad: 18px;
    --tasu-mdetail-tabbar-h: 64px;
    --tasu-mdetail-footer-clearance: calc(var(--tasu-mdetail-bottom-stack, 140px) + 12px);
    --tasu-mdetail-shell-bottom-extra: 0px;
    --tasu-mdetail-bottom-extra: 0px;
  }

  body.tasu-mdetail-page.biz-detail-page--business-service.tasu-mdetail-ready,
  body.tasu-mdetail-page.tasu-mdetail-page--business-service.tasu-mdetail-ready {
    padding-bottom: 0 !important;
  }

  body.tasu-mdetail-page.biz-detail-page--business-service .tasu-mobile-shell-head,
  body.tasu-mdetail-page.biz-detail-page--business-service .tasu-mobile-page-head,
  body.tasu-mdetail-page.tasu-mdetail-page--business-service .tasu-mobile-shell-head,
  body.tasu-mdetail-page.tasu-mdetail-page--business-service .tasu-mobile-page-head {
    padding-top: calc(0.45rem + env(safe-area-inset-top, 0px));
    padding-bottom: 0.45rem;
    min-height: 48px;
    box-sizing: border-box;
  }

  body.tasu-mdetail-page.biz-detail-page--business-service .tasu-mobile-detail-shell,
  body.tasu-mdetail-page.biz-detail-page--business-service .tasu-mobile-detail-shell--active,
  body.tasu-mdetail-page.tasu-mdetail-page--business-service .tasu-mobile-detail-shell,
  body.tasu-mdetail-page.tasu-mdetail-page--business-service .tasu-mobile-detail-shell--active {
    margin-top: 0;
    padding-top: 0;
  }

  body.tasu-mdetail-page.biz-detail-page--business-service .tasu-mdetail-hero,
  body.tasu-mdetail-page.tasu-mdetail-page--business-service .tasu-mdetail-hero {
    margin-top: 14px;
    margin-bottom: 0;
    padding-top: 16px;
    padding-bottom: 18px;
  }

  body.tasu-mdetail-page.biz-detail-page--business-service .tasu-mdetail-sections,
  body.tasu-mdetail-page.tasu-mdetail-page--business-service .tasu-mdetail-sections {
    padding-top: 16px;
  }

  body.tasu-mdetail-page.biz-detail-page--business-service .tasu-mdetail-hero__chip,
  body.tasu-mdetail-page.tasu-mdetail-page--business-service .tasu-mdetail-hero__chip {
    margin-top: 0;
    margin-bottom: 0.35rem;
  }

  body.tasu-mdetail-page.biz-detail-page--business-service .tasu-mdetail-hero__media,
  body.tasu-mdetail-page.tasu-mdetail-page--business-service .tasu-mdetail-hero__media {
    margin-top: 0;
    margin-bottom: 0.5rem;
  }

  body.tasu-mdetail-page.biz-detail-page--business-service .tasu-mdetail-hero__title,
  body.tasu-mdetail-page.tasu-mdetail-page--business-service .tasu-mdetail-hero__title {
    margin-top: 0;
  }

  body.tasu-mdetail-page.biz-detail-page--business-service .tasu-mdetail-cta-dock,
  body.tasu-mdetail-page.tasu-mdetail-page--business-service .tasu-mdetail-cta-dock {
    padding-left: var(--tasu-mdetail-pad-x, 14px);
    padding-right: var(--tasu-mdetail-pad-x, 14px);
  }
}

/* 961px以上: スマホテンプレの影響を完全遮断（属性残留時の保険） */
@media (min-width: 961px) {
  body.tasu-mdetail-page,
  body.tasu-mdetail-ready {
    padding-bottom: revert !important;
  }

  [data-tasu-mdetail-pc-hidden] {
    display: revert !important;
    visibility: visible !important;
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    margin: revert !important;
    padding: revert !important;
    overflow: visible !important;
    pointer-events: auto !important;
    border: revert !important;
    box-shadow: revert !important;
    opacity: 1 !important;
  }

  .tasu-mobile-detail-shell,
  [data-tasu-mobile-detail-shell],
  .tasu-mdetail-cta-dock,
  .tasu-mdetail-fixed-cta,
  [data-tasu-mdetail-cta-dock],
  [data-tasu-mdetail-fixed-cta],
  [data-tasu-mdetail-hero] {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
    opacity: 0 !important;
  }
}
