/* founder.css */
/* Founderだけに効かせる */
.theme-founder {
    /* Premium palette */
    --bv-blue-header: #082e98;
    --bv-blue-main: #7AA7FF;
    --bv-blue-soft: rgba(122,167,255,.35);
    --bv-blue-dark: #0E1426;
  
    --bv-gold-main: #FFD953;
    --bv-gold-soft: rgba(255,217,83,.35);
  
    --bv-platinum: rgba(230,235,240,.75);
    --bv-platinum-line: rgba(230,235,240,.25);
  
    /* 既存の変数（あなたのfounder.cssに既にあるやつ）も併存OK */
    --accent: var(--bv-blue-main);
    --accent2: #b9d0ff;

    /* --- Brand tokens --- */
    --bg0: #05060a;
    --bg1: #070a12;
    --panel: rgba(255,255,255,.04);
    --panel2: rgba(255,255,255,.06);
    --line: rgba(255,255,255,.10);
    --line2: rgba(255,255,255,.16);
  
    --text: rgba(255,255,255,.90);
    --muted: rgba(255,255,255,.66);
  
    --radius: 14px;        /* 角丸は控えめ */
    --shadow: 0 18px 50px rgba(0,0,0,.55);
    --shadow2: 0 10px 30px rgba(0,0,0,.45);
  
    --maxw: 1100px;
  }
  
  .theme-founder header.site-header::after {
    width: 100%;
    background: var(--bv-blue-header);
  }

  /* --- Base --- */
  .theme-founder,
  .theme-founder body {
    background:
      radial-gradient(900px 500px at 20% 0%, rgba(122,167,255,.14), transparent 60%),
      radial-gradient(700px 500px at 85% 12%, rgba(185,208,255,.10), transparent 55%),
      linear-gradient(180deg, var(--bg1), var(--bg0));
    color: var(--text);
  }
  
  .theme-founder * { -webkit-tap-highlight-color: transparent; }
  .theme-founder a { color: var(--accent2); text-decoration: none; }
  .theme-founder a:hover { color: #fff; }
  
  /* タイポ：既存フォントが何でも“高級寄り”に見える設定 */
  .theme-founder h1, .theme-founder h2, .theme-founder h3 {
    letter-spacing: .2px;
    line-height: 1.18;
  }
  .theme-founder h1 {
    font-size: clamp(24px, 4.2vw, 56px);
    font-weight: 700;
  }
  .theme-founder p, .theme-founder li, .theme-founder small {
    color: var(--muted);
    line-height: 1.7;
  }
  
  /* コンテナ幅を上品に */
  .theme-founder .container,
  .theme-founder main,
  .theme-founder section {
    max-width: var(--maxw);
    margin-left: auto;
    margin-right: auto;
  }
  
  /* セクション余白（Founderは余白が命） */
  .theme-founder section { padding: 64px 20px; }
  @media (max-width: 680px) {
    .theme-founder section { padding: 44px 16px; }
  }
  
  /* --- Panels / Cards (汎用) --- */
  .theme-founder .card,
  .theme-founder .panel,
  .theme-founder .box,
  .theme-founder .modal,
  .theme-founder [class*="card"],
  .theme-founder [class*="panel"],
  .theme-founder [class*="Modal"],
  .theme-founder [class*="dialog"] {
    background: linear-gradient(180deg, var(--panel2), var(--panel));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow2);
    backdrop-filter: blur(10px);
  }
  
  .theme-founder .card:hover,
  .theme-founder [class*="card"]:hover {
    border-color: var(--line2);
    box-shadow: var(--shadow);
  }
  
  /* 画像のトーンを締める（派手さを落として高級感へ） */
  .theme-founder img {
    filter: saturate(.92) contrast(1.05);
  }
  
  /* --- Buttons --- */
  .theme-founder button,
  .theme-founder .btn,
  .theme-founder [class*="Button"],
  .theme-founder input[type="button"],
  .theme-founder input[type="submit"] {
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(255,255,255,.06);
    color: #fff;
    padding: 12px 18px;
    box-shadow: 0 12px 30px rgba(0,0,0,.35);
    transition: transform .12s ease, background .12s ease, border-color .12s ease;
  }
  
  .theme-founder button:hover,
  .theme-founder .btn:hover,
  .theme-founder input[type="submit"]:hover {
    transform: translateY(-1px);
    background: rgba(255,255,255,.10);
    border-color: rgba(255,255,255,.28);
  }
  
  .theme-founder button:active,
  .theme-founder .btn:active {
    transform: translateY(0);
  }
  
  /* Primary CTA（購入/参加ボタン） */
  .theme-founder .btn-primary,
  .theme-founder [class*="primary"] {
    background: linear-gradient(135deg, rgba(122,167,255,.95), rgba(185,208,255,.85));
    border: 1px solid rgba(255,255,255,.35);
    color: #071018;
  }
  
  /* --- Inputs --- */
  .theme-founder input,
  .theme-founder select,
  .theme-founder textarea {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 12px;
    color: #fff;
  }
  .theme-founder input::placeholder,
  .theme-founder textarea::placeholder { color: rgba(255,255,255,.45); }
  
  /* --- Nav / Header（上を軽く、下に視線を） --- */
  .theme-founder header,
  .theme-founder nav,
  .theme-founder [class*="header"],
  .theme-founder [class*="Navbar"] {
    background: rgba(0,0,0,.20);
    border-bottom: 1px solid rgba(255,255,255,.10);
    backdrop-filter: blur(10px);
  }
  
  /* --- Tier cards（Founderなら差を出す） --- */
  .theme-founder .tier-diamond { border-color: rgba(255,255,255,.24); }
  .theme-founder .tier-platinum { border-color: rgba(185,208,255,.22); }
  .theme-founder .tier-aurora { border-color: rgba(122,167,255,.22); }
  .theme-founder .tier-crystal { border-color: rgba(255,255,255,.18); }
  
  /* “価格”や“在庫”表示は硬めに（ゲーム感を消す） */
  .theme-founder .price,
  .theme-founder [class*="price"],
  .theme-founder .stock,
  .theme-founder [class*="stock"],
  .theme-founder [class*="remaining"] {
    color: rgba(255,255,255,.78);
    font-variant-numeric: tabular-nums;
  }
  
  /* フッターはさらに静かに */
  .theme-founder footer,
  .theme-founder [class*="footer"] {
    border-top: 1px solid rgba(255,255,255,.10);
    background: rgba(0,0,0,.25);
    color: rgba(255,255,255,.55);
  }

  /* --- Fix: white background overrides --- */
