/* ===== BasicBuild Top LP CSS ===== */

/* Base */
body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  line-height: 1.7;
  color: #222;
  background: #ffffff;
}

/* Section */
.bb-section {
  padding: 64px 16px;
  max-width: 1000px;
  margin: 0 auto;
}

.bb-section__title {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 18px;
  color: #1f2a44;
}

.bb-section__lead {
  margin-bottom: 24px;
  color: #475569;
}

/* Hero */
.bb-top__hero {
  padding: 96px 20px 80px;
  text-align: center;
  border-radius: 20px;
  overflow: hidden;
}

.bb-top__hero-title {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 18px;
  color: #1f2a44;
}

.bb-top__hero-text {
  font-size: 17px;
  margin-bottom: 28px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  color: #334155;
}

/* Button / CTA */
.wp-block-button__link {
  background: #2F6BFF;
  color: #fff;
  border-radius: 999px;
  padding: 14px 24px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(47, 107, 255, 0.18);
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.wp-block-button__link:hover,
.wp-block-button__link:focus {
  background: #1f4ed8;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(31, 78, 216, 0.22);
}

/* Card */
.bb-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.bb-card {
  background: #ffffff;
  border: 1px solid #e8eef8;
  border-radius: 16px;
  padding: 24px;
  box-sizing: border-box;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.bb-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.10);
  border-color: #d6e4ff;
}

.bb-card__title {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 10px;
  color: #1f2a44;
}

.bb-card__text {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 16px;
  color: #475569;
}

/* List */
.bb-top__problems-list,
.bb-top__reasons-list,
.bb-top__flow-list,
.bb-service__consultations,
.bb-service__supports,
.bb-service__flow {
  padding-left: 20px;
}

.bb-top__problems-list li,
.bb-top__reasons-list li,
.bb-top__flow-list li,
.bb-service__consultations li,
.bb-service__supports li,
.bb-service__flow li {
  margin-bottom: 8px;
}

/* CTA section */
.bb-top__cta {
  text-align: center;
  background: linear-gradient(180deg, #f7f9ff 0%, #eef4ff 100%);
  border-radius: 20px;
  box-shadow: 0 10px 24px rgba(47, 107, 255, 0.06);
}

/* Lower pages */
.bb-company-page,
.bb-contact-page,
.bb-news-page,
.bb-service-index,
.bb-service-page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 48px 16px;
}

/* Front page cleanup */
.home.page-id-686 .mobile-footer-menu-buttons,
.home.page-id-686 .search-menu-button,
.home.page-id-686 .top-menu-button,
.home.page-id-686 #go-to-top,
.home.page-id-686 .home-menu-button {
  display: none !important;
}

.home.page-id-686 .entry-header,
.home.page-id-686 .article-footer,
.home.page-id-686 .footer-meta,
.home.page-id-686 .author-info,
.home.page-id-686 .date-tags,
.home.page-id-686 .post-date,
.home.page-id-686 .entry-title {
  display: none !important;
}

.home.page-id-686 .main,
.home.page-id-686 .content-in,
.home.page-id-686 .content {
  width: 100% !important;
  max-width: 100% !important;
}

.home.page-id-686 #main.bb-lp {
  max-width: 1000px;
  margin: 0 auto;
}

/* Hero image
   shortcode で出力される img をそのまま表示する */
.home.page-id-686 .bb-top__hero {
  position: relative;
  background-color: #f3f5f7;
}

.home.page-id-686 .bb-top__hero .bb-top__hero-image {
  display: block !important;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 auto 24px;
  border-radius: 16px;
  position: relative;
  z-index: 1;
}

.home.page-id-686 .bb-top__hero::before {
  content: none;
}

.home.page-id-686 .bb-top__hero > * {
  position: relative;
  z-index: 1;
}

/* Section tone */
.bb-top__problems,
.bb-top__reasons,
.bb-top__flow {
  background: #fbfdff;
  border-radius: 20px;
}

/* Hero buttons spacing */
.bb-top__hero .wp-block-buttons {
  justify-content: center;
  gap: 12px;
}

/* Service card button spacing */
.bb-card .wp-block-buttons {
  margin-top: 8px;
}

