/* ============================================================
   Uberall サービスサイト 共通スタイル (下層ページ用)
   TOPページ (index.html) から抽出した Tokens / Reset / Layout /
   Buttons / Header / Footer + 関連レスポンシブ。
   TOPの独自装飾 (hero/s02v3/s03v3/s04/s05v3/s07/s08 等) は含めない。
============================================================ */

/* ===== Design Tokens ===== */
:root {
  /* 背景 */
  --bg-base: #FFFFFF;
  --bg-soft: #F6F7FB;
  --bg-softer: #FAFBFD;
  --bg-card: #FFFFFF;
  --bg-dark: #0F1020;
  --bg-dark-soft: #1A1B33;

  /* テキスト */
  --text-primary: #0F1020;
  --text-secondary: #4A5060;
  --text-muted: #8B92A5;
  --text-on-dark: #FFFFFF;
  --text-on-dark-muted: rgba(255,255,255,0.72);
  --text-on-dark-faint: rgba(255,255,255,0.50);

  /* ブランドカラー */
  --brand-purple: #6B4FBB;
  --brand-purple-light: #8A6FE0;
  --brand-purple-deep: #4A3590;
  --brand-purple-soft: rgba(107, 79, 187, 0.10);
  --brand-blue: #4C5FE3;
  --brand-gradient: linear-gradient(135deg, #6B4FBB 0%, #4C5FE3 100%);
  --brand-gradient-vivid: linear-gradient(135deg, #7C3AED 0%, #4C5FE3 60%, #06B6D4 100%);

  /* 本家Uberall.com 準拠 */
  --uberall-purple: #860EFF;
  --uberall-purple-deep: #6109D6;
  --uberall-purple-darker: #330076;
  --uberall-ink: #14111B;
  --uberall-ink-2: #1B0C3B;
  --uberall-header-gradient: linear-gradient(156deg, #14111B 0%, #1B0C3B 28%, #6109D6 75%, #860EFF 100%);

  /* システム */
  --success: #10B981;
  --warning: #F59E0B;
  --info: #3B82F6;

  /* v3 補助色 */
  --map-green: #10B981;
  --map-green-deep: #047857;
  --map-green-soft: rgba(16, 185, 129, 0.10);
  --review-yellow: #F59E0B;
  --review-yellow-soft: rgba(245, 158, 11, 0.15);
  --store-warm: #F97316;
  --store-warm-soft: rgba(249, 115, 22, 0.10);
  --neutral-paper: #FBF8F1;
  --paper-edge: #E8E0CC;

  /* ボーダー */
  --border-light: #ECEEF3;
  --border-mid: #D8DBE3;
  --border-dark: rgba(255,255,255,0.10);
  --border-dark-strong: rgba(255,255,255,0.20);

  /* シャドウ */
  --shadow-sm: 0 1px 3px rgba(15, 16, 32, 0.04), 0 1px 2px rgba(15, 16, 32, 0.03);
  --shadow-md: 0 4px 16px rgba(15, 16, 32, 0.06), 0 2px 4px rgba(15, 16, 32, 0.04);
  --shadow-lg: 0 16px 40px rgba(15, 16, 32, 0.10), 0 4px 12px rgba(15, 16, 32, 0.05);
  --shadow-xl: 0 32px 80px rgba(15, 16, 32, 0.14);
  --shadow-purple: 0 16px 40px rgba(107, 79, 187, 0.30);

  /* タイポ */
  --fs-xs: 12px;
  --fs-sm: 14px;
  --fs-base: 16px;
  --fs-md: 18px;
  --fs-lg: 22px;
  --fs-xl: 28px;
  --fs-2xl: 36px;
  --fs-3xl: 48px;
  --fs-4xl: 64px;
  --fs-display: 80px;
  --fs-mega: 112px;

  /* スペース */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-8: 48px;
  --sp-10: 64px;
  --sp-12: 80px;
  --sp-16: 120px;
  --sp-20: 160px;

  /* 角丸 */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-pill: 999px;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; /* fixed ヘッダー分オフセット */ }
body {
  font-family: "Inter", "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Hiragino Sans", "Yu Gothic", sans-serif;
  color: var(--text-primary);
  background: var(--bg-base);
  font-size: var(--fs-base);
  line-height: 1.75;
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; cursor: pointer; transition: opacity .2s, color .2s; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: 0; background: none; }

/* ===== Layout ===== */
.container { max-width: 1300px; margin: 0 auto; padding: 0 var(--sp-6); }
.container-narrow { max-width: 980px; margin: 0 auto; padding: 0 var(--sp-6); }

/* ===== Section base ===== */
.section { position: relative; padding: var(--sp-16) 0; }
.section-tight { padding: var(--sp-12) 0; }
.section-soft { background: var(--bg-soft); }
.section-dark {
  background: var(--bg-dark);
  color: var(--text-on-dark);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--brand-purple);
  margin-bottom: var(--sp-5);
}
.section-dark .eyebrow { color: var(--brand-purple-light); }
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1.5px;
  background: currentColor;
}

.section-title {
  font-family: "Noto Sans JP", "Inter", sans-serif;
  font-size: var(--fs-3xl);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin-bottom: var(--sp-5);
  color: var(--text-primary);
}
.section-dark .section-title { color: var(--text-on-dark); }

.section-lead {
  font-size: 19px;
  color: var(--text-secondary);
  max-width: 720px;
  line-height: 1.85;
}
.section-dark .section-lead { color: var(--text-on-dark-muted); }

.section-head { margin-bottom: var(--sp-12); }
.section-head-center { text-align: center; margin: 0 auto var(--sp-12); }
.section-head-center .eyebrow { justify-content: center; }
.section-head-center .section-lead { margin: 0 auto; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  padding: 14px 28px;
  font-size: var(--fs-base);
  font-weight: 700;
  border-radius: var(--r-pill);
  transition: all .25s ease;
  white-space: nowrap;
  border: 1.5px solid transparent;
}
.btn-lg { padding: 18px 36px; font-size: var(--fs-md); }
.btn-sm { padding: 10px 20px; font-size: var(--fs-sm); }

.btn-primary {
  background: var(--brand-gradient);
  color: #fff;
  box-shadow: var(--shadow-purple);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 56px rgba(107, 79, 187, 0.40);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-mid);
}
.btn-ghost:hover { border-color: var(--text-primary); background: var(--bg-soft); }