.theme-founder,
.theme-founder body {
  background: radial-gradient(900px 500px at 20% 0%, rgba(122,167,255,.14), transparent 60%),
              radial-gradient(700px 500px at 85% 12%, rgba(185,208,255,.10), transparent 55%),
              linear-gradient(180deg, #070a12, #05060a) !important;
  color: rgba(255,255,255,.90);
}

/* body以外が白で塗ってるケースを潰す（ここが重要） */
.theme-founder #root,
.theme-founder #app,
.theme-founder .app,
.theme-founder .wrapper,
.theme-founder .wrap,
.theme-founder main,
.theme-founder .container,
.theme-founder [class*="container"],
.theme-founder [class*="Container"],
.theme-founder [class*="layout"],
.theme-founder [class*="Layout"] {
  background: transparent !important;
}

/* 念のため、html側が白の時も潰す */
html, body {
  background: #05060a;
}

/* ================================
   Founder / Member page refinements
   Tabs + Hero (premium)
================================== */

/* ---- Tabs ---- */
.theme-founder .tab-container {
    margin-bottom: 22px !important;
  }
  
  .theme-founder .tab-buttons {
    display: flex;
    gap: 10px;
    border-bottom: 1px solid rgba(255,255,255,.14) !important;
    padding-bottom: 10px;
  }
  
  /* inline style (bg:#fff etc) を潰す */
  .theme-founder .tab-button {
    flex: 1;
    padding: 12px 14px !important;
    border: 1px solid rgba(255,255,255,.14) !important;
    background: rgba(255,255,255,.06) !important;   /* 上品な半透明 */
    color: rgba(255,255,255,.86) !important;
    cursor: pointer;
    border-radius: 999px !important;
    letter-spacing: .2px;
    box-shadow: 0 10px 26px rgba(0,0,0,.35);
    transition: transform .12s ease, background .12s ease, border-color .12s ease;
  }
  
  /* hover */
  .theme-founder .tab-button:hover {
    transform: translateY(-1px);
    background: rgba(255,255,255,.10) !important;
    border-color: rgba(255,255,255,.22) !important;
  }
  
  /* active: ゴールドを“下線”じゃなく“上品なリング＋控えめグロー”に */
  .theme-founder .tab-button.active {
    background: linear-gradient(135deg, rgba(255,217,83,.18), rgba(122,167,255,.10)) !important;
    border-color: rgba(255,217,83,.45) !important;
    color: rgba(255,255,255,.95) !important;
    box-shadow: 0 16px 36px rgba(0,0,0,.45), 0 0 0 1px rgba(255,217,83,.20) inset;
  }
  
  /* 既存の「border-bottom:2px solid ...」が見え方を崩すので無効化 */
  .theme-founder .tab-button {
    border-bottom: 1px solid rgba(255,255,255,.14) !important;
  }
  
  /* ---- Hero ---- */
  .theme-founder #hero.hero {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.10);
    box-shadow: 0 22px 70px rgba(0,0,0,.55);
    background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03)) !important;
  }
  
  /* hero画像が白背景に見える場合、上から暗いベール＋光を入れる */
  .theme-founder #hero.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
      radial-gradient(900px 480px at 20% 0%, rgba(122,167,255,.28), transparent 60%),
      radial-gradient(650px 420px at 85% 18%, rgba(255,217,83,.16), transparent 55%),
      linear-gradient(180deg, rgba(0,0,0,.58), rgba(0,0,0,.35));
    pointer-events: none;
    z-index: 1;
  }
  
  /* 文字ブロックは最前面へ */
  .theme-founder #hero.hero .inner {
    position: relative;
    z-index: 2;
    padding: 64px 24px;
    max-width: 980px;
  }
  
  /* heroのテキストが白く見えない問題を確実に潰す */
  .theme-founder #hero.hero .tagline,
  .theme-founder #hero.hero h1,
  .theme-founder #hero.hero .lead {
    color: rgba(255,255,255,.92) !important;
    text-shadow: 0 10px 30px rgba(0,0,0,.55);
  }
  
  .theme-founder #hero.hero .tagline {
    color: rgba(255,255,255,.76) !important;
    letter-spacing: .35px;
    text-transform: none; /* 高級感：過剰な大文字は避ける */
  }
  
  .theme-founder #hero.hero h1 {
    font-size: clamp(30px, 4.4vw, 58px);
    line-height: 1.08;
    margin-top: 10px;
  }
  
  .theme-founder #hero.hero .lead {
    color: rgba(255,255,255,.72) !important;
    max-width: 70ch;
    line-height: 1.75;
  }
  
  /* hero画像（lp-01-hero.png）を背景っぽく扱う */
  .theme-founder #hero.hero .hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .78;
    filter: saturate(.92) contrast(1.05) brightness(.92);
    z-index: 0;
  }
  
  /* CTAボタンを"Founderらしく上品"に */
  .theme-founder #hero.hero .cta .button {
    border-radius: 999px !important;
    border: 1px solid rgba(255,255,255,.22) !important;
    background: rgba(255,255,255,.08) !important;
    color: rgba(255,255,255,.92) !important;
    box-shadow: 0 14px 34px rgba(0,0,0,.40);
    padding: 16px 32px !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    display: inline-block !important;
    min-width: 200px !important;
    text-align: center !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
  }
  
  .theme-founder #hero.hero .cta .button:hover {
    background: rgba(255,255,255,.12) !important;
    border-color: rgba(255,255,255,.30) !important;
  }
  
  .theme-founder #hero.hero .cta .button.primary {
    background: linear-gradient(135deg, rgba(255,217,83,.92), rgba(185,208,255,.78)) !important;
    color: #071018 !important;
    border-color: rgba(255,255,255,.40) !important;
  }
  
  /* #founderセクションのCTAボタンにも同じスタイルを適用 */
  .theme-founder #founder.spotlight .cta .button,
  .theme-founder #about-founder.spotlight .cta .button {
    border-radius: 999px !important;
    border: 1px solid rgba(255,255,255,.22) !important;
    background: rgba(255,255,255,.08) !important;
    color: rgba(255,255,255,.92) !important;
    box-shadow: 0 14px 34px rgba(0,0,0,.40);
    padding: 16px 32px !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    display: inline-block !important;
    min-width: 200px !important;
    text-align: center !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
  }
  
  .theme-founder #founder.spotlight .cta .button:hover,
  .theme-founder #about-founder.spotlight .cta .button:hover {
    background: rgba(255,255,255,.12) !important;
    border-color: rgba(255,255,255,.30) !important;
  }
  
  .theme-founder #founder.spotlight .cta .button.primary,
  .theme-founder #about-founder.spotlight .cta .button.primary {
    background: linear-gradient(135deg, rgba(255,217,83,.92), rgba(185,208,255,.78)) !important;
    color: #071018 !important;
    border-color: rgba(255,255,255,.40) !important;
  }
  
  /* #get-startedセクションのCTAボタンにも同じスタイルを適用 */
  .theme-founder #get-started.cta-band .button {
    border-radius: 999px !important;
    border: 1px solid rgba(255,255,255,.22) !important;
    background: rgba(255,255,255,.08) !important;
    color: rgba(255,255,255,.92) !important;
    box-shadow: 0 14px 34px rgba(0,0,0,.40);
    padding: 16px 32px !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    display: inline-block !important;
    min-width: 200px !important;
    text-align: center !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
  }
  
  .theme-founder #get-started.cta-band .button:hover {
    background: rgba(255,255,255,.12) !important;
    border-color: rgba(255,255,255,.30) !important;
  }
  
  .theme-founder #get-started.cta-band .button.primary {
    background: linear-gradient(135deg, rgba(255,217,83,.92), rgba(185,208,255,.78)) !important;
    color: #071018 !important;
    border-color: rgba(255,255,255,.40) !important;
  }
  
  /* buy-btn（カートに追加ボタン）にbutton primaryと同じスタイルを適用 */
  .theme-founder .buy-btn {
    border-radius: 999px !important;
    border: 1px solid rgba(255,255,255,.22) !important;
    background: linear-gradient(135deg, rgba(255,217,83,.92), rgba(185,208,255,.78)) !important;
    color: #071018 !important;
    box-shadow: 0 14px 34px rgba(0,0,0,.40);
    padding: 16px 32px !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    display: inline-block !important;
    min-width: 200px !important;
    text-align: center !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
  }
  
  .theme-founder .buy-btn:hover {
    background: rgba(255,255,255,.12) !important;
    border-color: rgba(255,255,255,.30) !important;
  }
  
  /* モバイル時の余白調整 */
  @media (max-width: 680px) {
    .theme-founder #hero.hero .inner { padding: 44px 18px; }
    .theme-founder #hero.hero .cta .button {
      padding: 14px 24px !important;
      font-size: 16px !important;
      min-width: 160px !important;
    }
    .theme-founder #founder.spotlight .cta .button,
    .theme-founder #about-founder.spotlight .cta .button {
      padding: 14px 24px !important;
      font-size: 16px !important;
      min-width: 160px !important;
    }
    .theme-founder #get-started.cta-band .button {
      padding: 14px 24px !important;
      font-size: 16px !important;
      min-width: 160px !important;
    }
    .theme-founder .buy-btn {
      padding: 14px 24px !important;
      font-size: 16px !important;
      min-width: 160px !important;
    }
    .theme-founder .detail-btn {
      padding: 14px 24px !important;
      font-size: 16px !important;
      min-width: 160px !important;
    }
  }
  
   /* 赤系をFounder向けに置換 */
