/* ============================================
   BizManga HP — White + Orange Design
   bizmanga.com と同じ配色
   ============================================ */

/* ---------- Variables ---------- */
:root {
  --bm-accent: #EB5200;
  --bm-accent-rgb: 235, 82, 0;
  --bm-accent-light: #FFF9F4;
  --bm-accent-hover: #d44900;
  --bm-bg: #ffffff;
  --bm-bg-light: #FFF9F4;
  --bm-text: #333333;
  --bm-text-muted: #666666;
  --bm-text-light: #999999;
  --bm-border: #e0d6cc;
  --bm-card-bg: #ffffff;
  --bm-card-shadow: 0 2px 16px rgba(0,0,0,0.06);
  --bm-radius: 16px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* ---------- 日本語の改行制御（iOS/Android差を縮める） ---------- */
/*
 * line-break: strict     — 厳格な禁則処理（句読点が行頭に来るのを防ぐ）
 * word-break: keep-all   — 単語/文節を不要な位置で切らない
 * overflow-wrap: anywhere — それでも溢れる場合のみ任意位置で改行
 * text-wrap: pretty      — 行末の孤立文字（widow/orphan）を防いで均等化
 *                          （Chrome 117+ / Safari 17.4+。未対応ブラウザは無視）
 */
body, p, h1, h2, h3, h4, h5, h6, li, a, span, button, label {
  line-break: strict;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
h1, h2, h3, h4, h5, h6,
.bm-section-lead, .bm-section-title, .bm-news-link, .bm-hero-title,
.bm-hero-sub, .bm-cta-title, .bm-pricing-title {
  text-wrap: pretty;
}
/* overflow-x: hidden でスクロールバー幅起因の横溢れを防止
   clip は sticky を壊さないが古いWindows Edge で未サポートのため hidden を使用 */
html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  /* iOS Safari: 縦横回転時のテキスト自動拡大を抑止 */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
/* iOS Safari: 全要素の box-sizing と word-wrap デフォルト */
*, *::before, *::after { box-sizing: border-box; }
body {
  /* iOS の override 防止 */
  -webkit-text-size-adjust: 100%;
  /* 日本語の長い単語が flex/grid でオーバーフローしないように */
  word-break: normal;
  overflow-wrap: anywhere;
  line-break: strict;
}
body {
  font-family: 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', 'Yu Gothic', 'Meiryo',
    -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--bm-text);
  background: var(--bm-bg);
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.bm-container { max-width: 1100px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 24px); }
img { max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; transition: color 0.3s, opacity 0.3s; }

/* ============================================
   Header
   ============================================ */
.bm-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  height: 72px;
  transition: box-shadow 0.3s;
}
/* モバイルではbackdrop-filterを無効化(スクロールジャンク回避) */
@media (max-width: 768px) {
  .bm-header {
    background: rgba(255, 255, 255, 0.97);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
.bm-header.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}
.bm-header-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 16px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; /* ナビと言語切替/CTAが接触するのを防ぐ最低間隔 */
  height: 100%;
  min-width: 0; /* flex overflow 防止 */
}
.bm-logo-img { height: 58px; width: auto; flex-shrink: 0; }
.bm-nav {
  display: flex; align-items: center; gap: 24px;
  min-width: 0; flex-shrink: 1;
}
/* EN モードは英単語が日本語より幅広い (Services / Pricing / Column) ため、
   ナビ間隔と文字サイズをわずかに圧縮して言語スイッチ・CTAとの被りを回避 */
html[lang="en"] .bm-nav { gap: 18px; }
html[lang="en"] .bm-nav-link { font-size: 14px; letter-spacing: 0.01em; }
.bm-header-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.bm-nav-link {
  position: relative;
  font-size: 15px; font-weight: 600; color: var(--bm-text-muted);
  font-family: inherit;
  transition: color 0.3s;
  white-space: nowrap;
  padding: 8px 0;
}
/* 上線: 右から左へ伸びる */
.bm-nav-link::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--bm-accent);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
/* 下線: 左から右へ伸びる */
.bm-nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--bm-accent);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.bm-nav-link:hover { color: var(--bm-accent-hover); }
.bm-nav-link:hover::before,
.bm-nav-link:hover::after { transform: scaleX(1); }
.bm-nav-link.active { color: var(--bm-accent); }
.bm-nav-link.active::before,
.bm-nav-link.active::after { transform: scaleX(1); }
/* ===== ナビドロップダウン（Swiss Modernism 2.0） ===== */
.bm-nav-dropdown {
  position: relative;
  /* サブメニューへのホバーブリッジ: 24pxのデッドゾーン解消 */
  padding-bottom: 24px;
  margin-bottom: -24px;
}
.bm-nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 3px;
  cursor: pointer;
}
.bm-nav-dropdown-arrow {
  font-size: 10px;
  opacity: 0.5;
  transition: transform 0.25s ease;
}
.bm-nav-dropdown:hover .bm-nav-dropdown-arrow {
  transform: rotate(180deg);
}
/* グリッド厳格整列 / 装飾最小 / タイポ主導の階層 */
.bm-nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  min-width: 240px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 4px;
  box-shadow: 0 16px 32px -8px rgba(26, 26, 26, 0.12);
  padding: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: max-height 0.25s cubic-bezier(0.2, 0, 0, 1),
              opacity 0.2s cubic-bezier(0.2, 0, 0, 1),
              padding 0.25s cubic-bezier(0.2, 0, 0, 1),
              transform 0.25s cubic-bezier(0.2, 0, 0, 1);
  z-index: 1000;
}
/* Swiss style: セクションラベル */
.bm-nav-dropdown-menu::before {
  content: 'MENU';
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: rgba(26, 26, 26, 0.4);
  padding: 16px 24px 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  opacity: 0;
  transition: opacity 0.25s cubic-bezier(0.2, 0, 0, 1);
}
.bm-nav-dropdown:hover .bm-nav-dropdown-menu,
.bm-nav-dropdown:focus-within .bm-nav-dropdown-menu {
  max-height: 80vh;
  overflow-y: auto;
  opacity: 1;
  pointer-events: auto;
  padding: 0 0 8px;
  transform: translateX(-50%) translateY(0);
}
/* クリック後の強制閉じ */
.bm-nav-dropdown.bm-nav-dropdown-dismissed:hover .bm-nav-dropdown-menu,
.bm-nav-dropdown.bm-nav-dropdown-dismissed:focus-within .bm-nav-dropdown-menu {
  max-height: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  padding: 0 !important;
  transform: translateX(-50%) translateY(-4px) !important;
}
.bm-nav-dropdown:hover .bm-nav-dropdown-menu::before,
.bm-nav-dropdown:focus-within .bm-nav-dropdown-menu::before {
  opacity: 1;
}
/* アイテム: 厳格グリッド整列 + タイポ主導（親ナビ .bm-nav-link とフォント統一） */
.bm-nav-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  font-size: 15px;
  font-weight: 600;
  color: var(--bm-text-muted);
  font-family: inherit;
  white-space: nowrap;
  letter-spacing: 0;
  position: relative;
  transition: color 0.18s linear, background 0.18s linear;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}
.bm-nav-dropdown-item:last-child {
  border-bottom: none;
}
.bm-nav-dropdown-item:hover {
  color: var(--bm-accent);
  background: rgba(232, 85, 0, 0.03);
}
/* 右端矢印: 遷移先があることを示す */
.bm-nav-dropdown-item::after {
  content: '→';
  font-size: 16px;
  font-weight: 300;
  color: transparent;
  transition: color 0.18s linear, transform 0.18s linear;
  margin-left: 24px;
}
.bm-nav-dropdown-item:hover::after {
  color: var(--bm-accent);
  transform: translateX(2px);
}
.bm-nav-dropdown-item:focus-visible {
  outline: 2px solid var(--bm-accent);
  outline-offset: -2px;
}
.bm-nav-dropdown-item.active {
  color: var(--bm-accent);
  font-weight: 700;
  background: rgba(232, 85, 0, 0.06);
}
.bm-nav-dropdown-item.active::after {
  content: '→';
  font-size: 16px;
  font-weight: 300;
  color: var(--bm-accent);
}

/* ===== メガメニュー（3列ワイド・ペルソナ別グループ） ===== */
.bm-nav-megamenu-wrap {
  position: relative;
}
.bm-nav-megamenu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  width: min(900px, calc(100vw - 32px));
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 4px;
  box-shadow: 0 16px 32px -8px rgba(26, 26, 26, 0.12);
  padding: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: max-height 0.25s cubic-bezier(0.2, 0, 0, 1),
              opacity 0.2s cubic-bezier(0.2, 0, 0, 1),
              padding 0.25s cubic-bezier(0.2, 0, 0, 1),
              transform 0.25s cubic-bezier(0.2, 0, 0, 1);
  z-index: 1000;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.bm-nav-megamenu-wrap:hover .bm-nav-megamenu,
.bm-nav-megamenu-wrap:focus-within .bm-nav-megamenu {
  max-height: 80vh;
  opacity: 1;
  pointer-events: auto;
  padding: 24px 28px;
  gap: 24px;
  transform: translateX(-50%) translateY(0);
}
.bm-nav-megamenu-wrap.bm-nav-dropdown-dismissed:hover .bm-nav-megamenu,
.bm-nav-megamenu-wrap.bm-nav-dropdown-dismissed:focus-within .bm-nav-megamenu {
  max-height: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  padding: 0 !important;
  transform: translateX(-50%) translateY(-4px) !important;
}
.bm-nav-megamenu-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.bm-nav-megamenu-heading {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: rgba(26, 26, 26, 0.45);
  text-transform: uppercase;
  padding: 0 0 12px;
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bm-nav-megamenu-item {
  padding: 12px 14px;
  border-bottom: 0 !important;
  border-radius: 3px;
  font-size: 14.5px;
}
.bm-nav-megamenu-item::after {
  margin-left: 12px;
}
.bm-nav-megamenu-item:hover {
  background: rgba(232, 85, 0, 0.05);
}
.bm-nav-megamenu-item.active {
  background: rgba(232, 85, 0, 0.08);
}
@media (max-width: 880px) {
  .bm-nav-megamenu {
    grid-template-columns: 1fr;
    width: min(360px, calc(100vw - 24px));
  }
  .bm-nav-megamenu-col + .bm-nav-megamenu-col {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
  }
}

/* ===== TOPに戻るボタン ===== */
.bm-back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 9999;
  padding: 16px 48px;
  border-radius: 50px;
  background: var(--bm-accent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.1em;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, background 0.2s;
}
.bm-back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}
.bm-back-to-top:hover {
  background: var(--bm-accent-hover);
}

/* ===== 追従CTA（LINE + お問い合わせ）— slide+tooltip演出 ===== */
.bm-fab {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 9500;
  display: flex;
  gap: 12px;
  pointer-events: none;
}
/* 漫画ビューア（manga-modal）が開いている間は全ページでFABを隠す */
body:has(.manga-modal.open) .bm-fab { display: none !important; }
.bm-fab__btn {
  --bm-fab-w: 200px;
  --bm-fab-h: 52px;
  pointer-events: auto;
  position: relative;
  display: inline-block;
  width: var(--bm-fab-w);
  height: var(--bm-fab-h);
  border-radius: 50px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
  transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.25s ease;
  overflow: visible;
}
.bm-fab__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}
.bm-fab__wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
}
.bm-fab__text,
.bm-fab__icon-box {
  position: absolute;
  left: 0;
  right: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: top 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.bm-fab__text { top: 0; }
.bm-fab__icon-box { top: 100%; }
.bm-fab__btn:hover .bm-fab__text { top: -100%; }
.bm-fab__btn:hover .bm-fab__icon-box { top: 0; }
.bm-fab__icon { width: 26px; height: 26px; }

.bm-fab__btn--line { background: #06C755; }
.bm-fab__btn--line:hover { background: #05a847; }
.bm-fab__btn--contact { background: var(--bm-accent); }
.bm-fab__btn--contact:hover { background: var(--bm-accent-hover); }

/* Tooltip (PCホバー時に左側へ表示) */
.bm-fab__btn::before,
.bm-fab__btn::after {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
}
.bm-fab__btn::before {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 14px);
  transform: translateX(-50%);
  padding: 8px 14px;
  background: #333;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  border-radius: 6px;
  white-space: nowrap;
}
.bm-fab__btn::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #333;
}
.bm-fab__btn:hover::before,
.bm-fab__btn:hover::after {
  opacity: 1;
  visibility: visible;
}

/* モバイル: 画面下部の固定バー（スライド演出は無効化） */
@media (max-width: 768px) {
  .bm-fab {
    left: 0;
    right: 0;
    bottom: 0;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.06);
    gap: 8px;
  }
  .bm-fab__btn {
    flex: 1;
    width: auto;
    height: 48px;
    font-size: 13px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  }
  .bm-fab__btn:hover {
    transform: none;
  }
  /* スライドを無効化して テキストのみ表示 */
  .bm-fab__wrap {
    position: static;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
  }
  .bm-fab__text {
    position: static;
    height: auto;
  }
  .bm-fab__icon-box { display: none; }
  /* tooltipはモバイルで非表示 */
  .bm-fab__btn::before,
  .bm-fab__btn::after { display: none; }

  /* バーに重ならないよう back-to-top を上へ退避 */
  .bm-back-to-top {
    bottom: calc(72px + env(safe-area-inset-bottom));
    right: 16px;
    padding: 12px 24px;
    font-size: 14px;
  }
  /* フッターが隠れないよう余白確保 */
  body {
    padding-bottom: calc(60px + env(safe-area-inset-bottom));
  }
}

/* bm-header-right は上のルールで上書き済み */
.bm-nav-cta {
  display: inline-block;
  padding: 10px 24px;
  background: transparent;
  color: var(--bm-accent);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 50px;
  outline: 2px solid var(--bm-accent);
  outline-offset: 0;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: color 600ms ease, transform 500ms ease, outline-color 500ms ease, box-shadow 500ms ease;
}
.bm-nav-cta::before {
  content: "";
  position: absolute;
  left: -50px;
  top: 0;
  width: 0;
  height: 100%;
  background-color: var(--bm-accent);
  transform: skewX(45deg);
  z-index: -1;
  transition: width 800ms cubic-bezier(0.7, 0, 0.3, 1);
}
.bm-nav-cta:hover {
  color: #fff;
  transform: scale(1.06);
  outline-color: var(--bm-accent);
  box-shadow: 4px 5px 17px -4px rgba(var(--bm-accent-rgb), 0.5);
}
.bm-nav-cta:hover::before { width: 260%; }

