:root{
  --bc-bg1: #0b1220;
  --bc-bg2: #0f1b33;
  --bc-accent: #c9a14a;
  --bc-accent2: #e0c06f;
  --bc-ok: #22c55e;
  --bc-text: rgba(255,255,255,0.92);
  --bc-muted: rgba(255,255,255,0.75);
  --bc-muted2: rgba(255,255,255,0.58);
  --bc-line: rgba(255,255,255,0.14);
  --bc-panel: rgba(255,255,255,0.07);
  --bc-shadow: 0 16px 40px rgba(0,0,0,.35);
  --bc-r: 18px;
  --bc-r2: 26px;
  --bc-max: 1120px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  color: var(--bc-text);
  background:
    radial-gradient(1200px 800px at 10% 10%, color-mix(in srgb, var(--bc-accent) 26%, transparent), transparent 60%),
    radial-gradient(900px 700px at 90% 20%, color-mix(in srgb, var(--bc-accent2) 18%, transparent), transparent 55%),
    radial-gradient(900px 700px at 50% 120%, color-mix(in srgb, var(--bc-ok) 12%, transparent), transparent 55%),
    linear-gradient(180deg, var(--bc-bg1) 0%, var(--bc-bg2) 100%);
}
body.bc-menuOpen{ overflow:hidden; }

.bc-container{ width:min(var(--bc-max), calc(100% - 40px)); margin:0 auto; }

.bc-header{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(12px);
  background: rgba(7,11,20,.62);
  border-bottom:1px solid rgba(255,255,255,.10);
}
.bc-header__inner{ display:flex; align-items:center; justify-content:space-between; padding:14px 0; gap:16px; }
.bc-brand{ display:flex; align-items:center; gap:12px; font-weight:800; text-decoration:none; color:inherit; min-width:0; }
.bc-brand__mark{ width:38px; height:38px; border-radius:12px; background: linear-gradient(135deg, var(--bc-accent), var(--bc-ok)); box-shadow: 0 14px 26px rgba(58,167,255,.18); flex:0 0 auto; }
.bc-brand__name{ color: var(--bc-text); font-size:16px; letter-spacing:.2px; }
.bc-brand__sub{ display: none; font-size:12px; color:var(--bc-muted2); margin-left:6px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width: 38vw; }
@media (max-width: 768px){
  .bc-brand__sub{
    display: none;
  }
}
.bc-nav{ display:flex; align-items:center; gap:16px; color:var(--bc-muted); font-size:14px; }
.bc-nav a{ color:inherit; text-decoration:none; opacity:.9; }
.bc-nav a:hover{ opacity:1; }

.bc-menuBtn{
  display:none;
  width:42px; height:42px;
  border-radius:14px;
  border:1px solid var(--bc-line);
  background: rgba(255,255,255,.06);
  color: var(--bc-text);
  align-items:center; justify-content:center;
}
.bc-menuBtn svg{ width:20px; height:20px; }

.bc-drawerOverlay{
  position:fixed; inset:0;
  background: rgba(0,0,0,.55);
  opacity:0; pointer-events:none;
  transition: opacity .18s ease;
  z-index:80;
}
body.bc-menuOpen .bc-drawerOverlay{ opacity:1; pointer-events:auto; }

.bc-drawer{
  position:fixed; top:0; right:0; height:100%;
  width:min(360px, 86vw);
  background: rgba(7,11,20,.92);
  backdrop-filter: blur(14px);
  border-left:1px solid rgba(255,255,255,.10);
  transform: translateX(102%);
  transition: transform .22s ease;
  z-index:90;
  padding:16px;
  display:flex; flex-direction:column; gap:12px;
}
body.bc-menuOpen .bc-drawer{ transform: translateX(0); }