.theme-founder .is-active,
.theme-founder .active,
.theme-founder [style*="red"] {
  color: #FFD953 !important;
  border-color: rgba(255,217,83,.45) !important;
  background-color: rgba(255,217,83,.12) !important;
}

/* LP画像の後にマージンを追加 */
.theme-founder .hero-image,
/* Visionセクションの本文に上マージンを追加 */
.theme-founder #vision.spotlight .inner > p {
  margin-top: 1rem !important;
}

/* Whyセクションのarticle内のh3とpにマージンを追加 */
.theme-founder #why article h3 {
  margin-bottom: 1rem !important;
}

.theme-founder #why article p {
  margin-bottom: 5rem !important;
}

/* Whatセクションのarticle内のh3とpにマージンを追加 */
.theme-founder #what article h3 {
  margin-bottom: 1rem !important;
}

.theme-founder #what article p {
  margin-bottom: 5rem !important;
}

/* Founderセクションのbulletsリストの後にマージンを追加 */
.theme-founder #founder.spotlight .bullets,
.theme-founder #about-founder.spotlight .bullets {
  margin-bottom: 1rem !important;
}

/* 各セクションのh2をセンタリング */
.theme-founder #vision.spotlight .inner > h2,
.theme-founder #why.features .inner > h2,
.theme-founder #what.spotlights .inner > h2,
.theme-founder #founder.spotlight .inner > h2,
.theme-founder #about-founder.spotlight .inner > h2,
.theme-founder #how.features .inner > h2,
.theme-founder #faq.spotlight .inner > h2,
.theme-founder #get-started.cta-band .inner > h2 {
  text-align: center !important;
}