/* LINE相談ボタン（ヘッダー右・お問い合わせの右隣） */
.bm-nav-cta--line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #06C755;
  outline-color: #06C755;
}
.bm-nav-cta--line::before { background-color: #06C755; }
.bm-nav-cta--line:hover {
  color: #fff;
  outline-color: #06C755;
  box-shadow: 4px 5px 17px -4px rgba(6, 199, 85, 0.5);
}
.bm-nav-cta-line-icon { flex-shrink: 0; }

/* 言語切替ボタン */
.bm-lang-switch {
  display: flex;
}
.bm-lang-btn {
  width: 64px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  font-family: inherit;
  letter-spacing: 0.04em;
  cursor: pointer;
  border: 1.5px solid var(--bm-accent);
  transition: background 0.25s ease, color 0.25s ease;
  background: transparent;
  color: var(--bm-accent);
}
.bm-lang-btn:first-child {
  border-right: 0.75px solid var(--bm-accent);
}
.bm-lang-btn:last-child {
  border-left: 0.75px solid var(--bm-accent);
}
.bm-lang-btn.active {
  background: var(--bm-accent);
  color: #ffffff;
}
.bm-lang-btn:not(.active):hover {
  background: var(--bm-accent-light);
}

/* Hamburger */
.bm-hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  width: 44px; height: 44px;
  padding: 8px;
  background: none; border: none; cursor: pointer;
  justify-content: center; align-items: center;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.bm-hamburger span {
  display: block; width: 22px; height: 2px;
  background: #333; border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.bm-hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.bm-hamburger.active span:nth-child(2) { opacity: 0; }
.bm-hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================
   Hero (集英社スタイル マーキーカルーセル)
   ============================================ */
.bm-hero {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  background: #000 url('../material/images/strength/hp-material-1.webp') center center / cover no-repeat;
}

/* --- 作品カルーセル背景 (集英社スタイル マーキー) --- */
.bm-hero-works-bg {
  position: absolute;
  inset: 0;
  padding-top: 72px;
  overflow: hidden;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(2px, 0.3vw, 5px);
  transform-style: preserve-3d;
  transform: perspective(1200px) scale(1.08);
  transition: transform 0.15s ease-out;
}
.bm-hero-works-row {
  display: flex;
  gap: 4px;
  width: max-content;
}
/* マーキーは集合完了後にJSで開始 */
/* PC(1025px+): 3行 / タブレット(769-1024): 4行 / スマホ(〜768): 5行 */
.bm-hero-works-row--1 { animation: none; }
.bm-hero-works-row--2 { animation: none; }
.bm-hero-works-row--3 { animation: none; }
.bm-hero-works-row--4 { animation: none; display: none; }
.bm-hero-works-row--5 { animation: none; display: none; }
@media (max-width: 1024px) {
  .bm-hero-works-row--4 { display: flex; }
}
@media (max-width: 768px) {
  .bm-hero-works-row--4 { display: flex; }
  .bm-hero-works-row--5 { display: flex; }
}
.hero-marquee-go .bm-hero-works-row--1 { animation: bmMarqueeLeft 30s linear infinite; }
.hero-marquee-go .bm-hero-works-row--2 { animation: bmMarqueeRight 35s linear infinite; }
.hero-marquee-go .bm-hero-works-row--3 { animation: bmMarqueeLeft 28s linear infinite; }
.hero-marquee-go .bm-hero-works-row--4 { animation: bmMarqueeRight 32s linear infinite; }
.hero-marquee-go .bm-hero-works-row--5 { animation: bmMarqueeLeft 26s linear infinite; }

@keyframes bmMarqueeLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes bmMarqueeRight {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* 爆発→集合イントロ */
.bm-hero-works-cover.explode-init {
  opacity: 0;
  transform: translate(var(--ex-x), var(--ex-y)) rotate(var(--ex-r)) scale(0.4);
}
.bm-hero-works-cover.explode-gather {
  opacity: 1;
  transform: translate(0, 0) rotate(0deg) scale(1);
  transition: all var(--ex-dur) cubic-bezier(0.16, 1, 0.3, 1) var(--ex-delay);
}

.bm-hero-works-cover {
  flex-shrink: 0;
  width: clamp(100px, 11vw, 180px);
  height: clamp(140px, 15.4vw, 252px);
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: linear-gradient(135deg, #2a2a2a 0%, #3a3a3a 100%);
  position: relative;
}
/* 表紙ローダー: img未ロード時に表示 */
.bm-hero-works-cover .bm-cover-spinner {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotateZ(45deg);
  z-index: 2;
  perspective: 1000px;
  border-radius: 50%;
  width: 80px;
  height: 80px;
  color: rgba(255,255,255,0.4);
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.bm-hero-works-cover.img-loaded .bm-cover-spinner {
  opacity: 0;
}
.bm-hero-works-cover .bm-cover-spinner::before,
.bm-hero-works-cover .bm-cover-spinner::after {
  content: '';
  display: block;
  position: absolute;
  top: 0; left: 0;
  width: inherit; height: inherit;
  border-radius: 50%;
  transform: rotateX(70deg);
  animation: bmLoaderSpin 1s linear infinite;
}
.bm-hero-works-cover .bm-cover-spinner::after {
  color: #EB5200;
  transform: rotateY(70deg);
  animation-delay: 0.4s;
}
@keyframes bmLoaderSpin {
  0%, 100% { box-shadow: .2em 0 0 0 currentcolor; }
  12% { box-shadow: .2em .2em 0 0 currentcolor; }
  25% { box-shadow: 0 .2em 0 0 currentcolor; }
  37% { box-shadow: -.2em .2em 0 0 currentcolor; }
  50% { box-shadow: -.2em 0 0 0 currentcolor; }
  62% { box-shadow: -.2em -.2em 0 0 currentcolor; }
  75% { box-shadow: 0 -.2em 0 0 currentcolor; }
  87% { box-shadow: .2em -.2em 0 0 currentcolor; }
}
.bm-hero-works-cover:hover {
  transform: scale(1.12);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 0 20px rgba(235,82,0,0.4);
  z-index: 3;
}
.bm-hero-works-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* --- オーバーレイ --- */
.bm-hero-overlay {
  position: absolute; inset: 0;
  z-index: 2;
  pointer-events: none;
  background: none;
}

/* --- 集中線（マンガ的インパクト） --- */
.bm-hero-speedlines {
  position: absolute; inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  animation: bmSpeedlinesIn 0.6s ease-out 0.8s forwards;
}
.bm-hero-speedlines::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 200vmax; height: 200vmax;
  transform: translate(-50%, -50%);
  background: repeating-conic-gradient(
    rgba(235, 82, 0, 0.06) 0deg 1.5deg,
    transparent 1.5deg 6deg
  );
  mask-image: radial-gradient(ellipse 30% 25% at 50% 50%, transparent 60%, black 100%);
  -webkit-mask-image: radial-gradient(ellipse 30% 25% at 50% 50%, transparent 60%, black 100%);
}
@keyframes bmSpeedlinesIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

/* --- ロゴ背後のアンビエントグロー --- */
.bm-hero-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(300px, 50vw, 700px);
  height: clamp(200px, 30vw, 450px);
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(235,82,0,0.25) 0%, rgba(235,82,0,0.08) 40%, transparent 70%);
  opacity: 0;
  animation: bmGlowIn 2s ease 0.6s forwards;
  filter: blur(30px);
}
.bm-hero-glow::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(255,120,30,0.15) 0%, transparent 60%);
  animation: bmGlowPulse 4s ease-in-out infinite;
}
@keyframes bmGlowIn {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
@keyframes bmGlowPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.15); }
}