.bc-drawer__head{ display:flex; align-items:center; justify-content:space-between; gap:12px; }
.bc-drawer__title{ font-weight:950; }
.bc-drawer__close{ width:40px; height:40px; border-radius:14px; border:1px solid var(--bc-line); background: rgba(255,255,255,.06); color:var(--bc-text); display:grid; place-items:center; }
.bc-drawer__close svg{ width:18px; height:18px; }

.bc-drawerNav{ display:flex; flex-direction:column; gap:10px; margin-top:6px; }
.bc-drawerNav a{ padding:12px 12px; border-radius:14px; border:1px solid rgba(255,255,255,.10); background: rgba(255,255,255,.04); text-decoration:none; color:var(--bc-text); font-weight:800; }
.bc-drawerNav a.bc-drawerNav__cta{ background: linear-gradient(135deg, var(--bc-accent), var(--bc-accent2)); color:#06101f; border-color: transparent; }
.bc-drawerHelp{ margin-top:auto; color:var(--bc-muted2); font-size:13px; line-height:1.6; }

.bc-pill{
  display:inline-flex; gap:10px; align-items:center;
  padding:8px 12px; border:1px solid var(--bc-line);
  background:rgba(255,255,255,.05); border-radius:999px;
  font-size:13px; color:var(--bc-muted);
}
.bc-dot{ width:8px; height:8px; border-radius:999px; background:var(--bc-ok); box-shadow: 0 0 0 6px rgba(46,229,157,.08); }

.bc-btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:12px 16px; border-radius:14px;
  border:1px solid var(--bc-line);
  background: rgba(255,255,255,.06);
  color:var(--bc-text);
  font-weight:700; font-size:14px;
  text-decoration:none;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.bc-btn:hover{ transform: translateY(-1px); background: rgba(255,255,255,.085); border-color: rgba(255,255,255,.22); }
.bc-btn--primary{
  border-color: color-mix(in srgb, var(--bc-accent) 45%, transparent);
  background: linear-gradient(135deg, var(--bc-accent), var(--bc-accent2));
  color:#06101f;
}
.bc-btn--ghost{ background: rgba(255,255,255,.03); }
.bc-btn--sm{ padding:10px 12px; border-radius:12px; font-size:13px; }

.bc-hero{ padding:64px 0 32px; }
.bc-hero__grid{ display:grid; grid-template-columns: 1.15fr .85fr; gap:28px; align-items:stretch; }
.bc-hero__title{ color: var(--bc-accent2); font-size: clamp(28px, 4vw, 46px); line-height:1.12; margin:16px 0 12px; letter-spacing:-.2px; }
.bc-accent{ color: var(--bc-accent2); }
.bc-hero__lead{ color:var(--bc-muted); font-size: clamp(15px, 1.5vw, 18px); line-height:1.75; margin:0 0 18px; }
.bc-hero__actions{ display:flex; flex-wrap:wrap; gap:12px; margin:18px 0 0; }
.bc-hero__badges{ display:flex; flex-wrap:wrap; gap:10px; margin:18px 0 0; }
.bc-note{ color:var(--bc-muted2); font-size:13px; line-height:1.7; margin:10px 0 0; }
.bc-muted{ color:var(--bc-muted2); }

.bc-card{ background: var(--bc-panel); border:1px solid var(--bc-line); border-radius: var(--bc-r2); box-shadow: var(--bc-shadow); }
.bc-pad{ padding:14px; }
.bc-preview{ padding:16px; display:flex; flex-direction:column; gap:14px; min-height:100%; }

.bc-kpis{ color: var(--bc-text); display:grid; grid-template-columns: 1fr; gap:10px; }
.bc-kpi{ padding:14px; border-radius: 16px; border:1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.05); }
.bc-kpi__k{ font-size:12px; color:var(--bc-muted2); }
.bc-kpi__v{ margin-top:6px; font-weight:950; }