/* get-startedセクションのpとボタンをセンタリング */
.theme-founder #get-started.cta-band .inner > p,
.theme-founder #get-started.cta-band .inner > .button {
  text-align: center !important;
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* ロゴの縦横比を保持 */
.theme-founder header .logo img {
  width: auto !important;
  height: 60px !important;
  object-fit: contain !important;
}

/* ヘッダーのログインボタンをaboutと同じサイズに */
.theme-founder header .login.btn {
  border-radius: 999px !important;
  border: 1px solid rgba(255,255,255,.22) !important;
  background: rgba(255,255,255,.08) !important;
  color: rgba(255,255,255,.92) !important;
  box-shadow: 0 14px 34px rgba(0,0,0,.40);
  padding: 16px 32px !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  display: inline-block !important;
  min-width: 200px !important;
  text-align: center !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
}

.theme-founder header .login.btn:hover {
  background: rgba(255,255,255,.12) !important;
  border-color: rgba(255,255,255,.30) !important;
}

/* モバイル時のログインボタンサイズ調整 */
@media (max-width: 680px) {
  .theme-founder header .login.btn {
    padding: 14px 24px !important;
    font-size: 16px !important;
    min-width: 160px !important;
  }
}

/* メニューのスタイル調整 */
.theme-founder .gmenu .contents {
  background: #2a2a2a !important;
  color: #fff !important;
}

/* メニュー内のh1（アカウント、メニュー）を小さく */
.theme-founder .gmenu .contents section h1 {
  font-size: 0.9rem !important;
  color: #fff !important;
  margin-bottom: 1rem !important;
}

/* メニュー内のテキストを白に */
.theme-founder .gmenu .contents,
.theme-founder .gmenu .contents * {
  color: #fff !important;
}

/* メニュー内のボタンをタブボタンと同じ高さに */
.theme-founder .gmenu .contents .btn {
  border-radius: 999px !important;
  border: 1px solid rgba(255,255,255,.22) !important;
  background: rgba(255,255,255,.08) !important;
  color: rgba(255,255,255,.92) !important;
  box-shadow: 0 14px 34px rgba(0,0,0,.40);
  padding: 12px 14px !important;
  /*font-size: 18px !important;*/
  /*font-weight: 600 !important;*/
  display: inline-block !important;
  min-width: 200px !important;
  text-align: center !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
}

.theme-founder .gmenu .contents .btn:hover {
  background: rgba(255,255,255,.12) !important;
  border-color: rgba(255,255,255,.30) !important;
}

.theme-founder .gmenu .contents .btn.white {
  background: rgba(255,255,255,.06) !important;
  color: rgba(255,255,255,.92) !important;
  border: 1px solid rgba(255,255,255,.22) !important;
}

/* メニュー内のリンクやテキストを白に */
.theme-founder .gmenu .contents a:not(.btn),
.theme-founder .gmenu .contents span {
  color: #fff !important;
}

/* モバイル時のボタンサイズ調整 */
@media (max-width: 680px) {
  .theme-founder .gmenu .contents .btn {
    padding: 12px 14px !important;
    /*font-size: 16px !important;*/
    min-width: 160px !important;
  }
}

.theme-founder .vision-image,
.theme-founder .why-image,
.theme-founder .what-image,
.theme-founder .founder-image,
.theme-founder .how-image,
.theme-founder .faq-image,
.theme-founder .get-started-image {
  margin-bottom: 20px !important;
} 