/* --- 中央ロゴ --- */
.bm-hero-center {
  position: absolute; inset: 0;
  z-index: 3;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  pointer-events: none;
  padding-bottom: 40px;
}
.bm-hero-tagline {
  position: absolute;
  left: 50%;
  top: calc(50% + clamp(50px, 6vw, 90px));
  transform: translateX(-50%);
  z-index: 4;
  font-size: clamp(18px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: 0.14em;
  display: flex;
  justify-content: center;
  color: #fff;
  white-space: nowrap;
}
.bm-hero-tagline .tl-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: bmCharWaveIn 0.6s cubic-bezier(0.16,1,0.3,1) var(--d) forwards;
  /* Wave shine per character */
  background: linear-gradient(
    90deg,
    #fff 0%,
    #fff 30%,
    #ffbc5c 42%,
    #ffd080 50%,
    #ffbc5c 58%,
    #fff 70%,
    #fff 100%
  );
  background-size: 800% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 16px rgba(0,0,0,0.8)) drop-shadow(0 0 8px rgba(0,0,0,0.5));
}
.bm-hero-tagline .tl-char.wave-active {
  animation: bmCharWaveIn 0.6s cubic-bezier(0.16,1,0.3,1) var(--d) forwards,
             bmCharShine 8s ease-in-out var(--wd) infinite;
}
@keyframes bmCharWaveIn {
  0% { opacity: 0; transform: translateY(20px); }
  60% { transform: translateY(-4px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes bmCharShine {
  0% { background-position: 100% 50%; }
  100% { background-position: -100% 50%; }
}
.bm-hero-logo {
  width: clamp(280px, 40vw, 650px);
  height: auto;
  opacity: 0;
  filter: drop-shadow(0 4px 32px rgba(0,0,0,0.6)) drop-shadow(0 0 60px rgba(235,82,0,0.3));
  animation: bmHeroLogoIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.8s forwards;
}
@keyframes bmHeroLogoIn {
  0% { opacity: 0; transform: scale(1.3); filter: drop-shadow(0 0 80px rgba(235,82,0,0.8)) brightness(2); }
  30% { opacity: 1; filter: drop-shadow(0 0 40px rgba(235,82,0,0.5)) brightness(1.3); }
  60% { transform: scale(0.97); }
  100% { opacity: 1; transform: scale(1); filter: drop-shadow(0 4px 32px rgba(0,0,0,0.6)) drop-shadow(0 0 60px rgba(235,82,0,0.3)); }
}

/* --- SCROLL indicator --- */
.bm-hero-scroll-hint {
  position: absolute;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  color: #fff;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-align: center;
  opacity: 0;
  animation: bmFadeInUp 1s ease 1.5s forwards;
}
.bm-hero-scroll-line {
  display: block;
  width: 1px; height: 40px;
  background: #fff;
  margin: 8px auto 0;
  animation: bmScrollLine 1.5s ease-in-out infinite;
}
@keyframes bmFadeInUp {
  0% { opacity: 0; transform: translateX(-50%) translateY(20px); }
  100% { opacity: 0.7; transform: translateX(-50%) translateY(0); }
}
@keyframes bmScrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Buttons */
.bm-btn {
  display: inline-block; padding: 14px 32px;
  font-size: 15px; font-weight: 700;
  border-radius: 50px; border: 2px solid transparent;
  transition: all 0.3s; cursor: pointer;
  text-align: center;
}
.bm-btn--primary {
  background: var(--bm-accent); color: #fff;
  border-color: var(--bm-accent);
}
.bm-btn--primary:hover { background: var(--bm-accent-hover); border-color: var(--bm-accent-hover); transform: translateY(-2px); }
.bm-btn--outline {
  background: transparent; color: var(--bm-accent);
  border-color: var(--bm-accent);
}
.bm-btn--outline:hover { background: var(--bm-accent); color: #fff; }
.bm-btn--white {
  background: #fff; color: var(--bm-accent);
  border-color: #fff;
  font-weight: 800;
}
.bm-btn--white:hover { background: #f5f5f5; transform: translateY(-2px); }


/* ============================================
   Section共通
   ============================================ */
.bm-section-title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 900; text-align: center;
  color: #222; margin-bottom: 12px;
}
.bm-section-title em {
  font-style: normal; color: var(--bm-accent);
}
.bm-section-sub {
  font-size: 15px; color: var(--bm-text-muted);
  text-align: center; margin-bottom: 48px;
}

/* ============================================
   About
   ============================================ */
.bm-about {
  background: var(--bm-bg);
  padding: 100px 0 88px;
  text-align: left;
  border-bottom: 1px solid var(--bm-border);
}
.bm-about .bm-container {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 72px;
  align-items: center;
  max-width: 1180px;
}
.bm-about-heading {
  font-size: clamp(24px, 3.2vw, 38px);
  font-weight: 900;
  color: var(--bm-accent);
  line-height: 1.6;
  letter-spacing: 0.03em;
  margin-bottom: 0;
  position: relative;
  display: inline-block;
}
.bm-about-heading::after {
  content: '';
  display: block;
  width: 48px;
  height: 4px;
  background: var(--bm-accent);
  border-radius: 2px;
  margin: 24px 0 0;
}
.bm-about-text {
  font-size: clamp(15px, 1.6vw, 18px);
  color: #444;
  line-height: 2.0;
  max-width: none;
  margin: 0;
  padding-top: 8px;
  letter-spacing: 0.02em;
}
/* モバイル: 従来の中央縦積みレイアウトに戻す */
@media (max-width: 768px) {
  .bm-about {
    padding: 80px 0 72px;
    text-align: center;
  }
  .bm-about .bm-container {
    display: block;
  }
  .bm-about-heading {
    font-size: clamp(26px, 4.2vw, 44px);
    line-height: 1.55;
    margin-bottom: 32px;
  }
  .bm-about-heading::after {
    margin: 20px auto 0;
  }
  .bm-about-text {
    font-size: clamp(15px, 1.8vw, 19px);
    max-width: 720px;
    margin: 0 auto;
    padding-top: 0;
  }
}

/* ============================================
   What is BizManga?
   ============================================ */
.bm-whatis {
  background: var(--bm-bg-light);
  padding: 72px 0 64px;
  text-align: center;
  border-bottom: 1px solid var(--bm-border);
}
.bm-whatis-heading {
  font-size: clamp(26px, 4.2vw, 44px);
  font-weight: 900;
  color: #222;
  margin-bottom: 28px;
  text-align: center;
}
.bm-accent-text {
  color: var(--bm-accent);
  font-weight: 900;
}
.bm-whatis-heading::after {
  content: '';
  display: block;
  width: 48px;
  height: 4px;
  background: var(--bm-accent);
  border-radius: 2px;
  margin: 18px auto 0;
}
.bm-whatis-text {
  font-size: clamp(15px, 1.8vw, 19px);
  color: #444;
  line-height: 2.0;
  max-width: 720px;
  margin: 0 auto;
  letter-spacing: 0.02em;
}

/* ============================================
   News (ContentsX同様)
   ============================================ */
.bm-news {
  background: var(--bm-bg);
  padding: 48px 0 40px;
  border-bottom: 1px solid var(--bm-border);
}
.bm-news-header {
  display: flex; align-items: center;
  justify-content: space-between; margin-bottom: 24px;
}
.bm-news-heading {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900; color: #222; letter-spacing: 0.04em;
}
.bm-news-more {
  font-size: 13px; font-weight: 600;
  color: var(--bm-accent); transition: opacity 0.3s;
}
.bm-news-more:hover { opacity: 0.7; }
.bm-news-list { list-style: none; padding: 0; margin: 0; }
.bm-news-item {
  display: flex; align-items: flex-start; gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--bm-border);
  min-width: 0;
}
.bm-news-item:last-child { border-bottom: none; }
.bm-news-thumb {
  flex-shrink: 0;
  width: 200px;
  aspect-ratio: 5 / 3;        /* 統一感のため枠固定（200×120） */
  overflow: hidden;
  border-radius: 6px;
  background: transparent;    /* 縦長画像の余白を背景と同化させる */
  display: block;
  text-decoration: none;
  align-self: flex-start;
}
.bm-news-thumb img {
  width: 100%; height: 100%;
  object-fit: contain;        /* 全体表示モード: 縦長は左右余白で全部見える */
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
  background: transparent;
}
/* トリミングモード: 親枠を埋め、クロップ中心点を中央に配置 */
.bm-news-thumb-crop {
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  display: block;
  transition: transform 0.4s ease;
}
a.bm-news-thumb:hover img,
a.bm-news-thumb:hover .bm-news-thumb-crop { transform: scale(1.05); }
.bm-news-body {
  display: flex; flex-direction: column; gap: 8px;
  min-width: 0; flex: 1;
}
.bm-news-meta {
  display: flex; align-items: center; gap: 12px;
  flex-wrap: wrap;
}
.bm-news-date {
  font-size: 13px; font-weight: 700;
  color: var(--bm-accent); white-space: nowrap;
}
.bm-news-tag {
  font-size: 11px; font-weight: 700;
  color: #222; background: var(--bm-bg-light);
  border: 1px solid var(--bm-border);
  padding: 3px 10px; border-radius: 3px; white-space: nowrap;
}
.bm-news-link {
  font-size: 15px; font-weight: 600; color: #222;
  line-height: 1.5;
  transition: color 0.3s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-decoration: none;
}
.bm-news-link:hover { color: var(--bm-accent); }

/* ============================================
   コラムセクション (ホーム横スクロール + 一覧ページ)
   ============================================ */
.bm-column-section {
  padding: 64px 0 56px;
  background:
    radial-gradient(ellipse 100% 60% at 50% 100%, #faf8f5 0%, #fff 80%);
}
.bm-column-header {
  display: flex; align-items: center;
  justify-content: space-between; margin-bottom: 28px;
}
.bm-column-all {
  font-size: 13px; font-weight: 600;
  color: var(--bm-accent); transition: opacity 0.3s;
  white-space: nowrap;
}
.bm-column-all:hover { opacity: 0.7; }
.bm-column-cta-row {
  display: flex; justify-content: center;
  margin-top: 36px;
}
.bm-column-all-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 36px;
  background: var(--bm-accent); color: #fff;
  border-radius: 100px;
  font-size: 15px; font-weight: 700; letter-spacing: 0.04em;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(232, 85, 0, 0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.bm-column-all-btn:hover {
  background: #d44a00;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(232, 85, 0, 0.36);
}
@media (max-width: 768px) {
  .bm-column-cta-row { margin-top: 28px; }
  .bm-column-all-btn { padding: 13px 28px; font-size: 14px; }
}
.bm-column-scroll {
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  margin: 0 -20px; padding: 0 20px;
}
.bm-column-scroll::-webkit-scrollbar { display: none; }
.bm-column-grid {
  display: flex;
  gap: 20px;
  min-width: max-content;
}
/* ============================================
   コラムカード (Premium Refined)
   ui-ux-pro-max: Bento Grid — 角丸16px, ホバーscale(1.02)+影拡大
   frontend-design: 多層シャドウ, 画像ズーム, カテゴリ塗りバッジ
   design: --bm-accent 維持, 8px リズム
   ============================================ */
.bm-column-card {
  display: flex; flex-direction: column;
  width: 280px; min-width: 280px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none; color: inherit;
  cursor: pointer;
  box-shadow:
    0 1px 3px rgba(0,0,0,0.04),
    0 4px 12px -4px rgba(0,0,0,0.06);
  transition:
    transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 0.35s;
}
.bm-column-card:hover {
  transform: translateY(-6px);
  border-color: rgba(232, 85, 0, 0.15);
  box-shadow:
    0 4px 8px rgba(0,0,0,0.04),
    0 20px 48px -12px rgba(26,26,26,0.14);
}

/* 画像 */
.bm-column-card-img {
  position: relative;
  width: 100%; aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, #f5f0eb 0%, #ece6df 100%);
}
.bm-column-card-img img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.bm-column-card:hover .bm-column-card-img img {
  transform: scale(1.06);
}

/* ボディ */
.bm-column-card-body {
  padding: 18px 20px 22px;
  display: flex; flex-direction: column; gap: 10px;
  flex: 1;
}

/* カテゴリバッジ: 塗り背景 */
.bm-column-card-cat {
  display: inline-block; align-self: flex-start;
  font-size: 10px; font-weight: 800;
  color: #fff;
  background: var(--bm-accent, #e85500);
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 4px;
  border: none;
}

/* タイトル */
.bm-column-card-title {
  font-size: 16px; font-weight: 900;
  color: #1a1a1a; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
  transition: color 0.25s;
}
.bm-column-card:hover .bm-column-card-title {
  color: var(--bm-accent, #e85500);
}

/* 抜粋 */
.bm-column-card-excerpt {
  font-size: 13px; color: #777;
  line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}

/* 日付 */
.bm-column-card-date {
  font-size: 12px; font-weight: 700;
  color: var(--bm-accent, #e85500);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
  margin-top: auto;
  padding-top: 4px;
  border-top: 1px solid rgba(0,0,0,0.04);
}

/* reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .bm-column-card { transition: none; }
  .bm-column-card:hover { transform: none; }
  .bm-column-card-img img { transition: none; }
  .bm-column-card:hover .bm-column-card-img img { transform: none; }
}

/* 一覧ページ */
.bm-column-page {
  padding-top: 140px; padding-bottom: 80px;
  min-height: 60vh;
  background: radial-gradient(ellipse 100% 60% at 50% 100%, #faf8f5 0%, #fff 70%);
}
.bm-column-page-heading {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900; color: #1a1a1a;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.bm-column-page-sub {
  font-size: 14px; color: #888;
  margin-bottom: 44px;
  letter-spacing: 0.02em;
}
.bm-column-page-loading {
  text-align: center; padding: 60px 0;
  color: #888; font-size: 14px;
}
.bm-column-grid--page {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  min-width: unset !important;
}
.bm-column-grid--page .bm-column-card {
  width: auto; min-width: unset;
}

@media (max-width: 1024px) {
  .bm-column-grid--page {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .bm-column-section { padding: 48px 0 40px; }
  .bm-column-card { width: 260px; min-width: 260px; }
  .bm-column-grid--page {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .bm-column-grid--page .bm-column-card { width: auto; }
}

/* ============================================
   Editorial Magazine Layout (2026-04-20)
   ui-ux-pro-max: Swiss Modernism 2.0 / Newsletter Content-First
   frontend-design: multi-layer shadow, image zoom
   design: BizManga orange accent preserved + editorial mono
   ============================================ */
.bm-column-hero-strip {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  margin-top: 68px; /* ヘッダー分 */
  background: #1a0f05;
}
.bm-column-hero-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
}
/* 方向性scrim: 左下スポットライト型で中央の主役を避け左側だけ暗く */
.bm-column-hero-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(17, 10, 5, 0.78) 0%,
    rgba(17, 10, 5, 0.55) 25%,
    rgba(17, 10, 5, 0.18) 50%,
    rgba(17, 10, 5, 0) 68%
  );
  pointer-events: none;
  z-index: 1;
}

.bm-column-hero-overlay {
  position: absolute;
  left: max(32px, 5vw);
  bottom: 56px;
  max-width: min(820px, 60vw);
  z-index: 2;
  color: #fff;
}
.bm-column-hero-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 20px;
  font-family: 'Public Sans', 'Noto Sans JP', sans-serif;
}
.bm-column-hero-title {
  font-family: 'Noto Serif JP', serif;
  font-weight: 900;
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1.22;
  letter-spacing: -0.015em;
  color: #fff;
  margin: 0;
}
/* 各行を独立ブロック化し、途中折り返しを禁止 */
.bm-column-hero-title span {
  display: block;
  white-space: nowrap;
}
/* <br> は span の display:block で不要になるため非表示 */
.bm-column-hero-title br {
  display: none;
}
.bm-column-hero-divider {
  width: 52px;
  height: 3px;
  background: var(--bm-accent, #e85500);
  margin-top: 24px;
}

.bm-column-masthead {
  padding: 48px 0 32px;
  background: #fff;
}
.bm-column-lead {
  font-size: 17px;
  line-height: 1.9;
  color: #444;
  max-width: 640px;
  margin: 0;
  letter-spacing: 0.01em;
}

/* フィルターチップ */
.bm-column-filter {
  position: sticky;
  top: 68px;
  z-index: 30;
  background: #fff;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  padding: 14px 0;
  margin-bottom: 40px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.bm-column-filter-list {
  display: flex;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.bm-column-filter-list::-webkit-scrollbar { display: none; }
.bm-column-filter-chip {
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid #e4e4e7;
  background: #fff;
  color: #3f3f46;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.bm-column-filter-chip:hover {
  border-color: var(--bm-accent, #e85500);
  color: var(--bm-accent, #e85500);
}
.bm-column-filter-chip.is-active {
  background: var(--bm-accent, #e85500);
  border-color: var(--bm-accent, #e85500);
  color: #fff;
}
.bm-column-filter-chip-count {
  font-size: 11px;
  opacity: 0.7;
  margin-left: 6px;
  font-weight: 500;
}

/* Featured記事 */
.bm-column-featured {
  padding: 0 0 60px;
  background: #fff;
}
.bm-column-featured-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  align-items: center;
}
.bm-column-featured-img {
  position: relative;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  background: #f5f0eb;
}
.bm-column-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.bm-column-featured-card:hover .bm-column-featured-img img {
  transform: scale(1.04);
}
.bm-column-featured-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 0;
}
.bm-column-featured-label {
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  color: #888;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0 0 14px;
  font-family: 'Public Sans', 'Noto Sans JP', sans-serif;
}
.bm-column-featured-date {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.05em;
}
.bm-column-featured-cat {
  display: inline-block;
  align-self: flex-start;
  background: var(--bm-accent, #e85500);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 18px;
}
.bm-column-featured-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 900;
  line-height: 1.55;
  letter-spacing: -0.005em;
  margin: 0 0 20px;
  color: #111;
  transition: color 0.25s;
  /* balance より pretty の方が日本語長文では自然 */
  text-wrap: pretty;
}
.bm-column-featured-card:hover .bm-column-featured-title {
  color: #333;
}
.bm-column-featured-card:hover .bm-column-featured-read {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.bm-column-featured-excerpt {
  font-size: 15px;
  line-height: 1.85;
  color: #555;
  margin: 0 0 24px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bm-column-featured-read {
  color: var(--bm-accent, #e85500);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* カテゴリバッジのカラーマップ (data-category属性で切替) */
.bm-column-card-cat,
.bm-column-featured-cat {
  background: var(--bm-accent, #e85500);
}
.bm-column-card[data-category="LP最適化"] .bm-column-card-cat,
.bm-column-featured-card[data-category="LP最適化"] .bm-column-featured-cat { background: #e85500; }
.bm-column-card[data-category="BtoB戦略"] .bm-column-card-cat,
.bm-column-featured-card[data-category="BtoB戦略"] .bm-column-featured-cat { background: #1f1f1f; }
.bm-column-card[data-category="プロット・制作"] .bm-column-card-cat,
.bm-column-featured-card[data-category="プロット・制作"] .bm-column-featured-cat { background: #8b5cf6; }
.bm-column-card[data-category="SNS・採用"] .bm-column-card-cat,
.bm-column-featured-card[data-category="SNS・採用"] .bm-column-featured-cat { background: #10b981; }
.bm-column-card[data-category="効果・科学"] .bm-column-card-cat,
.bm-column-featured-card[data-category="効果・科学"] .bm-column-featured-cat { background: #0ea5e9; }
.bm-column-card[data-category="ジャンル"] .bm-column-card-cat,
.bm-column-featured-card[data-category="ジャンル"] .bm-column-featured-cat { background: #f59e0b; }

/* カード拡張: 読了時間 */
.bm-column-card-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: auto;
  padding-top: 4px;
  border-top: 1px solid rgba(0,0,0,0.04);
  font-size: 12px;
  color: #888;
  font-variant-numeric: tabular-nums;
}
.bm-column-card-readtime {
  color: #666;
  font-weight: 600;
}
/* readtime の絵文字は除去。「分」のサフィックスで読了時間と分かる */
.bm-column-card-meta .bm-column-card-date {
  margin-top: 0;
  padding-top: 0;
  border: none;
  color: var(--bm-accent, #e85500);
  font-weight: 700;
  margin-left: auto;
}

/* フィルター中のカード非表示（JSでクラス付与） */
.bm-column-card.is-filtered-out {
  display: none !important;
}

/* Editorial 用のページ全体コンテナ調整 */
.bm-column-page {
  padding-top: 0;
  padding-bottom: 80px;
}
.bm-column-page .bm-column-page-heading {
  display: none; /* Editorial masthead が代替 */
}

/* モバイル */
@media (max-width: 1024px) {
  .bm-column-featured-card {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .bm-column-featured-body {
    padding: 0 0 8px;
  }
}
@media (max-width: 768px) {
  .bm-column-hero-strip {
    height: 420px;
    margin-top: 60px;
  }
  .bm-column-hero-strip img {
    object-position: center 15%;
  }
  /* モバイルは画像全体が小さいのでscrimを縦方向メインに切り替え */
  .bm-column-hero-strip::before {
    background: linear-gradient(
      to top,
      rgba(17, 10, 5, 0.88) 0%,
      rgba(17, 10, 5, 0.6) 40%,
      rgba(17, 10, 5, 0.15) 70%,
      rgba(17, 10, 5, 0) 100%
    );
  }
  .bm-column-hero-overlay {
    left: 20px;
    right: 20px;
    bottom: 28px;
    max-width: none;
  }
  .bm-column-hero-eyebrow {
    font-size: 11px;
    letter-spacing: 0.22em;
    margin-bottom: 12px;
  }
  .bm-column-hero-title {
    font-size: clamp(26px, 7.2vw, 40px);
    line-height: 1.28;
  }
  /* モバイルは画面幅が狭いので nowrap を解除して自動折り返し許可 */
  .bm-column-hero-title span {
    white-space: normal;
  }
  .bm-column-hero-divider {
    width: 40px;
    margin-top: 18px;
  }
  .bm-column-masthead {
    padding: 32px 0 24px;
  }
  .bm-column-lead {
    font-size: 15px;
    line-height: 1.8;
  }
  .bm-column-filter {
    top: 60px;
    padding: 10px 0;
    margin-bottom: 28px;
  }
  .bm-column-filter-list {
    padding: 0 20px;
    margin: 0 -20px;
  }
  .bm-column-filter-chip {
    font-size: 12px;
    padding: 6px 14px;
  }
  .bm-column-featured-img {
    aspect-ratio: 16 / 9;
  }
  .bm-column-featured-title {
    font-size: 22px;
  }
}

/* ============================================
   新作漫画 (ContentsX同様 横スクロール)
   ============================================ */
/* ---------- Gallery / Carousel ---------- */
.bm-gallery {
  position: relative;
  overflow: hidden;
  padding: 72px 0 96px;
  background: #fff;
}
.bm-gallery-bg {
  display: none;
}
.bm-gallery-bg img {
  display: none;
}
.bm-gallery-overlay {
  display: none;
}
.bm-gallery-inner {
  position: relative; z-index: 2;
}
.bm-gallery-header {
  display: flex; align-items: center;
  justify-content: space-between; margin-bottom: 36px;
}
.bm-gallery-heading {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900; color: #1a1a1a;
}
/* 上部メニューの「お問い合わせ」CTA(.bm-nav-cta) と同じピル+スイープ塗りエフェクト */
.bm-gallery-more {
  display: inline-block;
  padding: 10px 24px;
  background: transparent;
  color: var(--bm-accent);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 50px;
  outline: 2px solid var(--bm-accent);
  outline-offset: 0;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  text-decoration: none;
  transition: color 600ms ease, transform 500ms ease, outline-color 500ms ease, box-shadow 500ms ease;
}
.bm-gallery-more::before {
  content: "";
  position: absolute;
  left: -50px;
  top: 0;
  width: 0;
  height: 100%;
  background-color: var(--bm-accent);
  transform: skewX(45deg);
  z-index: -1;
  transition: width 800ms cubic-bezier(0.7, 0, 0.3, 1);
}
.bm-gallery-more:hover {
  color: #fff;
  transform: scale(1.06);
  outline-color: var(--bm-accent);
  box-shadow: 4px 5px 17px -4px rgba(var(--bm-accent-rgb), 0.5);
}
.bm-gallery-more:hover::before { width: 260%; }

/* タブ（全て / Webtoon / マンガ型） */
.bm-gallery-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.bm-gallery-tab {
  appearance: none;
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #333;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.15s ease;
  white-space: nowrap;
}
.bm-gallery-tab:hover {
  border-color: var(--bm-accent);
  color: var(--bm-accent);
}
.bm-gallery-tab.is-active {
  background: var(--bm-accent);
  border-color: var(--bm-accent);
  color: #fff;
}
.bm-gallery-tab.is-active:hover {
  color: #fff;
  transform: none;
}
@media (max-width: 640px) {
  .bm-gallery-tab { font-size: 13px; padding: 9px 16px; }
}

/* 空表示 */
.bm-gallery-empty {
  text-align: center;
  color: #666;
  font-size: 14px;
  padding: 48px 16px;
}

/* カルーセル外枠 */
.bm-gallery-carousel {
  overflow: hidden;
  position: relative;
}

/* 無限ループ用トラック */
.bm-gallery-track {
  display: flex; gap: 28px;
  will-change: transform;
}

/* カード */
.bm-gallery-card {
  flex: 0 0 220px;
  width: 220px;
  min-width: 220px;
  max-width: 220px;
  cursor: pointer;
  transition: transform 0.35s ease, opacity 0.35s ease;
}
.bm-gallery-card:hover {
  transform: translateY(-6px) scale(1.03);
}
.bm-gallery-card-cover {
  width: 100%;
  height: 293px;
  border-radius: 8px; overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  background: #f0f0f0;
}
.bm-gallery-card-cover img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  display: block;
}
.bm-gallery-card-title {
  font-size: 13px; font-weight: 600;
  color: #333; margin-top: 12px;
  line-height: 1.4; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ============================================
   お客様の声 (横スクロールカルーセル)
   ============================================ */
.bm-testimonials {
  padding: 80px 0;
  background: var(--bm-bg);
}
.bm-testimonials-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 32px;
}
.bm-testimonials-header .bm-section-title,
.bm-testimonials-header .bm-section-sub { margin-bottom: 4px; }
.bm-testimonials-all {
  flex-shrink: 0;
  background: none;
  border: 1.5px solid var(--bm-accent);
  border-radius: 8px;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 700;
  color: var(--bm-accent);
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
  white-space: nowrap;
  margin-top: 8px;
  text-decoration: none;
  display: inline-block;
}
.bm-testimonials-all:hover {
  background: var(--bm-accent);
  color: #fff;
}

/* 横スクロール */
.bm-testimonials-scroll {
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0 -24px;
  padding: 0 24px;
}
.bm-testimonials-scroll::-webkit-scrollbar { display: none; }
.bm-testimonials-grid {
  display: flex;
  gap: 24px;
  padding-bottom: 8px;
}

/* カード（横スクロール用固定幅） */
.bm-testimonial-card {
  flex: 0 0 280px;
  background: var(--bm-card-bg);
  border-radius: var(--bm-radius);
  overflow: hidden;
  box-shadow: var(--bm-card-shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}
.bm-testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}
.bm-testimonial-cover {
  width: 100%; aspect-ratio: 4/3;
  overflow: hidden; background: #f5f5f5;
}
.bm-testimonial-cover img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  transition: transform 0.3s;
}
.bm-testimonial-card:hover .bm-testimonial-cover img {
  transform: scale(1.05);
}
.bm-testimonial-tag {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  color: var(--bm-accent);
  padding: 6px 16px 0;
}
.bm-testimonial-title {
  font-size: 15px; font-weight: 800; color: #222;
  padding: 6px 16px 0; line-height: 1.5;
}
.bm-testimonial-text {
  font-size: 13px; color: var(--bm-text-muted);
  line-height: 1.7; padding: 8px 16px 16px;
}
.bm-testimonial-author { display: none; }

/* ---------- 全てを見るパネル（制作事例ページ風） ---------- */
.bm-tm-all-panel {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 800;
  background: var(--bm-bg);
  overflow-y: auto;
  transform: translateY(-100%);
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.bm-tm-all-panel.active {
  transform: translateY(0);
}
.bm-tm-all-panel-header {
  position: sticky; top: 0; z-index: 2;
  background: #fff;
  border-bottom: 1px solid var(--bm-border);
  padding: 20px 0;
}
.bm-tm-all-panel-header .bm-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.bm-tm-all-panel-title {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 900;
  color: #222;
}
.bm-tm-all-panel-close {
  background: none;
  border: 1.5px solid var(--bm-border);
  color: #666;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.bm-tm-all-panel-close:hover {
  background: #f5f5f5;
  border-color: #999;
  color: #222;
}
.bm-tm-all-body {
  padding: 40px 0 80px;
}
.bm-tm-all-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 1024px) {
  .bm-tm-all-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .bm-tm-all-grid { grid-template-columns: 1fr; }
}

/* ---------- お客様の声 詳細モーダル ---------- */
.bm-tm-modal {
  position: fixed; inset: 0;
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.bm-tm-modal.active {
  opacity: 1; pointer-events: auto;
}
.bm-tm-modal-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
}
.bm-tm-modal-content {
  position: relative;
  background: #fff;
  border-radius: 20px;
  max-width: 720px; width: 92%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 12px 60px rgba(0,0,0,0.25);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}
.bm-tm-modal.active .bm-tm-modal-content {
  transform: translateY(0);
}
.bm-tm-modal-close {
  position: absolute; top: 12px; right: 16px;
  z-index: 2;
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none; font-size: 24px; line-height: 1;
  width: 36px; height: 36px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s;
}
.bm-tm-modal-close:hover { background: rgba(0,0,0,0.8); }
.bm-tm-hero {
  width: 100%; height: 280px; overflow: hidden;
  border-radius: 20px 20px 0 0;
}
.bm-tm-hero img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.bm-tm-inner {
  padding: 28px 32px 36px;
}
.bm-tm-tag {
  display: inline-block;
  font-size: 12px; font-weight: 700;
  color: var(--bm-accent);
  border: 1px solid var(--bm-accent);
  border-radius: 4px;
  padding: 2px 10px;
  margin-bottom: 12px;
}
.bm-tm-heading {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 900; color: #222;
  line-height: 1.5;
  margin-bottom: 20px;
}
/* WPエディタの本文 */
.bm-tm-content {
  font-size: 15px; color: #444;
  line-height: 1.9;
}
.bm-tm-content p { margin-bottom: 1em; }
.bm-tm-content img {
  max-width: 100%; height: auto;
  border-radius: 8px; margin: 16px 0;
}
.bm-tm-content h2, .bm-tm-content h3 {
  font-weight: 700; margin: 1.5em 0 0.5em;
  color: #222;
}
.bm-tm-content blockquote {
  margin: 24px 0;
  padding: 20px 24px;
  background: rgba(235, 82, 0, 0.04);
  border-left: 4px solid var(--bm-accent);
  font-style: italic;
  color: #555;
  border-radius: 4px;
}

/* CTA ボタン群 */
.bm-tm-cta {
  display: flex;
  gap: 12px;
  margin: 36px 0 28px;
  flex-wrap: wrap;
}
.bm-tm-cta-btn {
  flex: 1;
  min-width: 180px;
  padding: 16px 24px;
  background: var(--bm-accent);
  color: #fff;
  text-align: center;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border-radius: 50px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(235, 82, 0, 0.2);
}
.bm-tm-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(235, 82, 0, 0.3);
}
.bm-tm-cta-btn--ghost {
  background: #fff;
  color: var(--bm-accent);
  border: 2px solid var(--bm-accent);
  box-shadow: none;
}
.bm-tm-cta-btn--ghost:hover {
  background: rgba(235, 82, 0, 0.04);
  box-shadow: none;
}

/* シェア */
.bm-tm-share {
  padding: 20px 0 24px;
  border-top: 1px solid #eee;
  margin-bottom: 24px;
}
.bm-tm-share-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #888;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.bm-tm-share-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.bm-tm-share-btns a,
.bm-tm-share-btns button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  height: 36px;
  padding: 0 16px;
  background: #f5f5f5;
  color: #333;
  border: none;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s;
}
.bm-tm-share-btns a:hover,
.bm-tm-share-btns button:hover {
  background: rgba(235, 82, 0, 0.08);
  color: var(--bm-accent);
}

/* 関連事例 */
.bm-tm-related {
  padding-top: 24px;
  border-top: 1px solid #eee;
}
.bm-tm-related-title {
  font-size: 14px;
  font-weight: 800;
  color: #333;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}
.bm-tm-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.bm-tm-related-card {
  display: block;
  text-decoration: none;
  color: #333;
  transition: transform 0.2s;
}
.bm-tm-related-card:hover {
  transform: translateY(-2px);
}
.bm-tm-related-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 8px;
}
.bm-tm-related-card span {
  display: block;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .bm-tm-hero { height: 200px; }
  .bm-tm-inner { padding: 20px 20px 28px; }
  .bm-tm-cta { flex-direction: column; }
  .bm-tm-cta-btn { min-width: 100%; }
  .bm-tm-related-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   漫画家紹介
   ============================================ */
.bm-artists {
  padding: 80px 0;
  background: var(--bm-bg-light);
}
.bm-artists-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.bm-artist-card {
  background: var(--bm-card-bg);
  border-radius: var(--bm-radius);
  padding: 32px 20px;
  text-align: center;
  box-shadow: var(--bm-card-shadow);
  transition: transform 0.3s;
}
.bm-artist-card:hover { transform: translateY(-4px); }
.bm-artist-avatar {
  width: 100px; height: 100px;
  border-radius: 50%; overflow: hidden;
  margin: 0 auto 16px;
  border: 3px solid var(--bm-accent);
}
.bm-artist-avatar img {
  width: 100%; height: 100%; object-fit: cover;
}
.bm-artist-name {
  font-size: 16px; font-weight: 800; color: #222;
  margin-bottom: 4px;
}
.bm-artist-genre {
  font-size: 12px; font-weight: 600;
  color: var(--bm-accent); margin-bottom: 12px;
}
.bm-artist-bio {
  font-size: 13px; color: var(--bm-text-muted);
  line-height: 1.7;
}

/* (旧 Works Preview / Flow セクションは削除済み) */

/* ============================================
   料金比較セクション (ホーム)
   ============================================ */
.bm-pricing {
  padding: 80px 0;
  background: #fff;
}

/* 吹き出し */
.bm-pricing-balloon {
  display: flex; align-items: flex-end; justify-content: center;
  gap: 16px; margin: 0 auto 40px;
  max-width: 700px;
}
.bm-pricing-balloon-text {
  position: relative;
  background: var(--bm-accent-light);
  border: 2px solid var(--bm-accent);
  border-radius: 20px;
  padding: 20px 32px;
  font-size: 16px; font-weight: 700; line-height: 1.8;
  color: var(--bm-text);
  text-align: center;
}
.bm-pricing-balloon-text strong {
  color: var(--bm-accent);
}
.bm-pricing-balloon-text::after {
  content: '';
  position: absolute; right: -18px; bottom: 20px;
  width: 0; height: 0;
  border-left: 18px solid var(--bm-accent);
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}
.bm-pricing-balloon-chara {
  flex-shrink: 0;
}
.bm-pricing-balloon-chara img {
  width: 80px; height: 80px; object-fit: contain;
}

/* 比較テーブル */
.bm-pricing-table-wrap {
  max-width: 800px; margin: 0 auto;
  border: 3px solid var(--bm-accent);
  border-radius: 16px;
  overflow: hidden;
}
.bm-pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.bm-pricing-table thead {}
.bm-pricing-th-label {
  width: 20%; background: #fff;
  padding: 16px;
}
.bm-pricing-th-other {
  width: 40%; background: #f0f0f0;
  padding: 16px;
  font-size: 20px; font-weight: 900;
  color: #333; text-align: center;
}
.bm-pricing-th-bm {
  width: 40%; background: var(--bm-accent-light);
  padding: 16px;
  font-size: 20px; font-weight: 900;
  color: var(--bm-accent); text-align: center;
  position: relative;
}
.bm-pricing-th-bm::after {
  content: '';
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 60px; height: 3px; background: var(--bm-accent);
  border-radius: 2px;
}
.bm-pricing-table tbody tr {
  border-top: 1px solid #e0e0e0;
}
.bm-pricing-label {
  padding: 20px 16px;
  font-size: 16px; font-weight: 900;
  color: #333; text-align: center;
  background: #fafafa;
  border-right: 1px solid #e0e0e0;
}
.bm-pricing-other {
  padding: 20px 16px;
  text-align: center;
  color: #555; font-weight: 700;
  background: #f9f9f9;
  border-right: 1px solid #e0e0e0;
}
.bm-pricing-bm {
  padding: 20px 16px;
  text-align: center;
  color: var(--bm-accent); font-weight: 700;
  background: var(--bm-accent-light);
}
.bm-pricing-bm strong {
  font-size: 17px; font-weight: 900;
}
.bm-pricing-note {
  font-size: 11px; font-weight: 500;
  color: var(--bm-text-muted);
  display: block; margin-top: 4px;
}

/* CTA下ボタン */
.bm-pricing-cta {
  text-align: center; margin-top: 40px;
}

/* ============================================
   CTA
   ============================================ */
.bm-cta {
  position: relative;
  z-index: 2;
  background: linear-gradient(135deg, var(--bm-accent) 0%, var(--bm-accent-hover) 100%);
  overflow: clip;
}
.bm-cta-inner {
  display: flex;
  align-items: flex-end;
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 40px 0;
  gap: 24px;
}
.bm-cta-content {
  flex: 1;
  min-width: 0;
  padding-bottom: 48px;
}
.bm-cta h2 {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 900;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.3;
}
.bm-cta-sub {
  display: inline-block;
  font-size: clamp(13px, 1.5vw, 15px);
  font-weight: 700;
  color: var(--bm-accent);
  background: #fff;
  padding: 4px 16px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.bm-cta-desc {
  font-size: 15px;
  color: rgba(255,255,255,0.9);
  margin-bottom: 28px;
  line-height: 1.6;
}
/* --- Dual Buttons --- */
.bm-cta-buttons {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
/* ===== CTAボタン共通: スライド切替 + tooltip ===== */
.bm-cta-btn {
  --bm-btn-h: 56px;
  --bm-btn-w: 220px;
  width: var(--bm-btn-w);
  height: var(--bm-btn-h);
  padding: 0;
  gap: 0;
  display: inline-block;
  position: relative;
  overflow: visible;
  border-radius: 50px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
  transition: background 0.3s, box-shadow 0.3s, transform 0.25s;
}
.bm-cta-btn .bm-btn-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
}
.bm-cta-btn .bm-btn-text,
.bm-cta-btn .bm-btn-icon {
  position: absolute;
  left: 0;
  right: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  transition: top 0.5s cubic-bezier(0.16,1,0.3,1);
}
.bm-cta-btn .bm-btn-text { top: 0; }
.bm-cta-btn .bm-btn-icon { top: 100%; }
.bm-cta-btn:hover .bm-btn-text { top: -100%; }
.bm-cta-btn:hover .bm-btn-icon { top: 0; }
.bm-cta-btn .bm-btn-icon svg { width: 28px; height: 28px; }
/* Tooltip */
.bm-cta-btn::before,
.bm-cta-btn::after {
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  pointer-events: none;
}
.bm-cta-btn::before {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(100% + 22px);
  padding: 8px 14px;
  background: #333;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  border-radius: 6px;
  white-space: nowrap;
}
.bm-cta-btn::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(100% + 12px);
  border: 6px solid transparent;
  border-top-color: #333;
}
.bm-cta-btn:hover::before,
.bm-cta-btn:hover::after {
  opacity: 1;
  visibility: visible;
}
.bm-cta-btn:hover::before { bottom: calc(100% + 14px); }
.bm-cta-btn:hover::after  { bottom: calc(100% + 4px); }

/* お問い合わせボタン: 白背景+オレンジ文字 */
.bm-cta-btn--contact {
  background: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.bm-cta-btn--contact .bm-btn-text,
.bm-cta-btn--contact .bm-btn-icon { color: var(--bm-accent); }
.bm-cta-btn--contact:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.2);
}

/* LINEボタン: 緑 */
.bm-cta-btn--line {
  background: #06C755;
  box-shadow: 0 4px 16px rgba(6,199,85,0.3);
}
.bm-cta-btn--line .bm-btn-text,
.bm-cta-btn--line .bm-btn-icon { color: #fff; }
.bm-cta-btn--line:hover {
  background: #059a44;
  box-shadow: 0 12px 32px rgba(6,199,85,0.45);
  transform: translateY(-2px);
}
/* --- Trust Badges --- */
.bm-cta-badges {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.bm-cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.95);
}
.bm-cta-badge svg {
  flex-shrink: 0;
}
/* --- Character Image --- */
.bm-cta-character {
  flex-shrink: 0;
  width: 240px;
  align-self: flex-end;
}
.bm-cta-character img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.15));
  margin-bottom: 0;
}
/* --- CTA without character (other pages) --- */
.bm-cta-inner:not(:has(.bm-cta-character)) {
  justify-content: center;
  text-align: center;
}
.bm-cta-inner:not(:has(.bm-cta-character)) .bm-cta-content {
  padding-bottom: 0;
}
.bm-cta-inner:not(:has(.bm-cta-character)) .bm-cta-buttons,
.bm-cta-inner:not(:has(.bm-cta-character)) .bm-cta-badges {
  justify-content: center;
}
/* --- CTA Mobile --- */
@media (max-width: 768px) {
  .bm-cta-inner {
    flex-direction: column;
    text-align: center;
    padding: 48px 20px;
    gap: 24px;
  }
  .bm-cta-buttons {
    justify-content: center;
  }
  .bm-cta-badges {
    justify-content: center;
  }
  .bm-cta-character {
    display: none;
  }
  .bm-cta-btn {
    padding: 14px 24px;
    font-size: 14px;
  }
}

/* ============================================
   Footer
   ============================================ */
.bm-footer {
  position: relative;
  z-index: 2;
  padding: 48px 0 24px;
  background: #f8f4f0;
  border-top: 1px solid var(--bm-border);
}
.bm-footer-inner {
  display: flex; justify-content: space-between;
  align-items: flex-start; gap: 40px;
  margin-bottom: 32px;
}
.bm-footer-brand .bm-logo-img { height: 28px; margin-bottom: 12px; }
.bm-footer-company {
  font-size: 13px; color: var(--bm-text-muted);
  margin-bottom: 4px;
}
.bm-footer-address {
  font-size: 12px; color: var(--bm-text-light);
}
.bm-footer-links {
  display: flex; gap: 24px; flex-wrap: wrap;
}
.bm-footer-links a {
  font-size: 13px; color: var(--bm-text-muted);
  transition: color 0.3s;
}
.bm-footer-links a:hover { color: var(--bm-accent); }
.bm-footer-bottom {
  display: flex; justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--bm-border);
}
.bm-footer-bottom p {
  font-size: 12px; color: var(--bm-text-light);
}
.bm-footer-parent {
  font-size: 12px; color: var(--bm-accent);
}
.bm-footer-parent:hover { text-decoration: underline; }

/* ============================================
   Manga Viewer (Modal) — simple scroll viewer
   ============================================ */
.bm-viewer-overlay {
  display: none;
  position: fixed; inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.92);
  align-items: center; justify-content: center;
}
.bm-viewer-overlay.active { display: flex; }
.bm-viewer {
  position: relative;
  width: 100%; height: 100%;
  overflow: hidden;
}
.bm-viewer-close {
  position: fixed; top: 16px; right: 16px;
  z-index: 10001;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(var(--bm-accent-rgb), 0.85);
  border: none;
  color: #fff; font-size: 24px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s;
}
.bm-viewer-close:hover {
  background: var(--bm-accent);
}
.bm-viewer-scroll {
  width: 100%; height: 100%;
  overflow-y: auto;
  display: flex; flex-direction: column;
  align-items: center;
  padding: 60px 0 40px;
}
.bm-viewer-scroll img {
  width: 100%; max-width: 720px;
  display: block;
}

/* ============================================
   Works Page (works.html)
   ============================================ */
.bm-works-page {
  padding: 120px 0 80px;
  min-height: 80vh;
}

/* Category Filter */
.bm-category-filter {
  display: flex; gap: 10px; flex-wrap: wrap;
  justify-content: center;
  margin: 0 0 36px;
  position: sticky; top: 80px;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 16px 0;
}
/* === マンガ吹き出し風 (works.css と統一) === */
.bm-filter-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 24px;
  border: 2px solid #1a1a1a;
  background: #fff;
  color: #1a1a1a;
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", serif;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 3px 3px 0 #1a1a1a;
  transition: transform 0.16s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.16s ease,
              background 0.16s ease,
              color 0.16s ease;
  margin-bottom: 12px;
}
.bm-filter-btn::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 26px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 12px 0 0;
  border-color: #1a1a1a transparent transparent transparent;
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.bm-filter-btn::before {
  content: "";
  position: absolute;
  bottom: -7px;
  left: 28px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 8px 9px 0 0;
  border-color: #fff transparent transparent transparent;
  z-index: 1;
  transition: border-color 0.16s ease;
}
.bm-filter-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 #1a1a1a;
  background: #fff9f4;
}
.bm-filter-btn:hover::after {
  transform: translateY(2px) rotate(-3deg);
}
.bm-filter-btn.active {
  background: var(--bm-accent);
  color: #fff;
  transform: translate(0, 0);
  box-shadow: 4px 4px 0 #1a1a1a;
}
.bm-filter-btn.active::after {
  transform: translateY(0) rotate(0);
  animation: bmFilterTailWag 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.bm-filter-btn.active::before {
  border-color: var(--bm-accent) transparent transparent transparent;
}
@keyframes bmFilterTailWag {
  0%   { transform: translateY(-4px) rotate(8deg); }
  50%  { transform: translateY(2px) rotate(-4deg); }
  100% { transform: translateY(0) rotate(0); }
}
.bm-filter-btn .filter-count {
  font-family: "Hiragino Sans", sans-serif;
  font-size: 11px;
  font-weight: 800;
  background: #1a1a1a;
  color: #fff;
  padding: 2px 8px;
  border-radius: 10px;
  letter-spacing: 0.04em;
  min-width: 24px;
  text-align: center;
  transition: background 0.16s ease, color 0.16s ease;
}
.bm-filter-btn.active .filter-count {
  background: #fff;
  color: var(--bm-accent);
}
.bm-filter-btn:hover .filter-count {
  background: var(--bm-accent);
  color: #fff;
}
.bm-filter-btn.active:hover .filter-count {
  background: #fff;
  color: var(--bm-accent);
}

/* Works Grid — book.asahi.com 風カードレイアウト */
.bm-works-grid {
  display: flex; flex-direction: column;
  gap: 0; max-width: 900px; margin: 0 auto;
}
.bm-works-card {
  display: flex; gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--bm-border);
  cursor: pointer;
  transition: background 0.2s;
}
.bm-works-card:first-child { border-top: 1px solid var(--bm-border); }
.bm-works-card:hover { background: var(--bm-bg-light); }
/* 静的SEOカードは <a class="bm-works-card-link"> で包まれるため、
   内側を flex 化して動的カード（<a> 無し）と同じ横並びレイアウトに揃える。 */
.bm-works-card > .bm-works-card-link {
  display: flex;
  flex: 1;
  gap: 24px;
  width: 100%;
  text-decoration: none;
  color: inherit;
}
.bm-works-card > .bm-works-card-link:hover { color: inherit; }
.bm-works-card-thumb {
  flex: 0 0 130px;
  height: 180px;
  position: relative; overflow: hidden;
  border-radius: 8px;
}
.bm-works-card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  border-radius: 8px;
}
.bm-works-card-badge {
  position: absolute; top: 8px; left: 8px;
  background: var(--bm-accent);
  color: #fff; font-size: 11px; font-weight: 700;
  padding: 3px 8px; border-radius: 4px;
}
.bm-works-card-body {
  flex: 1; display: flex; flex-direction: column;
  justify-content: center; gap: 8px; min-width: 0;
}
.bm-works-card-category {
  display: inline-block; font-size: 13px; font-weight: 700;
  color: var(--bm-accent);
}
.bm-works-card-title {
  font-size: 18px; font-weight: 900; line-height: 1.5;
  color: #222; margin: 0;
}
.bm-works-card-desc {
  font-size: 14px; color: var(--bm-text-muted); line-height: 1.6;
  margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.bm-works-card-meta {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px;
}
.bm-works-card-media {
  display: inline-flex; align-items: center;
  font-size: 12px; color: var(--bm-text-muted);
  background: var(--bm-bg-light);
  padding: 3px 10px; border-radius: 4px;
  border: 1px solid var(--bm-border);
}

/* Works Pagination */
.bm-works-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 16px;
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  user-select: none;
}
.bm-works-pagination .pg-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  background: #f5f0eb;
  border: 1px solid #e0d6cc;
  color: #666;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.bm-works-pagination .pg-btn:first-child { border-radius: 6px 0 0 6px; }
.bm-works-pagination .pg-btn:last-child { border-radius: 0 6px 6px 0; }
.bm-works-pagination .pg-btn:hover { background: #ebe4db; color: #333; }
.bm-works-pagination .pg-btn.active {
  background: var(--bm-accent);
  border-color: var(--bm-accent);
  color: #fff;
  font-weight: 800;
}
.bm-works-pagination .pg-btn.disabled {
  opacity: 0.35;
  pointer-events: none;
}
.bm-works-pagination .pg-ellipsis {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  background: #f5f0eb;
  border: 1px solid #e0d6cc;
  color: #aaa;
  font-size: 13px;
}
@media (max-width: 768px) {
  .bm-works-pagination .pg-btn { min-width: 34px; height: 34px; font-size: 12px; padding: 0 8px; }
  .bm-works-pagination .pg-ellipsis { min-width: 34px; height: 34px; }
}

/* ============================================
   FAQ Page
   ============================================ */
.bm-faq-page {
  padding: 48px 0 80px;
  min-height: 80vh;
}
.bm-faq-list {
  max-width: 800px; margin: 48px auto 0;
}
.bm-faq-item {
  border-bottom: 1px solid var(--bm-border);
}
.bm-faq-q {
  display: flex; justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  font-size: 16px; font-weight: 700;
  color: #222; cursor: pointer;
  transition: color 0.3s;
  background: none; border: none;
  width: 100%; text-align: left;
}
.bm-faq-q:hover { color: var(--bm-accent); }
.bm-faq-q::after {
  content: '+';
  font-size: 24px; color: var(--bm-accent);
  flex-shrink: 0; margin-left: 16px;
  transition: transform 0.3s;
}
.bm-faq-item.open .bm-faq-q::after { transform: rotate(45deg); }
.bm-faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}
.bm-faq-item.open .bm-faq-a {
  max-height: 500px; padding: 0 0 20px;
}
.bm-faq-a p {
  font-size: 15px; color: var(--bm-text-muted);
  line-height: 1.8;
}

/* ============================================
   Pricing Page
   ============================================ */
.bm-pricing-page {
  padding: 16px 0 80px;
  min-height: 80vh;
}

/* ===== 詳細を見る 折りたたみトリガー ===== */
.bm-pricing-reveal {
  display: flex;
  justify-content: center;
  padding: 32px 24px 64px;
}
.bm-pricing-reveal-btn {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 18px 40px 14px;
  background: transparent;
  border: 2px solid var(--bm-accent, #e85500);
  border-radius: 999px;
  color: var(--bm-accent, #e85500);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  min-height: 72px;
  min-width: 240px;
  -webkit-tap-highlight-color: transparent;
}
.bm-pricing-reveal-btn::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 999px;
  border: 1px solid rgba(232, 85, 0, 0.2);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.6s ease;
}
.bm-pricing-reveal-btn:hover {
  background: var(--bm-accent, #e85500);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -8px rgba(232, 85, 0, 0.4);
}
.bm-pricing-reveal-btn:hover::before {
  opacity: 1;
  transform: scale(1.05);
}
.bm-pricing-reveal-btn:active {
  transform: translateY(0);
}
.bm-pricing-reveal-btn:focus-visible {
  outline: 3px solid rgba(232, 85, 0, 0.4);
  outline-offset: 4px;
}
.bm-pricing-reveal-label {
  font-size: 16px;
  line-height: 1;
}
.bm-pricing-reveal-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  animation: bmPricingArrowBob 2s ease-in-out infinite;
}
@keyframes bmPricingArrowBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}
/* 展開後は矢印を180度回転 + ボブアニメ停止 */
.bm-pricing-reveal-btn[aria-expanded="true"] .bm-pricing-reveal-arrow {
  animation: none;
  transform: rotate(180deg);
  transition: transform 0.25s ease;
}
/* 詳細セクション: 展開時のフェードイン */
.bm-pricing-details:not([hidden]) {
  animation: bmPricingDetailsFadeIn 0.28s ease-out;
}
@keyframes bmPricingDetailsFadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* A11y: prefers-reduced-motion 尊重 */
@media (prefers-reduced-motion: reduce) {
  .bm-pricing-reveal-arrow,
  .bm-pricing-reveal-btn,
  .bm-pricing-details:not([hidden]) {
    animation: none !important;
    transition: none !important;
  }
  .bm-pricing-reveal-btn:hover {
    transform: none;
  }
}

/* ============================================
   Pricing Details (Editorial Japanese Premium)
   frontend-design skill: BOLD aesthetic direction
   ============================================ */
.bm-pricing-details {
  padding: 56px 0 104px !important;
  background:
    linear-gradient(180deg, #fff 0%, #faf8f5 100%);
}
.bm-pricing-details .bm-container {
  max-width: 1080px;
}

/* セクションヘッダー: 装飾番号 + タイトル + リード */
.bm-pricing-section-head {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 28px;
  align-items: start;
  padding: 80px 0 40px;
  position: relative;
}
.bm-pricing-section-head::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 56px;
  height: 3px;
  background: var(--bm-accent, #e85500);
}
.bm-pricing-section-head:first-of-type {
  padding-top: 32px;
}
.bm-pricing-section-head:first-of-type::before {
  top: -16px;
}
.bm-pricing-section-num {
  grid-row: 1 / span 2;
  font-size: clamp(56px, 9vw, 96px);
  font-weight: 900;
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 2px var(--bm-accent, #e85500);
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  font-family: 'Helvetica Neue', 'Arial', sans-serif;
  align-self: center;
}
.bm-pricing-section-title {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 900;
  color: #1a1a1a;
  line-height: 1.25;
  letter-spacing: -0.005em;
  margin: 0 0 10px;
}
.bm-pricing-section-sub {
  font-size: 15px;
  color: #666;
  line-height: 1.7;
  max-width: 52ch;
}

/* セクション内グリッドの上マージンをリセット（section-headで十分な余白） */
.bm-pricing-details .bm-plan-grid,
.bm-pricing-details .bm-option-grid,
.bm-pricing-details .bm-included-grid,
.bm-pricing-details .bm-color-grid {
  margin-top: 0;
}

/* --- プランカード: 黒ベタヘッダー廃止、タイポのみで階層 --- */
.bm-pricing-details .bm-plan-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 8px;
}
.bm-pricing-details .bm-plan-card {
  background: #fff;
  border: 1px solid rgba(26, 26, 26, 0.1);
  border-radius: 4px;
  padding: 36px 24px 32px;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.bm-pricing-details .bm-plan-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -20px rgba(26, 26, 26, 0.15);
  border-color: rgba(232, 85, 0, 0.25);
}
.bm-pricing-details .bm-plan-card--recommend {
  border: 2px solid var(--bm-accent, #e85500);
  box-shadow: 0 20px 40px -20px rgba(232, 85, 0, 0.3);
  transform: scale(1.03);
  background:
    linear-gradient(180deg, rgba(232, 85, 0, 0.04) 0%, #fff 50%);
}
.bm-pricing-details .bm-plan-card--recommend:hover {
  transform: scale(1.03) translateY(-3px);
}
.bm-pricing-details .bm-plan-badge {
  top: -14px;
  background: var(--bm-accent, #e85500);
  color: #fff;
  border: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 6px 18px;
  border-radius: 999px;
  box-shadow: 0 4px 14px -4px rgba(232, 85, 0, 0.5);
}
.bm-pricing-details .bm-plan-header {
  background: transparent;
  color: #999;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  padding: 0 0 14px;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  margin-bottom: 24px;
}
.bm-pricing-details .bm-plan-header--accent {
  background: transparent;
  color: var(--bm-accent, #e85500);
}
.bm-pricing-details .bm-plan-body {
  padding: 0;
}
.bm-pricing-details .bm-plan-price {
  font-size: 14px;
  color: #1a1a1a;
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
}
.bm-pricing-details .bm-plan-num {
  font-size: clamp(40px, 5.5vw, 64px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #1a1a1a;
}
.bm-pricing-details .bm-plan-price--accent .bm-plan-num {
  color: var(--bm-accent, #e85500);
}
.bm-pricing-details .bm-plan-unit {
  font-size: 14px;
  font-weight: 700;
  color: #666;
}
.bm-pricing-details .bm-plan-note {
  margin-top: 12px;
  font-size: 12px;
  color: #888;
  font-variant-numeric: tabular-nums;
}

/* フットノート */
.bm-pricing-details .bm-pricing-footnote {
  text-align: center;
  margin-top: 28px;
  font-size: 12px;
  color: #999;
  letter-spacing: 0.03em;
}

/* --- オプションカード: 上辺カラー帯 + ミニマル --- */
.bm-pricing-details .bm-option-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.bm-pricing-details .bm-option-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-top: 3px solid var(--bm-accent, #e85500);
  border-radius: 0 0 4px 4px;
  padding: 28px 16px 24px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.bm-pricing-details .bm-option-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -12px rgba(26, 26, 26, 0.15);
}
.bm-pricing-details .bm-option-name {
  font-size: 15px;
  font-weight: 900;
  color: #1a1a1a;
  letter-spacing: 0.01em;
}
.bm-pricing-details .bm-option-sub {
  font-size: 11px;
  color: #999;
  margin-top: 2px;
}
.bm-pricing-details .bm-option-price {
  margin-top: 18px;
  font-size: 19px;
  font-weight: 900;
  color: var(--bm-accent, #e85500);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

/* --- 含まれるもの: 装飾ダッシュ + タイポ主導 --- */
.bm-pricing-details .bm-included-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.bm-pricing-details .bm-included-item {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0;
  padding: 28px 32px 28px 24px;
  gap: 22px;
  align-items: flex-start;
}
.bm-pricing-details .bm-included-item:nth-child(odd) {
  border-right: 1px solid rgba(0, 0, 0, 0.08);
}
.bm-pricing-details .bm-included-icon {
  width: auto;
  height: auto;
  background: transparent;
  border-radius: 0;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: var(--bm-accent, #e85500);
  font-variant-numeric: tabular-nums;
  padding-top: 2px;
}
.bm-pricing-details .bm-included-icon::before {
  content: '—';
  margin-right: 6px;
  color: rgba(232, 85, 0, 0.35);
}
.bm-pricing-details .bm-included-title {
  font-size: 16px;
  font-weight: 900;
  color: #1a1a1a;
  margin-bottom: 6px;
  letter-spacing: 0;
}
.bm-pricing-details .bm-included-desc {
  font-size: 13px;
  color: #666;
  line-height: 1.75;
}

/* --- カラーリング: ミニカラーサンプル付き --- */
.bm-pricing-details .bm-color-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.bm-pricing-details .bm-color-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 4px;
  padding: 32px 24px 28px;
  text-align: left;
  position: relative;
  overflow: hidden;
}
.bm-pricing-details .bm-color-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -20px rgba(26, 26, 26, 0.15);
}
.bm-color-swatch {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
}
.bm-color-swatch::before,
.bm-color-swatch::after {
  content: '';
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.06);
}
.bm-color-swatch--full::before { background: #e85500; }
.bm-color-swatch--full::after { background: #3b82f6; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06); }
.bm-color-swatch--full {
  position: relative;
}
.bm-color-swatch--full {
  /* 3色目をboxshadowで追加 */
}
.bm-color-swatch--pastel::before { background: #ffcfb5; }
.bm-color-swatch--pastel::after { background: #cfe0ff; }
.bm-color-swatch--mono::before { background: #1a1a1a; }
.bm-color-swatch--mono::after { background: #e8e8e8; }
.bm-pricing-details .bm-color-label {
  font-size: 16px;
  font-weight: 900;
  color: #1a1a1a;
  margin-bottom: 10px;
  letter-spacing: 0;
}
.bm-pricing-details .bm-color-desc {
  font-size: 13px;
  color: #666;
  line-height: 1.75;
}

/* モバイル調整 */
@media (max-width: 768px) {
  .bm-pricing-details {
    padding: 40px 0 72px !important;
  }
  .bm-pricing-section-head {
    grid-template-columns: auto 1fr;
    column-gap: 18px;
    padding: 56px 0 28px;
  }
  .bm-pricing-section-head:first-of-type {
    padding-top: 24px;
  }
  .bm-pricing-details .bm-plan-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .bm-pricing-details .bm-plan-card--recommend {
    transform: none;
  }
  .bm-pricing-details .bm-plan-card--recommend:hover {
    transform: translateY(-3px);
  }
  .bm-pricing-details .bm-option-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .bm-pricing-details .bm-included-grid {
    grid-template-columns: 1fr;
  }
  .bm-pricing-details .bm-included-item:nth-child(odd) {
    border-right: none;
  }
  .bm-pricing-details .bm-color-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== 強みページ: まとめると! (CONCLUSION) ===== */
.str-summary {
  padding: 96px 0 120px;
  background:
    linear-gradient(180deg, rgba(232, 85, 0, 0.03) 0%, rgba(255, 255, 255, 0) 100%),
    #faf8f5;
  border-top: 1px solid rgba(232, 85, 0, 0.1);
}
.str-summary-header {
  text-align: center;
  margin-bottom: 56px;
}
.str-summary-kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--bm-accent, #e85500);
  padding: 6px 14px;
  border: 1px solid var(--bm-accent, #e85500);
  border-radius: 999px;
  margin-bottom: 20px;
}
.str-summary-title {
  font-size: clamp(32px, 5.5vw, 52px);
  font-weight: 900;
  color: #1a1a1a;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}
.str-summary-title em {
  font-style: normal;
  color: var(--bm-accent, #e85500);
  display: inline-block;
  margin-left: 4px;
}
.str-summary-lead {
  font-size: 17px;
  color: #555;
  line-height: 1.8;
  max-width: 640px;
  margin: 0 auto;
}
@media (max-width: 768px) {
  .bm-pricing-reveal {
    padding: 24px 16px 48px;
  }
  .bm-pricing-reveal-btn {
    min-width: 200px;
    padding: 16px 32px 12px;
  }
  .str-summary {
    padding: 64px 0 80px;
  }
  .str-summary-header {
    margin-bottom: 36px;
  }
  .str-summary-lead {
    font-size: 15px;
    padding: 0 16px;
  }
}
.bm-pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; margin-top: 48px;
}
.bm-pricing-card {
  background: var(--bm-card-bg);
  border: 2px solid var(--bm-border);
  border-radius: var(--bm-radius);
  padding: 40px 28px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}
.bm-pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.1);
}
.bm-pricing-card.featured {
  border-color: var(--bm-accent);
  position: relative;
}
.bm-pricing-card.featured::before {
  content: '人気';
  position: absolute; top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--bm-accent); color: #fff;
  font-size: 12px; font-weight: 700;
  padding: 4px 16px; border-radius: 50px;
}
.bm-pricing-plan {
  font-size: 14px; font-weight: 700;
  color: var(--bm-accent); letter-spacing: 1px;
  margin-bottom: 8px;
}
.bm-pricing-price {
  font-size: 36px; font-weight: 900; color: #222;
  margin-bottom: 8px;
}
.bm-pricing-price span { font-size: 16px; color: var(--bm-text-muted); }
.bm-pricing-desc {
  font-size: 14px; color: var(--bm-text-muted);
  margin-bottom: 24px;
}
.bm-pricing-features {
  list-style: none; margin-bottom: 32px;
}
.bm-pricing-features li {
  font-size: 14px; color: var(--bm-text);
  padding: 8px 0;
  border-bottom: 1px solid var(--bm-border);
}
.bm-pricing-features li:last-child { border-bottom: none; }

/* --- Price Hero (per-page pricing) --- */
/* --- Plan grid (3カード) --- */
.bm-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 24px;
}
.bm-plan-card {
  border: 2px solid #ddd;
  text-align: center;
  position: relative;
}
.bm-plan-card--recommend {
  border: 3px solid var(--bm-accent);
  z-index: 1;
}
.bm-plan-badge {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 2px solid var(--bm-accent);
  color: var(--bm-accent);
  font-size: 14px;
  font-weight: 900;
  padding: 2px 16px;
  border-radius: 20px;
  white-space: nowrap;
}
.bm-plan-header {
  background: #222;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  padding: 12px 0;
}
.bm-plan-header--accent {
  background: var(--bm-accent);
}
.bm-plan-body {
  padding: 24px 16px;
}
.bm-plan-price {
  font-size: 18px;
  font-weight: 700;
  color: #222;
}
.bm-plan-price--accent {
  color: var(--bm-accent);
}
.bm-plan-num {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 900;
}
.bm-plan-unit {
  font-size: 18px;
  font-weight: 700;
}
.bm-plan-note {
  font-size: 13px;
  color: #666;
  margin-top: 8px;
}

/* --- Option grid (4カード) --- */
.bm-option-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
}
.bm-option-card {
  border: 2px solid #ddd;
  border-radius: var(--bm-radius);
  text-align: center;
  padding: 24px 12px;
}
.bm-option-name {
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 900;
  color: #222;
}
.bm-option-sub {
  font-size: 12px;
  color: #999;
  margin-top: 4px;
}
.bm-option-price {
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 900;
  color: var(--bm-accent);
  margin-top: 12px;
}

/* --- Included grid --- */
.bm-included-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; margin-top: 32px;
}
.bm-included-item {
  display: flex; align-items: flex-start; gap: 16px;
  background: var(--bm-card-bg);
  border: 1px solid var(--bm-border);
  border-radius: var(--bm-radius);
  padding: 24px 20px;
}
.bm-included-icon {
  flex-shrink: 0;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bm-accent); color: #fff;
  font-size: 14px; font-weight: 900;
  border-radius: 50%;
}
.bm-included-title {
  font-size: 15px; font-weight: 700; color: #222;
  margin-bottom: 4px;
}
.bm-included-desc {
  font-size: 13px; color: var(--bm-text-muted);
  line-height: 1.6;
}

/* --- Color option grid --- */
.bm-color-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; margin-top: 32px;
}
.bm-color-card {
  background: var(--bm-card-bg);
  border: 2px solid var(--bm-border);
  border-radius: var(--bm-radius);
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}
.bm-color-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.08);
}
.bm-color-label {
  font-size: 18px; font-weight: 700; color: #222;
  margin-bottom: 12px;
}
.bm-color-desc {
  font-size: 14px; color: var(--bm-text-muted);
  line-height: 1.7;
}

/* --- Pricing footnote --- */
.bm-pricing-footnote {
  text-align: center; margin-top: 48px;
  font-size: 14px; color: var(--bm-text-muted);
}

/* ============================================
   Contact Page
   ============================================ */
.bm-contact-page {
  padding: 48px 0 80px;
  min-height: 80vh;
}
.bm-contact-form {
  max-width: 640px; margin: 48px auto 0;
}
.bm-form-group { margin-bottom: 24px; }
.bm-form-label {
  display: block;
  font-size: 14px; font-weight: 700; color: #222;
  margin-bottom: 8px;
}
.bm-form-label .bm-required {
  font-size: 11px; color: var(--bm-accent);
  margin-left: 6px;
}
.bm-form-input, .bm-form-textarea {
  width: 100%;
  background: #fff;
  border: 2px solid var(--bm-border);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 15px; color: var(--bm-text);
  font-family: inherit;
  transition: border-color 0.3s;
}
.bm-form-input:focus, .bm-form-textarea:focus {
  outline: none;
  border-color: var(--bm-accent);
}
.bm-form-textarea { min-height: 140px; resize: vertical; }
.bm-form-submit:disabled { cursor: not-allowed; }

/* ============================================
   CSSButtons.io 風 送信ボタン (紙飛行機アイコン)
   ============================================ */
.cb-submit {
  --cb-bg: var(--bm-accent, #eb5200);
  --cb-bg-dark: #b63d00;
  --cb-icon-color: var(--bm-accent, #eb5200);
  background: var(--cb-bg);
  color: #fff;
  font-family: inherit;
  padding: 0.35em 3.3em 0.35em 1.4em;
  font-size: 18px;
  font-weight: 700;
  border-radius: 0.9em;
  border: none;
  letter-spacing: 0.06em;
  display: inline-flex;
  align-items: center;
  box-shadow: inset 0 0 1.6em -0.6em var(--cb-bg-dark);
  overflow: hidden;
  position: relative;
  height: 3em;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.cb-submit:hover { transform: translateY(-1px); }
.cb-submit:disabled { opacity: 0.65; cursor: not-allowed; }
.cb-submit .cb-label {
  position: relative;
  z-index: 1;
  padding-right: 0.5em;
}
.cb-submit .cb-icon {
  background: #fff;
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2.4em;
  width: 2.4em;
  border-radius: 0.7em;
  box-shadow: 0.1em 0.1em 0.6em 0.2em rgba(0,0,0,0.18);
  right: 0.3em;
  top: 50%;
  transform: translateY(-50%);
  transition: width 0.35s cubic-bezier(0.16,1,0.3,1);
  overflow: hidden;
}
.cb-submit:hover .cb-icon {
  width: calc(100% - 0.6em);
}
.cb-submit .cb-icon svg {
  width: 1.3em;
  height: 1.3em;
  color: var(--cb-icon-color);
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1);
}
.cb-submit:hover .cb-icon svg {
  transform: translateX(0.15em);
}
.cb-submit:active .cb-icon {
  transform: translateY(-50%) scale(0.95);
}

/* ============================================
   Page Header (sub pages)
   ============================================ */
.bm-page-header {
  padding: 140px 24px 60px;
  text-align: center;
  background: var(--bm-bg-light);
  min-height: 280px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.bm-page-header h1 {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 900; color: #222;
  margin-bottom: 8px;
}
.bm-page-header h1 em {
  font-style: normal; color: var(--bm-accent);
}
.bm-page-header p {
  font-size: 15px; color: var(--bm-text-muted);
}

/* ============================================
   Image Hero (pricing / faq pages)
   ============================================ */
.bm-img-hero {
  position: relative;
  width: 100%;
  height: clamp(260px, 38vw, 480px);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bm-img-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.bm-img-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.25) 60%, rgba(0,0,0,0.55) 100%);
}
.bm-img-hero-text {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 0 24px 36px;
}
.bm-img-hero-text h1 {
  font-size: clamp(28px, 5vw, 46px);
  font-weight: 900;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}
.bm-img-hero-text p {
  font-size: clamp(13px, 1.6vw, 16px);
  opacity: 0.9;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}

/* ============================================
   制作事例モーダル (ContentsX同様 2カラム)
   ============================================ */
.work-detail-overlay {
  position: fixed; inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.85);
  display: none;
  align-items: center; justify-content: center;
  padding: 24px;
}
.work-detail-overlay.active { display: flex; }
.work-detail-close {
  position: absolute; top: 12px; right: 12px;
  background: rgba(var(--bm-accent-rgb), 0.55);
  color: #fff; border: none;
  width: 36px; height: 36px; border-radius: 50%;
  font-size: 1.1rem; cursor: pointer; z-index: 10;
  transition: background 0.2s;
  backdrop-filter: blur(8px);
}
.work-detail-close:hover { background: rgba(var(--bm-accent-rgb), 0.8); }
.work-detail-content {
  position: relative;
  background: #fff; border-radius: 12px;
  max-width: 1100px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  display: flex; flex-direction: row;
}

/* 左カラム: 漫画カルーセル */
.work-detail-left {
  flex: 0 0 45%; max-width: 45%;
  display: flex; flex-direction: column;
}
.work-detail-carousel-wrap {
  position: relative;
  width: 100%; overflow: hidden;
  border-radius: 12px 0 0 0;
  background: #f5f5f5;
  aspect-ratio: 3/4;
}
.work-detail-carousel-wrap.has-vertical-scroll {
  aspect-ratio: unset;
  max-height: 70vh;
  overflow-y: auto;
  border-radius: 12px 0 0 12px;
}
.work-detail-carousel {
  display: flex;
  transition: transform 0.4s ease;
  height: 100%;
}
.work-detail-carousel img {
  width: 100%; flex-shrink: 0;
  object-fit: contain; background: #f5f5f5;
}
.work-detail-carousel.vertical-scroll {
  display: block; overflow-y: auto;
  max-height: 70vh; transition: none; height: auto;
}
.work-detail-carousel.vertical-scroll img {
  width: 100%; height: auto;
  flex-shrink: unset; display: block;
}
.work-detail-dots {
  display: flex; justify-content: center;
  gap: 8px; padding: 12px;
  background: #fff; border-radius: 0 0 0 12px;
}
.work-detail-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #ccc; cursor: pointer; transition: background 0.3s;
}
.work-detail-dot.active { background: #333; }
.work-detail-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.8); border: none;
  width: 36px; height: 36px; border-radius: 50%;
  font-size: 1.4rem; cursor: pointer; z-index: 5;
  transition: background 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.work-detail-arrow:hover { background: #fff; }
.work-detail-prev { left: 12px; }
.work-detail-next { right: 12px; }

/* 右カラム: 詳細情報 */
.work-detail-right {
  flex: 1;
  padding: 32px 32px 32px 28px;
  overflow-y: auto; max-height: 90vh;
}
.work-detail-title-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.work-detail-title {
  font-size: 1.5rem; font-weight: 700;
  margin: 0; color: #1a1a1a;
}
.work-detail-category {
  display: inline-block;
  background: #f0f0f0; padding: 4px 14px;
  border-radius: 20px; font-size: 0.8rem;
  color: #555; white-space: nowrap;
  flex-shrink: 0;
}
.work-detail-section {
  margin-bottom: 20px; padding-bottom: 16px;
  border-bottom: 1px solid #eee;
}
.work-detail-section:last-child { border-bottom: none; }
.work-detail-heading {
  font-size: 1.05rem; font-weight: 700;
  color: var(--bm-accent);
  margin-bottom: 8px; padding-bottom: 4px;
  border-bottom: 2px solid var(--bm-accent);
  display: inline-block;
}
.work-detail-list {
  list-style: disc inside;
  font-size: 0.95rem; color: #333; line-height: 1.8;
}
.work-detail-text {
  font-size: 0.95rem; line-height: 1.7; color: #333;
}
.work-detail-quote {
  font-size: 0.95rem; line-height: 1.7; color: #333;
  background: #fafafa;
  border-left: 3px solid var(--bm-accent);
  padding: 12px 16px; border-radius: 4px; margin-top: 4px;
}


/* ============================================
   Scroll Animation
   ============================================ */
/* JS がインラインで opacity/transform/transition を制御。
   ここでは GPU レイヤー昇格だけ補助 */
.bm-sa-queued,
.bm-sa-animating {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* ============================================
   Pricing Quiz (bm-pricing-quiz.js)
   ============================================ */
.bm-quiz-section {
  background: var(--bm-bg-light);
  padding: 80px 0 72px;
  border-bottom: 1px solid var(--bm-border);
}

.bm-quiz-container {
  max-width: 780px;
  margin: 40px auto 0;
}

/* プログレスバー */
.bm-quiz-progress-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}
.bm-quiz-progress-track {
  flex: 1;
  height: 6px;
  background: #e8e0d8;
  border-radius: 99px;
  overflow: hidden;
}
.bm-quiz-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--bm-accent);
  border-radius: 99px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.bm-quiz-progress-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--bm-text-muted);
  letter-spacing: 0.1em;
  white-space: nowrap;
}

/* クイズ本体 アニメーション */
.bm-quiz-body {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.bm-quiz-body.bm-quiz-enter {
  opacity: 1;
  transform: translateY(0);
}

.bm-quiz-step-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--bm-accent);
  letter-spacing: 0.15em;
  margin-bottom: 10px;
}
.bm-quiz-question {
  font-size: clamp(18px, 2.4vw, 26px);
  font-weight: 900;
  color: #222;
  line-height: 1.45;
  margin-bottom: 8px;
}
.bm-quiz-sub {
  font-size: 13px;
  color: var(--bm-text-muted);
  margin-bottom: 28px;
}

/* オプション — Apple風リストスタイル */
.bm-quiz-options {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.bm-quiz-option {
  position: relative;
  cursor: pointer;
  border: 1.5px solid var(--bm-border);
  border-radius: 14px;
  padding: 18px 22px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
  user-select: none;
}
.bm-quiz-option:last-child { margin-bottom: 0; }
.bm-quiz-option:hover {
  border-color: var(--bm-accent);
  box-shadow: 0 2px 12px rgba(235,82,0,0.10);
}
.bm-quiz-option.selected {
  border-color: var(--bm-accent);
  background: rgba(235,82,0,0.04);
  box-shadow: 0 2px 12px rgba(235,82,0,0.14);
}

/* バッジ */
.bm-quiz-badge {
  position: absolute;
  top: -10px;
  left: 20px;
  background: var(--bm-accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 99px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

/* 左側：ラベル + 説明 */
.bm-quiz-opt-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.bm-quiz-opt-label {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
}
.bm-quiz-opt-desc {
  font-size: 12px;
  color: var(--bm-text-muted);
  line-height: 1.4;
}

/* 右側：価格等 */
.bm-quiz-opt-right {
  font-size: 14px;
  font-weight: 600;
  color: #555;
  white-space: nowrap;
  text-align: right;
}

/* 結果表示 */
.bm-quiz-result { text-align: center; }
.bm-quiz-result-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--bm-text-muted);
  letter-spacing: 0.15em;
  margin-bottom: 12px;
}
.bm-quiz-result-total {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 900;
  color: var(--bm-accent);
  line-height: 1.1;
  margin-bottom: 8px;
}
.bm-quiz-result-total span {
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 500;
  color: var(--bm-text-muted);
}
.bm-quiz-result-note {
  font-size: 12px;
  color: var(--bm-text-light);
  margin-bottom: 32px;
}
.bm-quiz-result-breakdown {
  background: var(--bm-bg-light);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 32px;
  text-align: left;
}
.bm-quiz-result-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--bm-border);
  color: #444;
}
.bm-quiz-result-row:last-child { border-bottom: none; }
.bm-quiz-result-row span:first-child { color: var(--bm-text-muted); }
.bm-quiz-result-row span:last-child { font-weight: 700; color: #222; }
.bm-quiz-result-row--purpose span:last-child { font-weight: 500; }

.bm-quiz-result-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.bm-quiz-restart {
  background: none;
  border: none;
  font-size: 13px;
  color: var(--bm-text-muted);
  cursor: pointer;
  text-decoration: underline;
  padding: 4px 8px;
  transition: color 0.2s;
}
.bm-quiz-restart:hover { color: var(--bm-text); }

/* ============================================
   Responsive
   ============================================ */

/* 1100px 未満: ヘッダーナビを詰める (Windows 1280px スクロールバー込み対策) */
@media (max-width: 1100px) {
  .bm-header-inner { padding: 0 12px; }
  .bm-nav { gap: 16px; }
  .bm-nav-link { font-size: 13px; }
  .bm-nav-cta { padding: 8px 14px; font-size: 13px; }
  .bm-lang-btn { width: 52px; font-size: 12px; }
}

@media (max-width: 1024px) {
  /* .bm-testimonials-grid は flex 横スクロール */
  .bm-artists-grid { grid-template-columns: repeat(2, 1fr); }
  .bm-pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .bm-included-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .bm-nav { display: none; }
  .bm-hamburger {
    display: flex;
    position: relative;
    z-index: 99999 !important;
    pointer-events: auto !important;
    touch-action: manipulation;
    cursor: pointer;
    order: 10;
    flex-shrink: 0;
    min-width: 48px;
    min-height: 48px;
  }
  .bm-header { isolation: isolate; }
  .bm-header-right { position: relative; z-index: 10; }
  /* ===== モバイルナビ（Toyotaスタイル: フルヘイトドロワー） ===== */
  .bm-nav.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    padding: 8px 0 calc(120px + env(safe-area-inset-bottom, 0px));
    gap: 0;
    margin: 0;
    z-index: 10002;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    animation: bmNavSlideIn 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  }
  @keyframes bmNavSlideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  /* 各メニュー項目: 大きく、チェブロン付き */
  .bm-nav.open .bm-nav-link,
  .bm-nav.open .bm-nav-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 24px;
    font-size: 17px;
    font-weight: 700;
    color: #1a1a1a;
    border-bottom: 1px solid #e8e8e8;
    text-align: left;
    width: 100%;
    min-height: 64px;
    letter-spacing: 0.02em;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
  .bm-nav.open .bm-nav-link:active,
  .bm-nav.open .bm-nav-dropdown-toggle:active {
    background: rgba(235, 82, 0, 0.08);
  }
  .bm-nav.open .bm-nav-link:focus-visible,
  .bm-nav.open .bm-nav-dropdown-toggle:focus-visible,
  .bm-nav.open .bm-nav-dropdown-item:focus-visible {
    outline: 2px solid var(--bm-accent);
    outline-offset: -2px;
    background: rgba(235, 82, 0, 0.06);
  }
  /* 右端チェブロン (ドロップダウン以外) */
  .bm-nav.open .bm-nav-link:not(.bm-nav-dropdown-toggle)::after {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    border-top: 2px solid var(--bm-accent);
    border-right: 2px solid var(--bm-accent);
    transform: rotate(45deg);
    margin-left: 12px;
  }
  .bm-nav.open .bm-nav-dropdown {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  /* ドロップダウン矢印 */
  .bm-nav.open .bm-nav-dropdown-arrow {
    display: inline-block;
    transition: transform 0.3s ease;
    font-size: 14px;
    font-weight: 700;
    color: var(--bm-accent);
    margin-left: 8px;
  }
  .bm-nav.open .bm-nav-dropdown.is-open .bm-nav-dropdown-arrow {
    transform: rotate(180deg);
  }
  /* サブメニュー（デスクトップ用のmax-height/opacity解除） */
  .bm-nav.open .bm-nav-dropdown-menu {
    position: static;
    top: auto;
    left: auto;
    transform: none;
    display: none;
    box-shadow: none;
    background: #fafafa;
    padding: 0;
    min-width: 0;
    max-height: none;
    overflow: visible;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    border-radius: 0;
    border-bottom: 1px solid #e8e8e8;
    transition: none;
  }
  .bm-nav.open .bm-nav-dropdown.is-open .bm-nav-dropdown-menu {
    display: block;
    max-height: none;
    padding: 0;
  }
  .bm-nav.open .bm-nav-dropdown-item {
    display: flex;
    align-items: center;
    padding: 18px 24px 18px 44px;
    font-size: 15px;
    font-weight: 500;
    color: #555;
    border-bottom: 1px solid #eee;
    min-height: 56px;
    position: relative;
  }
  .bm-nav.open .bm-nav-dropdown-item::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 50%;
    width: 12px;
    height: 1px;
    background: var(--bm-accent);
  }
  .bm-nav.open .bm-nav-dropdown-item:last-child {
    border-bottom: none;
  }
  .bm-nav.open .bm-nav-dropdown-item:active {
    background: rgba(235, 82, 0, 0.06);
  }
  /* メガメニュー: モバイルではドロワー内インライン展開（絶対配置をキャンセル） */
  .bm-nav.open .bm-nav-megamenu {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    transform: none;
    width: 100%;
    max-width: none;
    background: #fafafa;
    border: none;
    border-bottom: 1px solid #e8e8e8;
    border-radius: 0;
    box-shadow: none;
    display: none;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0;
    max-height: none;
    overflow: visible;
    opacity: 1;
    pointer-events: auto;
    transition: none;
  }
  .bm-nav.open .bm-nav-megamenu-wrap.is-open .bm-nav-megamenu {
    display: block;
    padding: 8px 0 12px;
  }
  /* hover/focus による展開はモバイルでは無効化（is-open のみで制御） */
  .bm-nav.open .bm-nav-megamenu-wrap:hover .bm-nav-megamenu,
  .bm-nav.open .bm-nav-megamenu-wrap:focus-within .bm-nav-megamenu {
    display: none;
    max-height: none;
    padding: 0;
  }
  .bm-nav.open .bm-nav-megamenu-wrap.is-open:hover .bm-nav-megamenu,
  .bm-nav.open .bm-nav-megamenu-wrap.is-open:focus-within .bm-nav-megamenu {
    display: block;
    padding: 8px 0 12px;
  }
  .bm-nav.open .bm-nav-megamenu-col {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    margin: 0;
    padding: 8px 0 4px;
  }
  .bm-nav.open .bm-nav-megamenu-col:first-child {
    border-top: none;
  }
  .bm-nav.open .bm-nav-megamenu-heading {
    padding: 12px 24px 6px;
    margin-bottom: 0;
    border-bottom: none;
    font-size: 11px;
    letter-spacing: 0.18em;
    color: rgba(26, 26, 26, 0.55);
  }
  .bm-nav.open .bm-nav-megamenu-item {
    border-radius: 0;
  }
  /* ハンバーガー → X 変化 */
  .bm-hamburger.is-open span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
  }
  .bm-hamburger.is-open span:nth-child(2) {
    opacity: 0;
  }
  .bm-hamburger.is-open span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
  }
  /* スクロールロック */
  body.bm-nav-locked {
    overflow: hidden;
  }
  .bm-header-right .bm-nav-cta { display: none; }
  .bm-header-right .bm-lang-switch { order: -1; }
  .bm-lang-btn { width: 52px; height: 32px; font-size: 11px; padding: 0 4px; white-space: nowrap; }

  /* カテゴリフィルター: スマホ用コンパクト表示 */
  .bm-category-filter {
    gap: 8px;
    padding: 12px 16px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
  .bm-filter-btn {
    padding: 9px 14px;
    font-size: 12.5px;
    justify-content: center;
    border-width: 2px;
    box-shadow: 2px 2px 0 #1a1a1a;
    margin-bottom: 10px;
  }
  .bm-filter-btn::after { left: 18px; border-width: 7px 9px 0 0; bottom: -7px; }
  .bm-filter-btn::before { left: 20px; border-width: 5px 6px 0 0; bottom: -5px; }
  .bm-filter-btn:hover {
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0 #1a1a1a;
  }

  /* Hero: モバイルで4-5行目も表示 */
  .bm-hero-works-row--4,
  .bm-hero-works-row--5 { display: flex; }
  .bm-hero-works-bg { gap: 5px; padding-top: 60px; }
  .bm-hero-works-cover { width: 120px; height: 168px; }
  .bm-hero-logo { width: clamp(200px, 55vw, 380px); }

  /* News: モバイルでラップ */
  .bm-news-item { gap: 12px; padding: 16px 0; }
  .bm-news-thumb { width: 100px; border-radius: 4px; }
  .bm-news-link { font-size: 14px; }
  .bm-news-meta { gap: 8px; }
  .bm-news-date { font-size: 12px; }
  .bm-news-tag { font-size: 10px; padding: 2px 8px; }

  /* グリッド: 1カラム */
  /* .bm-testimonials-grid は flex 横スクロール — 1カラム不要 */
  .bm-artists-grid { grid-template-columns: repeat(2, 1fr); }
  .bm-pricing-grid { grid-template-columns: 1fr; }

  .bm-footer-inner { flex-direction: column; gap: 24px; }
  .bm-footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  /* 料金比較: モバイル */
  .bm-pricing-balloon { flex-direction: column; align-items: center; gap: 8px; }
  .bm-pricing-balloon-text { font-size: 14px; padding: 16px 20px; }
  .bm-pricing-balloon-text::after { display: none; }
  .bm-pricing-balloon-chara img { width: 60px; height: 60px; }
  .bm-pricing-table { font-size: 13px; }
  .bm-pricing-th-other, .bm-pricing-th-bm { font-size: 16px; padding: 12px 8px; }
  .bm-pricing-label, .bm-pricing-other, .bm-pricing-bm { padding: 14px 8px; }
  .bm-pricing-label { font-size: 13px; }
  .bm-pricing-bm strong { font-size: 14px; }

  /* 料金ページ新セクション: モバイル */
  .bm-plan-grid { grid-template-columns: 1fr; gap: 16px; }
  .bm-plan-card--recommend { margin-top: 8px; }
  .bm-plan-badge { top: -14px; }
  .bm-option-grid { grid-template-columns: 1fr 1fr; }
  .bm-included-grid { grid-template-columns: 1fr; }
  .bm-color-grid { grid-template-columns: 1fr; }

  /* クイズ: モバイル */
  .bm-quiz-container { padding: 32px 20px 40px; }
  .bm-quiz-option { padding: 16px 18px; }
  .bm-quiz-question { font-size: 20px; }
  .bm-quiz-opt-label { font-size: 14px; }
  .bm-quiz-opt-right { font-size: 12px; }

  /* Works cards: スマホもPC同様の横並び */
  .bm-works-card { gap: 16px; padding: 20px 0; }
  .bm-works-card > .bm-works-card-link { gap: 16px; }
  .bm-works-card-thumb { flex: none; height: 160px; }
  .bm-works-card-title { font-size: 15px; }
  .bm-works-card-desc { display: none; }

  /* FAQ・料金ページのhero画像: ビズちゃんをヘッダー下に大きく表示 */
  .bm-img-hero {
    height: 320px;
    margin-top: 72px;
  }
  .bm-img-hero img {
    object-position: 50% 15%;
  }

  /* モーダル: スマホは縦並び — 漫画+詳細が一体でスクロール */
  .work-detail-overlay {
    padding: 0;
    align-items: flex-start;
    overflow-y: auto;
  }
  .work-detail-content {
    flex-direction: column;
    max-height: none;
    overflow-y: visible;
    border-radius: 0;
    min-height: 100vh;
    min-height: 100dvh;
  }
  .work-detail-left { flex: none; max-width: 100%; }
  .work-detail-carousel-wrap { border-radius: 0; }
  .work-detail-carousel-wrap.has-vertical-scroll {
    max-height: none;
    overflow-y: visible;
  }
  .work-detail-carousel.vertical-scroll {
    max-height: none;
    overflow-y: visible;
  }
  .work-detail-right { max-height: none; overflow-y: visible; padding: 20px; }
  .work-detail-close { position: fixed; top: 8px; right: 8px; z-index: 10001; }
}

@media (max-width: 480px) {
  .bm-gallery-card { flex: 0 0 160px; width: 160px; min-width: 160px; max-width: 160px; }
  .bm-gallery-card-cover { height: 213px; }
}

/* ===== 制作過程セクション (ホーム用) ===== */
.bm-pre-section {
  padding: 48px 0 60px;
  background: #f4f4f4;
  color: #333;
}
.bm-pre-section-title {
  text-align: center;
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 6px;
}
.bm-pre-section-title em {
  color: #EB5200;
  font-style: normal;
}
.bm-pre-section-subtitle {
  text-align: center;
  font-size: 11px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 32px;
}
.bm-pre-carousel-wrap {
  margin: 0 auto 40px;
  max-width: 1200px;
  padding: 0 24px;
}
.bm-pre-carousel-label {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
  padding-left: 8px;
  border-left: 3px solid #EB5200;
  color: #333;
}
.bm-pre-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}
.bm-pre-carousel-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  will-change: transform;
}
.bm-pre-carousel-slide {
  flex: 0 0 calc((100% - 16px) / 3);
  min-width: calc((100% - 16px) / 3);
  padding: 0;
  cursor: pointer;
  transition: transform 0.3s;
  box-sizing: border-box;
}
.bm-pre-carousel-slide:hover {
  transform: scale(1.03);
}
.bm-pre-slide-img-wrap {
  overflow: hidden;
  border-radius: 6px;
  background: #e8e8e8;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.bm-pre-slide-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
}
.bm-pre-carousel-slide .bm-pre-slide-title {
  font-size: 12px;
  color: #777;
  margin-top: 6px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bm-pre-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(238,107,29,0.85);
  color: #fff;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.bm-pre-carousel-btn:hover {
  background: rgba(238,107,29,1);
}
.bm-pre-carousel-btn.prev { left: 4px; }
.bm-pre-carousel-btn.next { right: 4px; }

@media (max-width: 768px) {
  .bm-pre-carousel-slide {
    flex: 0 0 80%;
    min-width: 80%;
  }
  .bm-pre-section { padding: 32px 0 40px; }
  .bm-pre-section-title { font-size: 20px; }
  .bm-pre-carousel-wrap { max-width: 95%; padding: 0 16px; }
  .bm-pre-slide-img-wrap { /* auto height */ }
}

/* ===== お客様の声 一覧ページ ===== */
.bm-page-hero {
  padding: 120px 0 40px;
  text-align: center;
  background: #fafafa;
  border-bottom: 1px solid #eee;
}
.bm-page-hero-title {
  font-size: 28px;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 6px;
}
.bm-page-hero-sub {
  font-size: 11px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.bm-tm-list-section {
  padding: 48px 0 80px;
  background: #fff;
}
.bm-tm-list-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.bm-tm-list-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}
.bm-tm-list-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.bm-tm-list-cover {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #f0f0f0;
}
.bm-tm-list-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bm-tm-list-body {
  padding: 16px 18px 20px;
}
.bm-tm-list-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #EB5200;
  background: rgba(235,82,0,0.08);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
}
.bm-tm-list-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  color: #1a1a1a;
  margin-bottom: 8px;
}
.bm-tm-list-text {
  font-size: 13px;
  line-height: 1.7;
  color: #666;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 1024px) {
  .bm-tm-list-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .bm-page-hero { padding: 100px 0 32px; }
  .bm-page-hero-title { font-size: 22px; }
  .bm-tm-list-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .bm-tm-list-section { padding: 32px 0 60px; }
}
@media (max-width: 480px) {
  .bm-tm-list-grid { grid-template-columns: 1fr; }
}

/* ===== Manga Loader (3D Orbital Spinner) ===== */
.bm-manga-loader-wrap {
  position: absolute;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  opacity: 1;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.bm-manga-loader-wrap.hidden {
  opacity: 0;
  pointer-events: none;
}
.bm-manga-loader {
  transform: rotateZ(45deg);
  perspective: 1000px;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  color: #fff;
  position: relative;
}
.bm-manga-loader::before,
.bm-manga-loader::after {
  content: '';
  display: block;
  position: absolute;
  top: 0; left: 0;
  width: inherit; height: inherit;
  border-radius: 50%;
  transform: rotateX(70deg);
  animation: bmLoaderSpin 1s linear infinite;
}
.bm-manga-loader::after {
  color: #EB5200;
  transform: rotateY(70deg);
  animation-delay: 0.4s;
}
@keyframes bmLoaderSpin {
  0%, 100% { box-shadow: .2em 0 0 0 currentcolor; }
  12% { box-shadow: .2em .2em 0 0 currentcolor; }
  25% { box-shadow: 0 .2em 0 0 currentcolor; }
  37% { box-shadow: -.2em .2em 0 0 currentcolor; }
  50% { box-shadow: -.2em 0 0 0 currentcolor; }
  62% { box-shadow: -.2em -.2em 0 0 currentcolor; }
  75% { box-shadow: 0 -.2em 0 0 currentcolor; }
  87% { box-shadow: .2em -.2em 0 0 currentcolor; }
}

/* --- reduced-motion: アニメーション無効化 --- */
@media (prefers-reduced-motion: reduce) {
  .bm-hero-works-row,
  .bm-hero-works-row--1,
  .bm-hero-works-row--2,
  .bm-hero-works-row--3,
  .bm-hero-works-row--4,
  .bm-hero-works-row--5 { animation: none !important; }
  .bm-hero-logo { animation: none !important; opacity: 1 !important; }
  .bm-hero-tagline .tl-char { animation: none !important; opacity: 1 !important; transform: none !important; -webkit-text-fill-color: #fff !important; }
  .bm-hero-works-cover { transition: none !important; }
  .bm-hero-speedlines { animation: none !important; opacity: 0.6 !important; }
  .bm-hero-glow { animation: none !important; opacity: 1 !important; filter: blur(30px) !important; }
  .bm-hero-glow::after { animation: none !important; }
  .bm-hero-scroll-hint { animation: none !important; opacity: 0.7 !important; }
  .bm-hero-scroll-line { animation: none !important; }
  .bm-manga-loader::before,
  .bm-manga-loader::after { animation: none !important; box-shadow: .2em 0 0 0 currentcolor !important; }
  .bm-cover-spinner::before,
  .bm-cover-spinner::after { animation: none !important; box-shadow: .2em 0 0 0 currentcolor !important; }
}

/* ============================================
   日本語テキストの禁則処理 (2026-04-20 追加)
   末尾1文字だけ改行落ちする"孤立文字"を防ぐ。
   text-wrap: pretty (Chrome 117+/Safari 17.4+/Firefox 121+) で
   行末の孤立文字を自動で回避。未対応ブラウザは通常wrap。
   ============================================ */
/* 見出し: balance で行長を均等化、孤立文字を極力回避 */
:lang(ja) h1,
:lang(ja) h2,
:lang(ja) h3,
:lang(ja) h4,
html[lang="ja"] h1,
html[lang="ja"] h2,
html[lang="ja"] h3,
html[lang="ja"] h4,
h1, h2, h3, h4,
.bm-hero-tagline,
.bm-section-title,
.bm-works-card-title,
.bm-column-card-title,
.bm-column-hero-title,
.bm-column-featured-title,
.bm-pricing-hero-title,
.bm-faq-question,
.bm-testimonial-title {
  line-break: strict;
  text-wrap: balance;
  /* Chrome 119+ の日本語フレーズ認識。未対応環境では無視される */
  word-break: auto-phrase;
  overflow-wrap: break-word;
}

/* 段落・抜粋: pretty で最終行孤立回避。Japanese対応のため overflow-wrap も指定 */
:lang(ja) p,
html[lang="ja"] p,
.bm-column-lead,
.bm-column-card-excerpt,
.bm-column-featured-excerpt {
  text-wrap: pretty;
  line-break: strict;
  word-break: auto-phrase;
  overflow-wrap: break-word;
}

/* リード段落は balance を明示的に使用（2-3行で行長均等化が効く） */
.bm-column-lead {
  text-wrap: balance;
}

/* Whatis セクション内テキストリンク（SEO内部リンク強化用） */
.bm-whatis-link {
  color: var(--bm-accent, #e85500);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  font-weight: 700;
  transition: opacity 0.2s;
}
.bm-whatis-link:hover {
  opacity: 0.7;
}

/* ============================================================
   制作事例詳細ページ共通スタイル（/works/*.html 17ページ共通）
   2026-04-20: 各HTMLファイルのインラインCSS重複を解消
   ============================================================ */
.bm-work-detail-page { padding: 80px 0 120px; max-width: 960px; margin: 0 auto; }
.bm-work-detail-breadcrumb { font-size: 13px; color: #888; margin-bottom: 24px; }
.bm-work-detail-breadcrumb a { color: #888; text-decoration: none; }
.bm-work-detail-breadcrumb a:hover { color: #e91e63; }
.bm-work-detail-hero { margin-bottom: 40px; }
.bm-work-detail-category { display: inline-block; background: #e91e63; color: #fff; padding: 4px 12px; border-radius: 4px; font-size: 12px; margin-bottom: 12px; }
.bm-work-detail-title { font-size: 32px; font-weight: 900; margin: 0 0 8px; line-height: 1.3; }
.bm-work-detail-client { font-size: 14px; color: #666; margin: 0 0 24px; }
.bm-work-detail-thumb img { width: 100%; height: auto; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.bm-work-detail-spec { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; background: #faf8f5; padding: 24px; border-radius: 12px; margin: 32px 0; }
.bm-work-detail-spec dt { font-size: 11px; color: #999; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }
.bm-work-detail-spec dd { margin: 0; font-size: 15px; font-weight: 700; color: #222; }
.bm-work-detail-section { margin: 40px 0; }
.bm-work-detail-section h2 { font-size: 20px; font-weight: 900; margin: 0 0 16px; padding-left: 12px; border-left: 4px solid #e91e63; }
.bm-work-detail-section p { font-size: 15px; line-height: 1.9; color: #333; }
.bm-work-detail-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-top: 16px; }
.bm-work-detail-gallery img { width: 100%; height: auto; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
/* ヘッダーお問い合わせ(.bm-nav-cta)と同じ：オレンジアウトライン+スイープ塗り */
.bm-work-detail-back {
  display: inline-block;
  margin-top: 40px;
  padding: 10px 24px;
  background: transparent;
  color: var(--bm-accent);
  text-decoration: none;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  outline: 2px solid var(--bm-accent);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: color 600ms ease, transform 500ms ease, box-shadow 500ms ease;
}
.bm-work-detail-back::before {
  content: "";
  position: absolute;
  left: -50px;
  top: 0;
  width: 0;
  height: 100%;
  background-color: var(--bm-accent);
  transform: skewX(45deg);
  z-index: -1;
  transition: width 800ms cubic-bezier(0.7, 0, 0.3, 1);
}
.bm-work-detail-back:hover {
  color: #fff;
  transform: scale(1.06);
  box-shadow: 4px 5px 17px -4px rgba(var(--bm-accent-rgb), 0.5);
}
.bm-work-detail-back:hover::before { width: 260%; }
.bm-work-detail-cta { margin-top: 60px; padding: 40px; background: linear-gradient(135deg, var(--bm-accent-light), #fff); border-radius: 16px; text-align: center; }
.bm-work-detail-cta h3 { font-size: 22px; margin: 0 0 12px; }
.bm-work-detail-cta p { font-size: 14px; color: #666; margin: 0 0 20px; }
/* .bm-work-detail-cta 内の <a> のデフォルト塗り(旧 #e91e63)を解除。
   実際のボタンは .bm-work-detail-cta-btn / .bm-work-detail-cta-sub a 側で個別指定 */
.bm-work-detail-cta a { text-decoration: none; }

/* === 関連事例グリッド (works/{slug}.html 内) === */
.bm-work-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  margin-top: 12px;
}
.bm-work-related-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid #ebe5d7;
  padding: 12px;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.bm-work-related-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px -8px rgba(0,0,0,0.12);
}
.bm-work-related-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5.6;
  object-fit: cover;
  border-radius: 2px;
  display: block;
}
.bm-work-related-name {
  font-size: 13px;
  line-height: 1.5;
  color: #1a1a1a;
  font-weight: 600;
  text-align: center;
}
/* プライマリCTA: ヘッダーお問い合わせ(.bm-nav-cta)と完全に同じ初期表示
   (透明背景+オレンジアウトライン+オレンジ文字)。ホバーでスイープ塗り */
.bm-work-detail-cta-btn {
  display: inline-block;
  background: transparent;
  color: var(--bm-accent);
  padding: 14px 32px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 12px 0;
  border-radius: 50px;
  outline: 2px solid var(--bm-accent);
  outline-offset: 0;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: color 600ms ease, transform 500ms ease, box-shadow 500ms ease;
}
.bm-work-detail-cta-btn::before {
  content: "";
  position: absolute;
  left: -50px;
  top: 0;
  width: 0;
  height: 100%;
  background-color: var(--bm-accent);
  transform: skewX(45deg);
  z-index: -1;
  transition: width 800ms cubic-bezier(0.7, 0, 0.3, 1);
}
.bm-work-detail-cta-btn:hover {
  color: #fff;
  transform: scale(1.04);
  box-shadow: 4px 5px 17px -4px rgba(var(--bm-accent-rgb), 0.5);
}
.bm-work-detail-cta-btn:hover::before { width: 260%; }

.bm-work-detail-cta-sub {
  font-size: 13px;
  color: #666;
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
}
/* セカンダリリンク: ヘッダーお問い合わせと同じオレンジアウトライン */
.bm-work-detail-cta-sub a {
  display: inline-block;
  padding: 8px 18px;
  background: transparent;
  color: var(--bm-accent);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  outline: 2px solid var(--bm-accent);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: color 600ms ease, transform 500ms ease, box-shadow 500ms ease;
}
.bm-work-detail-cta-sub a::before {
  content: "";
  position: absolute;
  left: -50px;
  top: 0;
  width: 0;
  height: 100%;
  background-color: var(--bm-accent);
  transform: skewX(45deg);
  z-index: -1;
  transition: width 800ms cubic-bezier(0.7, 0, 0.3, 1);
}
.bm-work-detail-cta-sub a:hover {
  color: #fff;
  transform: scale(1.04);
  box-shadow: 4px 5px 17px -4px rgba(var(--bm-accent-rgb), 0.5);
}
.bm-work-detail-cta-sub a:hover::before { width: 260%; }

/* ============================================================
   bm-fuwa: 汎用「ふわふわスクロール」ユーティリティ
   - data-fuwa: スクロールで下から弾むように出現
   - data-fuwa-float: 出現後も上下にゆっくり浮遊
   - data-fuwa-parallax="0.3": スクロール時にパララックス
   - body[data-fuwa-auto]: 自動モード（主要要素を一括 opt-in）
   bm-fuwa.js とセットで動作
   ============================================================ */
html { scroll-behavior: smooth; }

[data-fuwa] {
  opacity: 0;
  transform: translateY(40px) scale(0.96);
  transition:
    opacity 0.7s cubic-bezier(0.34, 1.56, 0.64, 1),
    transform 0.9s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform, opacity;
}
[data-fuwa].is-fuwa-in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

[data-fuwa-float] {
  animation: bmFuwaFloat 5s ease-in-out infinite;
  animation-delay: 1s;
}
[data-fuwa-float][data-fuwa]:not(.is-fuwa-in) {
  animation: none;
}
@keyframes bmFuwaFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-fuwa],
  [data-fuwa-float],
  [data-fuwa-parallax] {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ============================================================
   bm-floating-comics: 漫画コマふわふわ背景（汎用・固定背景）
   - position: fixed で常に画面に残る
   - 8 用途別 LP / biz-library で利用
   ============================================================ */
.bm-floating-comics-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.bm-floating-comic {
  position: absolute;
  border: 2px solid #1a1a1a;
  background: #fff;
  box-shadow: 4px 4px 0 #1a1a1a;
  overflow: hidden;
  opacity: 0.10;
  will-change: transform;
}
.bm-floating-comic img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
/* 各コマ位置・回転 */
.bm-floating-comic--1 { top: 6%;  left: -3%;  width: 200px; height: 110px; --rot: -12deg; transform: rotate(-12deg); animation: bmFloatDrift 14s ease-in-out infinite; animation-delay: 0s; }
.bm-floating-comic--2 { top: 12%; right: 4%;  width: 180px; height: 100px; --rot: 8deg;   transform: rotate(8deg);   animation: bmFloatDrift 16s ease-in-out infinite; animation-delay: -3s; }
.bm-floating-comic--3 { top: 38%; left: 2%;   width: 140px; height: 80px;  --rot: -6deg;  transform: rotate(-6deg);  animation: bmFloatDrift 13s ease-in-out infinite; animation-delay: -5s; }
.bm-floating-comic--4 { top: 42%; right: -3%; width: 220px; height: 120px; --rot: 4deg;   transform: rotate(4deg);   animation: bmFloatDrift 15s ease-in-out infinite; animation-delay: -7s; }
.bm-floating-comic--5 { bottom: 8%; left: 8%; width: 160px; height: 90px;  --rot: -3deg;  transform: rotate(-3deg);  animation: bmFloatDrift 17s ease-in-out infinite; animation-delay: -2s; }
.bm-floating-comic--6 { bottom: 14%; right: -2%; width: 200px; height: 110px; --rot: 11deg; transform: rotate(11deg); animation: bmFloatDrift 14s ease-in-out infinite; animation-delay: -8s; }
.bm-floating-comic--7 { top: 70%; left: 32%;  width: 150px; height: 84px;  --rot: -2deg;  transform: rotate(-2deg);  animation: bmFloatDrift 19s ease-in-out infinite; animation-delay: -4s; opacity: 0.07; }
.bm-floating-comic--8 { top: 25%; left: 55%;  width: 140px; height: 80px;  --rot: 7deg;   transform: rotate(7deg);   animation: bmFloatDrift 18s ease-in-out infinite; animation-delay: -6s; opacity: 0.08; }
@keyframes bmFloatDrift {
  0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
  50% { transform: translateY(-18px) rotate(var(--rot, 0deg)); }
}
@media (max-width: 880px) {
  .bm-floating-comic--3, .bm-floating-comic--4,
  .bm-floating-comic--7, .bm-floating-comic--8 { display: none; }
  .bm-floating-comic { opacity: 0.06 !important; }
}
@media (prefers-reduced-motion: reduce) {
  .bm-floating-comic { animation: none !important; }
}

/* 浮遊背景がある場合のみ body に stacking context を作る（他ページに影響なし） */
body:has(> .bm-floating-comics-bg) {
  isolation: isolate;
}