.bc-device{ border-radius: 18px; border:1px solid rgba(255,255,255,.14); background: rgba(0,0,0,.22); overflow:hidden; }
.bc-device__bar{ display:flex; align-items:center; gap:8px; padding:10px 12px; border-bottom:1px solid rgba(255,255,255,.10); color:rgba(255,255,255,.6); font-size:12px; }
.bc-device__dot{ width:10px; height:10px; border-radius:999px; background: rgba(255,255,255,.18); }
.bc-device__url{ margin-left:10px; }
.bc-device__screen{
  aspect-ratio: 16 / 10;
  display:grid; place-items:center;
  background:
    radial-gradient(800px 420px at 30% 30%, color-mix(in srgb, var(--bc-accent) 25%, transparent), transparent 55%),
    radial-gradient(700px 360px at 70% 20%, color-mix(in srgb, var(--bc-ok) 16%, transparent), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  color:rgba(255,255,255,.78);
  font-weight:800;
}
.bc-device__screen small{ display:block; margin-top:6px; color:rgba(255,255,255,.55); font-weight:600; }

.bc-section{ padding:56px 0; }
.bc-section--cta{ padding-top: 10px; }
.bc-section__head{ margin-bottom:18px; }
.bc-section__head--row{ display:flex; justify-content:space-between; align-items:center; gap:16px; }
.bc-h2{ color: var(--bc-text); font-size: clamp(20px, 2.2vw, 30px); margin:0; letter-spacing:-.2px; }
.bc-sub{ margin:8px 0 0; color:var(--bc-muted); line-height:1.7; max-width:66ch; font-size:15px; }

.bc-features{ color: var(--bc-text); display:grid; grid-template-columns: 1fr 1fr; gap:14px; }
.bc-feature{ padding:18px; border-radius: var(--bc-r); border:1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.05); }
.bc-feature h3{ margin:0 0 8px; font-weight:950; }
.bc-feature p{ margin:0; color:var(--bc-muted); line-height:1.75; font-size:14px; }

.bc-cards3{ display:grid; grid-template-columns: 1fr 1fr 1fr; gap:14px; }
.bc-cardItem{ padding:18px; border-radius: var(--bc-r); border:1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.05); }
.bc-cardItem h3{ margin:0 0 8px; font-weight:950; }
.bc-cardItem p{ margin:0; color:var(--bc-muted); line-height:1.75; font-size:14px; }

.bc-demoGrid{ display:grid; grid-template-columns: 1fr 1fr 1fr; gap:14px; }
.bc-shot{ padding:14px; border-radius: var(--bc-r); border:1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.05); }
.bc-shot__img{ border-radius: 14px; border:1px solid rgba(255,255,255,.12); background:
  linear-gradient(135deg, color-mix(in srgb, var(--bc-accent) 22%, transparent), color-mix(in srgb, var(--bc-ok) 12%, transparent)),
  radial-gradient(700px 420px at 20% 20%, rgba(255,255,255,.10), transparent 55%);
  aspect-ratio: 16 / 10;
  display:grid; place-items:center;
  color: rgba(255,255,255,.78);
  font-weight:900;
}
.bc-shot__cap{ margin-top:10px; color:var(--bc-muted); font-size:13px; line-height:1.6; }

.bc-table{ width:100%; border-collapse: collapse; }
.bc-table th, .bc-table td{ padding:14px 12px; border-bottom:1px solid rgba(255,255,255,.10); text-align:left; vertical-align:top; }
.bc-table th{ background: rgba(255,255,255,.05); color:rgba(255,255,255,.82); font-size:13px; width: 22%; }
.bc-table td{ color:var(--bc-muted); font-size:14px; }

.bc-content{ padding:28px 0 56px; }
.bc-article{ padding:22px; border-radius: var(--bc-r2); border:1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.05); }
.bc-h1{ color: var(--bc-text); margin:0 0 12px; font-size: clamp(20px, 2.6vw, 34px); letter-spacing:-.2px; }
.bc-meta{ color:var(--bc-muted2); font-size:13px; margin:0 0 12px; }
.bc-article__body{ color:var(--bc-muted); line-height:1.85; }