/* =========================================
   Member site: Replace "red" with premium
   (append at END of founder.css)
========================================= */

/* 主要ボタン（style.css: a.btn が赤）を置換 */
.theme-founder a.btn,
.theme-founder .btn,
.theme-founder button.btn,
.theme-founder .button.primary {
  background-color: var(--bv-blue-main);
  color: #071018;
  border-color: var(--bv-platinum-line);
}

/* whiteボタン（style.css: a.btn.white が赤枠）を置換 */
.theme-founder a.btn.white,
.theme-founder .button:not(.primary) {
  background: rgba(255,255,255,.06) !important;
  color: var(--bv-platinum) !important;
  border: 1px solid var(--bv-platinum-line) !important;
}

/* hover */
.theme-founder a.btn:hover,
.theme-founder .button:hover {
  filter: brightness(1.04);
}

/* ハンバーガー（三本線が赤）を置換 */
.theme-founder .hamburger span {
  background: var(--bv-platinum) !important;
}

/* Heroのswiper赤帯を置換 */
.theme-founder #hero .swiper-pagination-container {
  background: rgba(255,255,255,.06) !important;
  border-top: 1px solid var(--bv-platinum-line) !important;
}

/* ページネーションバーの幅を調整して1行に収める */
.theme-founder #hero .swiper-pagination-bullet {
  width: 2rem !important;
  margin: 0.15rem !important;
  background: var(--bv-blue-dark) !important;
  opacity: 1 !important;
}

/* アクティブなバーは金色に */
.theme-founder #hero .swiper-pagination-bullet-active {
  background: var(--bv-gold-main) !important;
  opacity: 1 !important;
}

/* モバイル時はさらに小さく */
@media (max-width: 680px) {
  .theme-founder #hero .swiper-pagination-bullet {
    width: 1.5rem !important;
    margin: 0.1rem !important;
  }
}

/* 非常に狭い画面ではさらに小さく */
@media (max-width: 480px) {
  .theme-founder #hero .swiper-pagination-bullet {
    width: 1.2rem !important;
    margin: 0.08rem !important;
  }
}

/* タブ類・小さい赤アクセント（例: ul.limit_tab など）を置換 */
.theme-founder ul.limit_tab li a {
  color: var(--bv-platinum) !important;
  border: 1px solid var(--bv-platinum-line) !important;
  background: rgba(255,255,255,.04) !important;
}
.theme-founder ul.limit_tab li.active a {
  color: #071018 !important;
  background: var(--bv-gold-main) !important;
  border-color: rgba(255,217,83,.55) !important;
}

/* "赤っぽい注意枠"がある場合の統一（必要なら） */
.theme-founder .bg-pink,
.theme-founder .before-pink::before {
  background-color: rgba(122,167,255,.10) !important;
}

/* CTAボタンコンテナのレイアウト調整 */
.theme-founder .cta {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  align-items: center !important;
}

/* モバイル時は縦並びで間隔を確保 */
@media (max-width: 680px) {
  .theme-founder .cta {
    flex-direction: column !important;
    gap: 16px !important;
  }
  .theme-founder .cta .button {
    width: auto !important;
    max-width: 100% !important;
  }
}

/* FAQのdetails/summaryに開閉アイコンを追加 */
.theme-founder details {
  margin-bottom: 1rem;
  border: 1px solid var(--bv-platinum-line);
  border-radius: var(--radius);
  padding: 0;
  background: rgba(255,255,255,.03);
}

.theme-founder details summary {
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
  position: relative;
  font-weight: 600;
  color: var(--bv-platinum);
  transition: all 0.3s ease;
}

.theme-founder details summary::-webkit-details-marker {
  display: none;
}

.theme-founder details summary::before {
  content: '+';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  font-weight: 300;
  color: var(--bv-gold-main);
  transition: transform 0.3s ease;
  line-height: 1;
}

.theme-founder details[open] summary::before {
  content: '−';
  transform: translateY(-50%) rotate(0deg);
}

.theme-founder details summary:hover {
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.95);
}

.theme-founder details[open] summary {
  border-bottom: 1px solid var(--bv-platinum-line);
  margin-bottom: 0;
}

.theme-founder details p {
  padding: 20px;
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

/* ログインページのスタイル */
.theme-founder #login_main {
  background: var(--bg0) !important;
  color: var(--text) !important;
}

.theme-founder #login_main .form_block {
  background: rgba(255,255,255,.03) !important;
  border: 1px solid var(--bv-platinum-line) !important;
  border-radius: var(--radius) !important;
  padding: 2rem !important;
}

/* ログインページのボタンをaboutと同じスタイルに */
.theme-founder #login_main .login.btn {
  border-radius: 999px !important;
  border: 1px solid rgba(255,255,255,.22) !important;
  background: rgba(255,255,255,.08) !important;
  color: rgba(255,255,255,.92) !important;
  box-shadow: 0 14px 34px rgba(0,0,0,.40);
  padding: 16px 32px !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  display: inline-block !important;
  min-width: 200px !important;
  text-align: center !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
}

.theme-founder #login_main .login.btn:hover {
  background: rgba(255,255,255,.12) !important;
  border-color: rgba(255,255,255,.30) !important;
}