.section-dark .btn-ghost,
.btn-ghost-light {
  color: #fff;
  border-color: var(--border-dark-strong);
  background: transparent;
}
.btn-ghost-light:hover { border-color: #fff; background: rgba(255,255,255,0.06); }

.btn-arrow::after {
  content: "→";
  font-size: 1.05em;
  transition: transform .25s;
}
.btn:hover .btn-arrow::after,
.btn-arrow:hover::after { transform: translateX(4px); }

/* ===== 改行ユーティリティ ===== */
.br-pc { display: inline; }
.br-sp { display: none; }

/* ===== Section marker（編集用、本番削除） ===== */
.sec-mark { display: none; }

/* ============================================================
   HEADER
============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 14px 0;
  background: var(--uberall-header-gradient);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 8px 24px rgba(20, 17, 27, 0.20);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-8);
}
.brand {
  display: inline-flex;
  align-items: center;
  color: #fff;
  flex-shrink: 0;
}
.brand-logo-img {
  height: 24px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.brand-logo-img.footer-logo {
  height: 28px;
}
.global-nav { display: flex; gap: 4px; }
.nav-item { position: relative; }
.nav-trigger {
  position: relative;
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.85);
  font-weight: 600;
  padding: 10px 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 8px;
  transition: color .2s, background .2s;
}
.nav-trigger::after {
  content: "";
  position: absolute;
  left: 16px; right: 16px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #a78bfa 0%, #22d3ee 100%);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .22s ease;
  pointer-events: none;
}
.nav-trigger .caret {
  font-size: 18px;
  line-height: 1;
  transition: transform 0.25s ease;
  opacity: 1;
}
.nav-item:hover .nav-trigger,
.nav-item:focus-within .nav-trigger {
  color: #fff;
}
.nav-item:hover .nav-trigger::after,
.nav-item:focus-within .nav-trigger::after {
  transform: scaleX(1);
}
.nav-item:hover .nav-trigger .caret,
.nav-item:focus-within .nav-trigger .caret {
  transform: rotate(180deg);
  opacity: 1;
}
.nav-submenu {
  position: absolute;
  top: calc(100% + 8px); left: 50%;
  transform: translateX(-50%) translateY(6px) scale(0.98);
  background: rgba(16, 12, 28, 0.82);
  backdrop-filter: saturate(140%) blur(24px);
  -webkit-backdrop-filter: saturate(140%) blur(24px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 10px;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  transition-delay: 0.12s;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.38), 0 0 40px rgba(139, 92, 246, 0.14);
  z-index: 110;
}
.nav-submenu::after {
  content: "";
  position: absolute;
  top: -14px; left: 0; right: 0;
  height: 14px;
  pointer-events: auto;
}
.nav-submenu::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(139,92,246,0.35) 0%, rgba(34,211,238,0.20) 100%);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.nav-item:hover .nav-submenu,
.nav-item:focus-within .nav-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0) scale(1);
  pointer-events: auto;
  transition-delay: 0s;
}
.nav-submenu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  color: #fff;
  text-decoration: none;
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.nav-submenu-item:hover {
  background: rgba(255,255,255,0.075);
  transform: translateY(-1px);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.08),
    0 8px 24px rgba(139,92,246,0.14);
}
.nav-submenu-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 10px;
  background: rgba(255,255,255,0.07);
  color: #c4b5fd;
  transition: background .18s ease, color .18s ease;
}
.nav-submenu-icon svg {
  width: 18px; height: 18px;
  stroke: currentColor;
}
.nav-submenu-item:hover .nav-submenu-icon {
  background: rgba(139,92,246,0.20);
  color: #ddd6fe;
}
.nav-submenu-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.nav-submenu-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.nav-submenu-desc {
  font-size: 12px;
  color: rgba(255,255,255,0.58);
  letter-spacing: -0.01em;
  white-space: nowrap;
  line-height: 1.3;
}

/* News pages: fixed renewal ヘッダー分の上部余白 (legacy コンテンツが隠れないように) */
.page-main-wrap {
  padding-top: 100px;
}

/* Casestudy 一覧: typo サムネカードは中に企業名を含むので、下の case-item-name を非表示 (冗長回避) */
.case-item:has(.case-item-thumb--typo) .case-item-name {
  display: none;
}
/* name 非表示で cat と desc がくっつくので、desc 側に上余白を補償 */
.case-item:has(.case-item-thumb--typo) .case-item-desc {
  margin-top: 12px;
}

/* 海外事例 typo カード: 外部注釈 (※外部サイトへ遷移します) の有無で footer 高さがズレるのを揃える
   → 注釈がないカードにも同じ高さの余白を ::after で予約する */
.case-item:has(.case-item-thumb--typo):not(:has(.case-item-external-note)) .case-item-body::after {
  content: "";
  display: block;
  height: calc(11px * 1.4); /* .case-item-external-note の font 11px × line-height 1.4 相当 */
  margin-top: var(--sp-3); /* .case-item-external-note の margin-top と同じ (sp-3 = 12px) */
}

/* CF7 の空 response-output (validation trigger 済で中身なしなのに border/padding だけ残るケース) を非表示 */
.wpcf7-response-output:empty {
  display: none !important;
}

/* TOP ヒーロー hero-stats: SP でフォント大きすぎて右側「28媒体以上」が切れる問題対策 */
@media (max-width: 768px) {
  .hero-stat-value {
    font-size: 48px;
  }
  .hero-stat-value .unit {
    font-size: 0.4em;
  }
  /* s03v3-sub-stats 3列: SP で単位 (カ国/超/媒体) が折り返して一文字改行落ちする問題対策 */
  .s03v3-sub-stat-val {
    font-size: 34px;
  }
}

/* TOP + 主要機能ページ 主要機能01 の右上「国内28以上のメディア」ラベルを大きく (PC/SP 両方) */
.f01-tag {
  font-size: 13px;
  padding: 6px 12px;
  gap: 6px;
}
/* SP でさらに一段大きく + タグが hub アイコンと重ならないように hub 全体を下にオフセット */
@media (max-width: 767px) {
  .f01-tag {
    font-size: 15px;
    padding: 7px 14px;
  }
  .f01-hub {
    margin-top: 20px;
  }
}

/* Contact thanks ページ「TOPへ戻る」ボタン (contact_contents.css の legacy #1D509A) */
.contact-thanks-wrap a {
  background: linear-gradient(90deg, #6B4FBB 0%, #4C5FE3 100%) !important;
}
/* 404 ページ「トップページへ戻る」ボタン (common.css の legacy #1D509A) */
.notfound-inwrapper .notfound-totop a {
  background: linear-gradient(90deg, #6B4FBB 0%, #4C5FE3 100%) !important;
}
/* CF7 focus outline (legacy #1D509A) */
.wpcf7-confirm:focus,
.wpcf7-back:focus,
.wpcf7-select:focus {
  outline-color: #6B4FBB !important;
}

/* News pages (list + single) + pagenavi: legacy #1D509A / #F07376 → renewal 紫 (#6B4FBB) に統一 */
/* pagenavi (両方に影響) */
.wp-pagenavi .current {
  background: #6B4FBB !important;
  color: #fff !important;
}
.wp-pagenavi .nextpostslink,
.wp-pagenavi .previouspostslink {
  border-top-color: #6B4FBB !important;
  border-right-color: #6B4FBB !important;
}
/* news 一覧: 記事タイトル + 「NEWS一覧へ」ボタン */
.news-inner-title a {
  color: #6B4FBB;
}
.news-inner-title a:hover {
  border-bottom-color: #6B4FBB;
}
.top-news-page-link {
  background: #6B4FBB;
}
/* news single: タイトル + 「NEWS一覧へ」ボタン + prev/next 円ボタン */
.single-news-title {
  color: #6B4FBB;
}
.post-list-link {
  background: #6B4FBB;
}
.nav-content {
  background: #6B4FBB;
}

/* fp-cta lead 文言の max-width を 850px にして中央寄せ (幅広ページで長すぎる問題対策) */
.fp-cta-lead {
  max-width: 850px;
  margin-left: auto;
  margin-right: auto;
}

/* Google reCAPTCHA v3 バッジを非表示 (Google 公式規約準拠)
   条件: reCAPTCHA ブランディング文言をユーザーフロー内に含める → /contact/ フォーム下部に
   「This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply」 明記済
   参照: https://developers.google.com/recaptcha/docs/faq */
.grecaptcha-badge {
  visibility: hidden;
}

/* iOS Safari 予防対策: タップハイライト・safe area・vh バグ */
a, button, .header-hamburger, .mobile-bottom-cta, .mm-heading, .mm-link, .nav-trigger {
  -webkit-tap-highlight-color: transparent;
}
@supports (height: 100svh) {
  .mobile-menu-panel { min-height: 100svh; }
}
/* 底部 CTA + body 追加余白は SP のみ (下の @media (max-width: 768px) 内でも body padding-bottom を上書き) */
@media (max-width: 768px) {
  @supports (padding: env(safe-area-inset-bottom)) {
    .mobile-bottom-cta { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
    body { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
  }
}

/* Contact page: legacy カラー (#1D509A 系) を renewal 紫にオーバーライド */
.contact-step-number {
  color: #6B4FBB;
}
.contact-step-number.contact-step-number-current {
  background: #6B4FBB;
  color: #fff;
}
.wpcf7-submit,
.wpcf7-confirm,
input.wpcf7-submit,
input.wpcf7-confirm {
  background: linear-gradient(90deg, #6B4FBB 0%, #4C5FE3 100%) !important;
  border: none !important;
  color: #fff !important;
  transition: filter .2s ease, transform .2s ease;
}
.wpcf7-submit:hover,
.wpcf7-confirm:hover,
input.wpcf7-submit:hover,
input.wpcf7-confirm:hover {
  filter: brightness(1.08);
}

/* ============================================================
   Mobile: hamburger + overlay menu + bottom fixed CTA
   ※ default (desktop) は全部 hidden
============================================================ */
.header-hamburger { display: none; }
.mobile-menu { display: none; }
.mobile-bottom-cta { display: none; }

@media (max-width: 768px) {
  /* 既存 CTA (右上) は SP では非表示、代わりに hamburger を出す */
  .site-header .btn.btn-primary { display: none; }

  .header-hamburger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    padding: 0;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 10px;
    color: #fff;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease;
  }
  .header-hamburger:hover,
  .header-hamburger:focus-visible {
    background: rgba(255,255,255,0.14);
    border-color: rgba(255,255,255,0.24);
  }
  .hamburger-lines {
    display: inline-flex;
    flex-direction: column;
    justify-content: space-between;
    width: 18px; height: 12px;
  }
  .hamburger-lines span {
    display: block;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform .22s ease, opacity .22s ease;
  }
  .header-hamburger[aria-expanded="true"] .hamburger-lines span:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
  }
  .header-hamburger[aria-expanded="true"] .hamburger-lines span:nth-child(2) { opacity: 0; }
  .header-hamburger[aria-expanded="true"] .hamburger-lines span:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
  }

  /* Overlay menu */
  .mobile-menu {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(10, 8, 20, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .22s ease, visibility .22s ease;
  }
  .mobile-menu.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  body.mm-locked { overflow: hidden; }

  .mobile-menu-panel {
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: min(88vw, 360px);
    background: linear-gradient(180deg, #14111B 0%, #1E1A2E 100%);
    box-shadow: -12px 0 40px rgba(0,0,0,0.4);
    padding: 72px 24px 100px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .28s cubic-bezier(.2,.7,.2,1);
  }
  .mobile-menu.is-open .mobile-menu-panel { transform: translateX(0); }

  .mobile-menu-close {
    position: absolute;
    top: 16px; right: 16px;
    width: 40px; height: 40px;
    padding: 0;
    display: inline-flex; align-items: center; justify-content: center;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 10px;
    color: #fff;
    cursor: pointer;
  }
  .mobile-menu-close svg { width: 20px; height: 20px; }

  .mm-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .mm-group {
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding-bottom: 8px;
  }
  .mm-heading {
    padding: 16px 8px 8px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
  }
  .mm-sub-inner {
    display: flex;
    flex-direction: column;
    padding: 0 0 4px 8px;
    gap: 2px;
  }
  .mm-sub-inner a {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    color: rgba(255,255,255,0.82);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 6px;
  }
  .mm-sub-inner a::before {
    content: "・";
    color: rgba(139,92,246,0.85);
    margin-right: 4px;
    font-weight: 700;
  }
  .mm-sub-inner a:hover,
  .mm-sub-inner a:focus-visible {
    background: rgba(255,255,255,0.05);
    color: #fff;
  }
  .mm-link {
    display: block;
    padding: 16px 8px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
  }

  /* Bottom fixed CTA */
  .mobile-bottom-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 90;
    padding: 14px 20px;
    background: linear-gradient(90deg, #6B4FBB 0%, #4C5FE3 100%);
    color: #fff;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: -0.01em;
    text-decoration: none;
    box-shadow: 0 -8px 24px rgba(0,0,0,0.25);
  }
  .mobile-bottom-cta .mbc-arrow { font-size: 18px; }
  /* Body に底 CTA 分の余白 */
  body { padding-bottom: 60px; }
}
.header-cta { display: flex; gap: var(--sp-3); align-items: center; }
.site-header .btn { padding: 11px 22px; font-size: var(--fs-sm); border: 1.5px solid transparent; }
.site-header .btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}
.site-header .btn-ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.site-header .btn-primary {
  background: #fff;
  color: var(--uberall-purple);
  font-weight: 800;
  box-shadow: 0 6px 18px rgba(20, 17, 27, 0.40);
}
.site-header .btn-primary:hover {
  background: #F8F4FF;
  transform: translateY(-1px);
}

/* ============================================================
   FOOTER + 08 CTA バッキング (下層でも使えるダーク背景)
============================================================ */
.dark-end {
  background: linear-gradient(180deg,
    #6109D6 0%,
    #4A1F9E 15%,
    #2A1567 30%,
    #1B0C3B 42%,
    #0F1020 55%,
    #0F1020 100%
  );
}

.site-footer {
  background: transparent;
  color: var(--text-on-dark);
  padding: var(--sp-12) 0 var(--sp-8);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--sp-10);
  margin-bottom: var(--sp-8);
}
.footer-brand-text {
  margin-top: var(--sp-4);
  font-size: var(--fs-sm);
  color: var(--text-on-dark-muted);
  line-height: 1.8;
  max-width: 280px;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-6);
}
.footer-col-title {
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--text-on-dark-muted);
  text-transform: uppercase;
  margin-bottom: var(--sp-3);
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  display: inline-flex;
  align-items: baseline;
}
.footer-col a::before {
  content: "・";
  color: var(--brand-purple-light);
  margin-right: 4px;
  font-weight: 700;
}
.footer-col a:hover { color: var(--brand-purple-light); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--sp-6);
  border-top: 1px solid var(--border-dark);
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}
.footer-bottom .copyright { margin: 0; }
.footer-meta {
  display: flex;
  gap: 20px;
}
.footer-meta a {
  color: rgba(255,255,255,0.55);
  transition: color .2s;
}
.footer-meta a:hover { color: #fff; }

/* ============================================================
   共通レスポンシブ (Header / Footer / Utility)
============================================================ */
@media (max-width: 768px) {
  :root {
    --fs-3xl: 32px;
    --fs-display: 44px;
  }
  .br-pc { display: none; }
  .br-sp { display: inline; }

  .section { padding: var(--sp-10) 0; }

  /* Header SP */
  .global-nav { display: none; }
  .header-inner { display: grid; grid-template-columns: 2fr 3fr; gap: var(--sp-2); align-items: center; width: 100%; }
  .brand { min-width: 0; width: 100%; overflow: hidden; }
  .brand-logo-img { flex-shrink: 1; width: auto; max-width: 100%; height: auto; max-height: 22px; object-fit: contain; object-position: left center; }
  .site-header .header-cta { min-width: 0; width: 100%; display: flex; justify-content: flex-end; overflow: hidden; }
  .site-header .btn { display: inline-flex; width: auto; max-width: 100%; min-width: 0; padding: 10px 12px; font-size: 11px; line-height: 1.2; letter-spacing: -0.02em; white-space: nowrap; text-align: center; justify-content: center; gap: 5px; box-sizing: border-box; overflow: hidden; }
  .site-header .btn-arrow::after { font-size: 1em; }

  /* Footer SP */
  .footer-inner { grid-template-columns: 1fr; gap: var(--sp-6); }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: column-reverse; gap: var(--sp-3); text-align: center; }
}
@media (max-width: 480px) {
  .container { padding: 0 var(--sp-5); }
  .header-cta .btn-ghost-light { display: none; }
}