.bc-postGrid{ display:grid; grid-template-columns: repeat(3, 1fr); gap:14px; }
.bc-postCard{ border-radius: var(--bc-r); border:1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.05); }
.bc-postCard__link{ display:block; padding:16px; text-decoration:none; color:inherit; }
.bc-postCard__title{color: var(--bc-text); font-weight:950; margin-bottom:8px; }
.bc-postCard__meta{ color:var(--bc-muted2); font-size:13px; }

.bc-qualityGrid{ display:grid; grid-template-columns: 1fr 1fr; gap:12px; }
.bc-quality{ padding:14px; border-radius: 16px; border:1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); }
.bc-quality__k{ font-size:12px; color:var(--bc-muted2); }
.bc-quality__v{ margin-top:6px; font-weight:900; color:rgba(255,255,255,.88); line-height:1.5; }

.bc-cta{ padding:18px; display:flex; align-items:center; justify-content:space-between; gap:16px; }
.bc-cta__actions{ display:flex; gap:12px; flex-wrap:wrap; }

.bc-footer{ padding:34px 0 60px; border-top: 1px solid rgba(255,255,255,.08); color:var(--bc-muted2); }
.bc-footer__inner{ display:flex; justify-content:space-between; align-items:flex-start; gap:18px; }
.bc-footer__brand{ display:flex; gap:12px; align-items:center; }
.bc-footer__title{ font-weight:950; color:rgba(255,255,255,.9); }
.bc-footer__desc{ font-size:13px; }

@media (max-width: 1199px){
  .bc-nav{ display:none; }
  .bc-menuBtn{ display:inline-flex; }
  .bc-hero__grid{ grid-template-columns: 1fr; }
  .bc-features{ grid-template-columns: 1fr; }
  .bc-demoGrid{ grid-template-columns: 1fr; }
  .bc-cards3{ grid-template-columns: 1fr; }
  .bc-postGrid{ grid-template-columns: 1fr; }
  .bc-qualityGrid{ grid-template-columns: 1fr; }
  .bc-cta{ flex-direction:column; align-items:flex-start; }
  .bc-footer__inner{ flex-direction:column; }
}

/* フル幅ヒーロー画像（ヘッダー直下） */
.bc-heroVisual{
  width: 100%;
}

.bc-heroVisual img{
  width: 100%;
  height: clamp(220px, 38vw, 520px);
  object-fit: cover;
  display: block;
}

/* 画像の下にくるヒーロー本文エリア */
.bc-hero{
  padding: 32px 0 32px;
}

/* =========================
   Spacing Tuning (Override)
   ========================= */

/* コンテナ左右の余白（ガター）を増やす */
.bc-container{
  width: min(var(--bc-max), calc(100% - 56px)); /* 40px→56px */
}

/* ヒーロー（画像の下の本文エリア）を少しゆったり */
.bc-hero{
  padding: 44px 0 40px; /* 32px→44px */
}

/* セクション上下の余白を増やす */
.bc-section{
  padding: 72px 0; /* 56px→72px */
}

/* セクション見出しと本文の間 */
.bc-section__head{
  margin-bottom: 26px; /* 18px→26px */
  color: var(--bc-text);
}

/* グリッドの間隔（狭さの体感に直結） */
.bc-hero__grid{
  gap: 36px; /* 28px→36px */
}
.bc-cards3,
.bc-features,
.bc-demoGrid,
.bc-postGrid,
.bc-qualityGrid{
  gap: 18px; /* 14px前後→18px */
}

/* カード内余白を増やす */
.bc-cardItem{ color: var(--bc-text); padding: 22px; }     /* 18px→22px */
.bc-feature{ padding: 22px; }      /* 18px→22px */
.bc-shot{ padding: 18px; }         /* 14px→18px */
.bc-article{ padding: 28px; }      /* 22px→28px */
.bc-cta{ padding: 22px; }          /* 18px→22px */