/* BitVoyログインボタンも同じスタイルに */
.theme-founder #login_main .bitvoy-login-btn {
  border-radius: 999px !important;
  border: 1px solid rgba(255,255,255,.22) !important;
  background: linear-gradient(135deg, rgba(255,217,83,.92), rgba(185,208,255,.78)) !important;
  color: #071018 !important;
  box-shadow: 0 14px 34px rgba(0,0,0,.40);
  padding: 16px 32px !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  display: inline-block !important;
  min-width: 200px !important;
  text-align: center !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
  cursor: pointer !important;
  width: 100% !important;
}

.theme-founder #login_main .bitvoy-login-btn:hover {
  filter: brightness(1.05) !important;
}

/* ログインページのテキストを白に */
.theme-founder #login_main,
.theme-founder #login_main * {
  color: var(--text) !important;
}

.theme-founder #login_main .easy_login span,
.theme-founder #login_main .easy_login_message span {
  color: var(--muted) !important;
}

/* モバイル時のボタンサイズ調整 */
@media (max-width: 680px) {
  .theme-founder #login_main .login.btn,
  .theme-founder #login_main .bitvoy-login-btn {
    padding: 14px 24px !important;
    font-size: 16px !important;
    min-width: 160px !important;
  }
}

/* Founderタブ内のアイテムリストを767px以下で1カラムに */
@media (max-width: 767px) {
  .theme-founder #ls-list-founder .item-list li {
    width: 100% !important;
    padding: 0 0.5rem 1rem !important;
  }
}

/* coin-iconのサイズを1.2rem x 1.2remに */
.theme-founder .coin-icon {
  width: 1.2rem !important;
  height: 1.2rem !important;
  vertical-align: middle !important;
}

/* Founderタブ内のbrand-infoコンテンツをセンタリング */
.theme-founder #ls-list-founder .brand-info {
  text-align: center !important;
}

.theme-founder #ls-list-founder .display-overview {
  text-align: center !important;
}

.theme-founder #ls-list-founder .display-overview h1,
.theme-founder #ls-list-founder .display-overview p {
  text-align: center !important;
}

.theme-founder #ls-list-founder .price {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.3rem !important;
  margin-bottom: 0.3rem !important;
}

.theme-founder #ls-list-founder .remaining {
  text-align: center !important;
  margin-bottom: 0.5rem !important;
}

.theme-founder #ls-list-founder .gacha-buttons {
  display: flex !important;
  justify-content: center !important;
  gap: 0.3rem !important;
  flex-wrap: wrap !important;
}

/* affiliates.htmlの背景と文字色の問題を修正 */
.theme-founder section#affiliates .reward-item,
.theme-founder section#affiliates .payment-item,
.theme-founder section#profile .reward-item,
.theme-founder section#profile .payment-item {
  border-bottom: 1px solid var(--bv-platinum-line) !important;
  color: var(--text) !important;
}

.theme-founder section#affiliates .reward-title,
.theme-founder section#affiliates .payment-date,
.theme-founder section#affiliates .reward-title,
.theme-founder section#affiliates .payment-date,
.theme-founder section#profile .reward-title,
.theme-founder section#profile .payment-date {
  color: var(--text) !important;
}

.theme-founder section#affiliates .reward-info,
.theme-founder section#affiliates .reward-info strong,
.theme-founder section#profile .reward-info,
.theme-founder section#profile .reward-info strong {
  color: var(--muted) !important;
}

.theme-founder section#affiliates .reward-info strong,
.theme-founder section#profile .reward-info strong {
  color: var(--text) !important;
}

.theme-founder section#affiliates .reward-amount,
.theme-founder section#affiliates .payment-amount,
.theme-founder section#profile .reward-amount,
.theme-founder section#profile .payment-amount {
  color: var(--bv-gold-main) !important;
}

.theme-founder section#affiliates .tab-buttons,
.theme-founder section#profile .tab-buttons {
  border-bottom: 1px solid var(--bv-platinum-line) !important;
}

.theme-founder section#affiliates .tab-button,
.theme-founder section#profile .tab-button {
  background: rgba(255,255,255,.05) !important;
  color: var(--text) !important;
  border: 1px solid var(--bv-platinum-line) !important;
}

.theme-founder section#affiliates .tab-button.active,
.theme-founder section#profile .tab-button.active {
  background: rgba(255,255,255,.1) !important;
  border-bottom: 2px solid var(--bv-gold-main) !important;
  color: var(--text) !important;
}

/* インラインスタイルで指定された色を上書き */
.theme-founder section#affiliates .tab-content [style*="color: #333"],
.theme-founder section#affiliates .tab-content h1[style*="color: #333"],
.theme-founder section#affiliates .tab-content h2[style*="color: #333"],
.theme-founder section#affiliates .tab-content h3[style*="color: #333"],
.theme-founder section#affiliates .tab-content p[style*="color: #333"],
.theme-founder section#affiliates .tab-content li[style*="color: #333"],
.theme-founder section#profile .tab-content [style*="color: #333"],
.theme-founder section#profile .tab-content h1[style*="color: #333"],
.theme-founder section#profile .tab-content h2[style*="color: #333"],
.theme-founder section#profile .tab-content h3[style*="color: #333"],
.theme-founder section#profile .tab-content p[style*="color: #333"],
.theme-founder section#profile .tab-content li[style*="color: #333"] {
  color: var(--text) !important;
}