/* Mobile */
@media (max-width: 768px) {
  .bb-cards {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .bb-top__hero {
    padding: 72px 16px 56px;
    border-radius: 16px;
  }

  .bb-top__hero-title {
    font-size: 26px;
  }

  .bb-top__hero-text {
    font-size: 15px;
  }

  .bb-section,
  .bb-company-page,
  .bb-contact-page,
  .bb-news-page,
  .bb-service-index,
  .bb-service-page {
    padding: 40px 16px;
  }

  .bb-card {
    padding: 20px;
  }

  .home.page-id-686 .bb-top__hero .bb-top__hero-image {
    margin-bottom: 20px;
    border-radius: 12px;
  }
}

/* =========================
   Card image fix
========================= */

.bb-card img,
.bb-card .c-site-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  margin-bottom: 12px;
}

/* NO IMAGE placeholder */
.bb-card .c-site-image.is-missing {
  background: #f3f5f7;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9aa5b1;
  font-size: 12px;
}











/* ===== TOP UNIFIED DESIGN 2026-03-24 ===== */

/* 背景 */
body {
  background-image: url("https://www.babd.jp/sv01/wp-content/uploads/2026/02/BBHPMain.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* セクションは透明 */
.home.page-id-686 .bb-top__hero,
.home.page-id-686 .bizit-section,
.home.page-id-686 .bb-top__problems,
.home.page-id-686 .bb-top__reasons,
.home.page-id-686 .bb-top__flow,
.home.page-id-686 .bb-top__company,
.home.page-id-686 .bb-top__cta {
  background: transparent;
}

/* カード設計 */
.home.page-id-686 .bb-section,
.home.page-id-686 .bizit-section,
.home.page-id-686 .bb-top__company,
.home.page-id-686 .bb-top__cta {
  background: rgba(255,255,255,0.92);
  border-radius: 16px;
  padding: 32px 24px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

/* リストカード */
.bb-top__problems-list,
.bb-top__reasons-list,
.bb-top__flow-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.bb-top__problems-list li,
.bb-top__reasons-list li,
.bb-top__flow-list li {
  background: rgba(255,255,255,0.92);
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

/* heroは中央寄せだけ */
.bb-top__hero {
  text-align: center;
}

/* ===== /TOP UNIFIED DESIGN ===== */


/* ===== TOP BIZIT WIDTH ALIGN 2026-03-24 ===== */
.home.page-id-686 .bizit-top-section-marker.bizit-section {
  width: min(100%, 1120px);
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}
/* ===== /TOP BIZIT WIDTH ALIGN ===== */


/* ===== TOP LISTS VERTICAL ALIGN 2026-03-24 ===== */
.home.page-id-686 .bb-top__problems-list,
.home.page-id-686 .bb-top__reasons-list,
.home.page-id-686 .bb-top__flow-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  grid-template-columns: none !important;
}

.home.page-id-686 .bb-top__problems-list li,
.home.page-id-686 .bb-top__reasons-list li,
.home.page-id-686 .bb-top__flow-list li {
  width: 100% !important;
  max-width: none !important;
}
/* ===== /TOP LISTS VERTICAL ALIGN ===== */


/* ===== TOP LISTS TIGHT LINEHEIGHT 2026-03-24 ===== */
.home.page-id-686 .bb-top__problems-list li,
.home.page-id-686 .bb-top__reasons-list li,
.home.page-id-686 .bb-top__flow-list li {
  padding: 10px 14px !important;
  line-height: 1.45 !important;
  min-height: 0 !important;
}

.home.page-id-686 .bb-top__problems-list li p,
.home.page-id-686 .bb-top__reasons-list li p,
.home.page-id-686 .bb-top__flow-list li p,
.home.page-id-686 .bb-top__problems-list li,
.home.page-id-686 .bb-top__reasons-list li,
.home.page-id-686 .bb-top__flow-list li {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  line-height: 1.45 !important;
}
/* ===== /TOP LISTS TIGHT LINEHEIGHT ===== */


/* ===== BIZIT CARD HEIGHT FIX ===== */
.bb-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.bb-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.bb-card__text {
  flex-grow: 1;
}

/* ===== CTA IMAGE CENTER ===== */
.wp-block-group .p-service-card__image {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
/* ===== /FIX ===== */

