/* ============================================================
   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; }
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: 1240px; 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: var(--fs-xs);
  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: var(--fs-md);
  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 {
  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 .caret {
  font-size: 9px;
  transition: transform 0.25s ease;
  opacity: 0.7;
}
.nav-item:hover .nav-trigger {
  color: #fff;
  background: rgba(255,255,255,0.06);
}
.nav-item:hover .nav-trigger .caret {
  transform: rotate(180deg);
  opacity: 1;
}
.nav-submenu {
  position: absolute;
  top: calc(100% + 4px); left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: rgba(20, 17, 27, 0.95);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  padding: 8px;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.22s ease;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.40);
  z-index: 110;
}
.nav-item:hover .nav-submenu,
.nav-item:focus-within .nav-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.nav-submenu a {
  padding: 10px 14px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 500;
  border-radius: 8px;
  white-space: nowrap;
  letter-spacing: -0.01em;
  transition: all .15s;
}
.nav-submenu a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.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;
}
.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; }
}