.theme-founder section#affiliates .tab-content [style*="color: #666"],
.theme-founder section#profile .tab-content [style*="color: #666"] {
  color: var(--muted) !important;
}

.theme-founder section#affiliates .tab-content [style*="background: #f5f5f5"],
.theme-founder section#affiliates .tab-content [style*="background:#f5f5f5"],
.theme-founder section#profile .tab-content [style*="background: #f5f5f5"],
.theme-founder section#profile .tab-content [style*="background:#f5f5f5"] {
  background: rgba(255,255,255,.05) !important;
  color: var(--text) !important;
}

.theme-founder section#affiliates .tab-content [style*="background: #fafafa"],
.theme-founder section#affiliates .tab-content [style*="background:#fafafa"],
.theme-founder section#profile .tab-content [style*="background: #fafafa"],
.theme-founder section#profile .tab-content [style*="background:#fafafa"] {
  background: rgba(255,255,255,.05) !important;
  color: var(--text) !important;
}

.theme-founder section#affiliates .tab-content [style*="border: 1px solid #ddd"],
.theme-founder section#affiliates .tab-content [style*="border:1px solid #ddd"],
.theme-founder section#profile .tab-content [style*="border: 1px solid #ddd"],
.theme-founder section#profile .tab-content [style*="border:1px solid #ddd"] {
  border-color: var(--bv-platinum-line) !important;
}

.theme-founder section#affiliates .tab-content [style*="border: 1px solid #eee"],
.theme-founder section#affiliates .tab-content [style*="border:1px solid #eee"],
.theme-founder section#profile .tab-content [style*="border: 1px solid #eee"],
.theme-founder section#profile .tab-content [style*="border:1px solid #eee"] {
  border-color: var(--bv-platinum-line) !important;
}

.theme-founder section#affiliates .tab-content hr[style*="border-top: 2px solid #ddd"],
.theme-founder section#profile .tab-content hr[style*="border-top: 2px solid #ddd"] {
  border-top-color: var(--bv-platinum-line) !important;
}

/* affiliates.html全体の背景と文字色のコントラストを改善 */
.theme-founder section#affiliates {
  background: transparent !important;
  color: var(--text) !important;
}

.theme-founder section#affiliates * {
  color: inherit;
}

.theme-founder section#affiliates .contents {
  background: transparent !important;
  color: var(--text) !important;
}

.theme-founder section#affiliates .contents * {
  color: inherit;
}

/* すべてのテキスト要素の色を明示的に設定 */
.theme-founder section#affiliates h1,
.theme-founder section#affiliates h2,
.theme-founder section#affiliates h3,
.theme-founder section#affiliates h4,
.theme-founder section#affiliates p,
.theme-founder section#affiliates li,
.theme-founder section#affiliates span,
.theme-founder section#affiliates div,
.theme-founder section#affiliates label {
  color: var(--text) !important;
}

.theme-founder section#affiliates strong {
  color: var(--text) !important;
  font-weight: 600 !important;
}

/* preとcode要素の背景と文字色 */
.theme-founder section#affiliates pre {
  background: rgba(255,255,255,.05) !important;
  border: 1px solid var(--bv-platinum-line) !important;
  color: var(--text) !important;
}

.theme-founder section#affiliates code {
  background: rgba(255,255,255,.05) !important;
  color: var(--text) !important;
}

/* 入力フィールドの背景と文字色 */
.theme-founder section#affiliates input[type="text"],
.theme-founder section#affiliates input[type="password"],
.theme-founder section#affiliates textarea {
  background: rgba(255,255,255,.08) !important;
  border: 1px solid var(--bv-platinum-line) !important;
  color: var(--text) !important;
}

.theme-founder section#affiliates input[type="text"]::placeholder,
.theme-founder section#affiliates input[type="password"]::placeholder,
.theme-founder section#affiliates textarea::placeholder {
  color: var(--muted) !important;
}

/* ボタンの背景と文字色（インラインスタイルを上書き） */
.theme-founder section#affiliates .btn,
.theme-founder section#affiliates button {
  background: var(--bv-gold-main) !important;
  color: #000 !important;
  border: 1px solid var(--bv-gold-main) !important;
}

.theme-founder section#affiliates .btn:hover,
.theme-founder section#affiliates button:hover {
  background: var(--bv-gold-soft) !important;
  color: #000 !important;
}

/* リストアイテムの色 */
.theme-founder section#affiliates ul li {
  color: var(--text) !important;
}

.theme-founder section#affiliates ul li p {
  color: var(--text) !important;
}

/* 空のメッセージの色 */
.theme-founder section#affiliates .contents ul li p {
  color: var(--muted) !important;
}

/* 支払い設定タブの追加スタイル */
.theme-founder section#affiliates #wallet-address-container p {
  color: var(--muted) !important;
}

.theme-founder section#affiliates #wallet-address-container label {
  color: var(--text) !important;
}

/* フッターの言語切り替えボタンのスタイル（oripa.htmlと同じ） */
footer nav#fnav dl dd a.header_lang {
  display: inline-block !important;
  width: auto !important;
  min-width: 150px !important;
  margin: 0.3rem !important;
  padding: 0.3rem 0.6rem !important;
  text-align: center !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
}

.theme-founder section#affiliates #wallet-address-container h2 {
  color: var(--text) !important;
}