/* モバイルはやり過ぎると間延びするので抑える */
@media (max-width: 1199px){
  .bc-container{
    width: min(var(--bc-max), calc(100% - 32px)); /* SPは32px程度 */
  }
  .bc-section{
    padding: 56px 0; /* SPは控えめに */
  }
  .bc-hero{
    padding: 32px 0 28px;
  }
}

.bc-hero__lead,
.bc-sub,
.bc-feature p,
.bc-cardItem p,
.bc-article__body{
  line-height: 1.85; /* 1.7〜1.75より少しゆったり */
}

/* =========================
   Hero Image Text Overlay
   ========================= */

.bc-heroVisual{
  position: relative;
}

.bc-heroVisual img{
  width: 100%;
  height: clamp(260px, 40vw, 520px);
  object-fit: cover;
  display: block;
  z-index: 1;
}

/* 文字を乗せるレイヤー */
.bc-heroOverlay{
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
}

.bc-heroOverlay__inner{
  width: min(var(--bc-max), calc(100% - 56px));
  margin: 0 auto;
  color: #fff;
}

/* サブコピー */
.bc-heroOverlay__sub{
  font-size: 14px;
  letter-spacing: .08em;
  opacity: .85;
  margin-bottom: 8px;
}

/* メインコピー */
.bc-heroOverlay__title{
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.2;
  font-weight: 700;
}

/* SP調整 */
@media (max-width: 768px){
  .bc-heroOverlay__inner{
    width: calc(100% - 32px);
  }
  .bc-heroOverlay__title{
    font-size: 28px;
  }
}
.bc-heroVisual::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.3),
    rgba(0,0,0,0.6)
  );
  z-index: 2;
  pointer-events: none;
}

/* 404.php */
.bc-404 {
  padding: 120px 0;
  text-align: center;
}

.bc-404__actions {
  margin-top: 32px;
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* 404 page - Gray */
.bc-404 .bc-h2 {
  color: #555;
}

.bc-404 .bc-btn--primary {
  background-color: #555;
  border-color: #555;
}

/* 404 page - Navy */
.bc-404 .bc-h2 {
  color: #1f2a44;
}

.bc-404 .bc-btn--primary {
  background-color: #1f2a44;
  border-color: #1f2a44;
}

/* ===== Header Search Button ===== */
.bc-searchToggle{
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 8px 10px;
  line-height: 1;
}
.bc-searchToggle:hover{ opacity: .85; }

/* Mobile drawer search button */
.bc-drawerNav__search{
  width: 100%;
  text-align: left;
  padding: 14px 12px;
  border: 1px solid #e6e6e6;
  background: #fff;
  border-radius: 10px;
}

/* ===== Search Modal ===== */
.bc-searchModal{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}
.bc-searchModal.is-open{ display: block; }

.bc-searchModal__overlay{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
}

.bc-searchModal__panel{
  position: relative;
  width: min(720px, calc(100% - 32px));
  margin: 10vh auto 0;
  background: #fff;
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}

.bc-searchModal__close{
  position: absolute;
  right: 10px;
  top: 10px;
  border: 0;
  background: transparent;
  font-size: 24px;
  cursor: pointer;
}

.bc-searchModal__title{ font-size: 18px; font-weight: 700; }
.bc-searchModal__sub{ margin-top: 6px; color: #666; font-size: 14px; }

.bc-searchModal__form form{
  margin-top: 14px;
  display: flex;
  gap: 10px;
}
.bc-searchModal__form input[type="search"],
.bc-searchModal__form input[name="s"]{
  flex: 1;
  padding: 12px 12px;
  border: 1px solid #ddd;
  border-radius: 10px;
}
.bc-searchModal__form input[type="submit"],
.bc-searchModal__form button[type="submit"]{
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--bc-accent);
  background: var(--bc-accent);
  color: #fff;
  cursor: pointer;
}

/* Scroll lock */
html.bc-modalLock, html.bc-modalLock body { overflow: hidden; }