/* profile.htmlの文字色の問題を修正 */
.theme-founder section#profile .contents {
  color: var(--text) !important;
}

.theme-founder section#profile .contents * {
  color: inherit !important;
}

.theme-founder section#profile #dispNickName {
  color: var(--text) !important;
  font-weight: 600 !important;
}

.theme-founder section#profile .url_category {
  color: var(--text) !important;
  font-weight: 600 !important;
}

/* profile.htmlの背景色を確認・調整 */
.theme-founder section#profile .contents {
  background: transparent !important;
}

.theme-founder section#profile .nickname {
  background: transparent !important;
  color: var(--text) !important;
}

/* profile.htmlの特定セクションの背景色を#423a20に */
.theme-founder section#profile .nickname-edit {
  background: #000 !important;
}

.theme-founder section#profile .email-display {
  background: #000 !important;
}

.theme-founder section#profile .url_list {
  background: #000 !important;
  color: var(--text) !important;
}

/* profile.htmlのh2要素の背景色を#2649c9に */
.theme-founder section#profile h2.nicknm,
.theme-founder section#profile h2.email-setting,
.theme-founder section#profile h2.prof-url {
  background: #2649c9 !important;
  color: var(--text) !important;
}

.theme-founder h2.cart-history {
  background: #3a2d1b !important;
}

.theme-founder .pagetop a::after {
  content: "";
  position: absolute;
  top: 1.4rem;
  right: 1.2rem;
  width: 0.5rem;
  height: 0.5rem;
  border-top: 0.1rem solid #fff;
  border-right: 0.1rem solid #fff;
  -webkit-transform: rotate(-45deg);
  transform: rotate(-45deg);
}

.theme-founder .checkout-button {
  flex: 1;
  padding: 12px 14px !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  background: rgba(255,255,255,.06) !important;   /* 上品な半透明 */
  color: rgba(255,255,255,.86) !important;
  cursor: pointer;
  border-radius: 999px !important;
  letter-spacing: .2px;
  box-shadow: 0 10px 26px rgba(0,0,0,.35);
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}

/* hover */
.theme-founder .checkout-button:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,.10) !important;
  border-color: rgba(255,255,255,.22) !important;
}

/* active: ゴールドを“下線”じゃなく“上品なリング＋控えめグロー”に */
.theme-founder .checkout-button.active {
  background: linear-gradient(135deg, rgba(255,217,83,.18), rgba(122,167,255,.10)) !important;
  border-color: rgba(255,217,83,.45) !important;
  color: rgba(255,255,255,.95) !important;
  box-shadow: 0 16px 36px rgba(0,0,0,.45), 0 0 0 1px rgba(255,217,83,.20) inset;
}

/* 既存の「border-bottom:2px solid ...」が見え方を崩すので無効化 */
.theme-founder .checkout-button {
  border-bottom: 1px solid rgba(255,255,255,.14) !important;
}

.theme-founder .founder-badge-image {
  width: 95%;
  height: 95%;
  margin: 0 auto;
}

.theme-founder .detail-btn {
  border-radius: 999px !important;
  border: 1px solid rgba(255,255,255,.22) !important;
  background: rgba(255,255,255,.08) !important;
  color: rgba(255,255,255,.92) !important;
  box-shadow: 0 14px 34px rgba(0,0,0,.40);
  padding: 16px 32px !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  display: inline-block !important;
  min-width: 200px !important;
  text-align: center !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
  cursor: pointer !important;
}

.theme-founder .detail-btn:hover {
  background: rgba(255,255,255,.12) !important;
  border-color: rgba(255,255,255,.30) !important;
}

.theme-founder .bullets li {
  margin-bottom: 1rem;
}

/* RWA Section */
.theme-founder .rwa-section {
  margin-top: 3rem;
  margin-bottom: 2rem;
}

.theme-founder .rwa-section p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
  color: var(--muted);
  font-size: inherit;
}

.theme-founder .rwa-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 1.5rem;
}

.theme-founder .rwa-toggle-btn:hover {
  background: var(--panel);
  border-color: var(--line2);
  transform: translateY(-2px);
}

.theme-founder .rwa-toggle-icon {
  display: inline-block;
  transition: transform 0.3s ease;
  font-size: 0.875rem;
}

.theme-founder .rwa-table-wrapper {
  overflow: hidden;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
  }
  to {
    opacity: 1;
    max-height: 2000px;
  }
}

.theme-founder .rwa-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  background: var(--panel);
  border-radius: var(--radius);
  overflow: hidden;
}

.theme-founder .rwa-table thead {
  background: var(--panel2);
}

.theme-founder .rwa-table th {
  padding: 1rem 1.5rem;
  text-align: left;
  font-weight: 600;
  color: var(--text);
  border-bottom: 2px solid var(--line);
}

.theme-founder .rwa-table td {
  padding: 1rem 1.5rem;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.theme-founder .rwa-table tbody tr:last-child td {
  border-bottom: none;
}

.theme-founder .rwa-table tbody tr:hover {
  background: var(--panel2);
}

.theme-founder .rwa-table th:first-child,
.theme-founder .rwa-table td:first-child {
  width: 20%;
  font-weight: 600;
  color: var(--text);
}

.theme-founder .rwa-table th:last-child,
.theme-founder .rwa-table td:last-child {
  width: 80%;
}