/* --- 共通の解説エリア（bb-content）の強化 --- */
.bb-hero {
    background-color: #f8fafc;
    /* 非常に薄いドット模様を追加 */
    background-image: radial-gradient(#e2e8f0 1px, transparent 1px);
    background-size: 20px 20px;
}
.bb-content {
  margin-top: 2rem;
  line-height: 1.8;
  max-width: 850px;
  width: 100%;
  margin:0 auto;
}

@media (max-width: 768px) {
  .bb-content {
    /* 幅を100%から左右15px分（計30px）引いた値にする */
    width: calc(100% - 20px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    
    /* もし文字が端に寄りすぎるのを防ぐならpaddingでも可 */
    /* padding: 0 15px !important; */
    /* box-sizing: border-box !important; */
  }
}

.bb-content h2 {
  /* 上の余白を 2.5rem → 4rem に広げ、前後の文脈を分ける */
  /* 下の余白を 1.2rem → 1.8rem にして、直後の文章にゆとりを持たせる */
  margin: 4rem 0 1.8rem; 
  font-size: 24px; /* わずかに大きくして視認性をアップ */
  border-bottom: 2px solid var(--bb-border);
  padding-bottom: 12px; /* 下線との距離も少し広げる */
  color: var(--bb-text);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.bb-content h3 {
  /* H3も同様に上の余白を 2rem → 3rem に調整 */
  margin: 3rem 0 1.2rem;
  font-size: 19px;
  color: var(--bb-text);
  display: flex;
  align-items: center;
  letter-spacing: 0.5px;
}

/* 小見出しの前にアイコンっぽいアクセント */
.bb-content h3::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 1.2em;
  background: var(--bb-primary);
  margin-right: 10px;
  border-radius: 2px;
}

.bb-content p {
  margin: 0 0 1.2rem;
  color: #374151; /* 少し柔らかい黒に */
  font-size: 15px;
  letter-spacing: 0.5px;
}

.bb-content ul, 
.bb-content ol {
  margin: 0 0 2rem 1.8rem; /* 左マージンを少しだけ増やす */
  padding: 0;
}

.bb-content li {
  margin-bottom: 0.6rem;
  font-size: 15px;
  color: #374151;
  letter-spacing: 0.5px;
  /* 数字やポッチが枠外に飛び出さないように調整 */
  padding-left: 0.2rem; 
}

/* 強調や注釈用の共通パーツ */
.bb-alert {
  padding: 20px;
  border-radius: 12px;
  margin: 1.5rem 0;
  font-size: 14px;
  letter-spacing: 0.5px;
}
.bb-alert--info {
  background: var(--bb-soft);
  border: 1px solid var(--bb-border);
}
/* -----------------------------------------
   ツール解説セクション（2段階構成）
-------------------------------------------- */
.tool-expl-visual {
    margin: 4rem 0;
}

.expl-unit {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 80px;
}

/* 交互配置の設定 */
.expl-unit.reverse {
    flex-direction: row-reverse;
}

.expl-text {
    flex: 1;
}

/* キャッチコピー（h3を使わない太字） */
.expl-title {
    font-size: 24px;
    font-weight: bold;
    line-height: 1.4;
    margin-bottom: 20px;
    color: #111;
}

.expl-text p {
    font-size: 16px;
    line-height: 1.8;
    color: #4b5563;
}

.expl-image {
    flex: 1;
    text-align: center;
}

.expl-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    display: block; 
    margin: 0 auto; 
}

/* テクニカル仕様セクション */
.tool-expl-detail {
    padding: 60px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 60px;
}

/* スマホ対応（768px以下で縦並び） */
@media (max-width: 768px) {
    .expl-unit, .expl-unit.reverse {
        flex-direction: column-reverse;
        gap: 30px;
    }
    .expl-title {
        font-size: 20px;
    }
}

/*  導入ステップHTML  */

.tool-intro-steps-full {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    /* 背景色（グラデーション）とドット（radial-gradient）を組み合わせて指定 */
    background-color: #7d66bd; /* フォールバック */
    background-image: 
        radial-gradient(rgba(255, 255, 255, 0.3) 1px, transparent 1px), 
        linear-gradient(135deg, #7d66bd 0%, #ff62b4 100%);
    /* ドットの間隔（サイズ）を指定：ここが重要 */
    background-size: 30px 30px, auto; 
    padding: 60px 0 100px;
    margin-bottom: 40px;
}

.steps-wrapper {
  max-width: var(--bb-max);
  width: 92%;
  margin: 0 auto;
}

.steps-title {
  color: #fff;
  text-align: left;
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 30px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.steps-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.step-card {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.step-card:hover {
  transform: translateY(-5px);
}

.step-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: #f3f4f6;
  color: #1f2937;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-content h3 {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 8px;
  color: #111;
}

.step-content p {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.6;
  margin: 0;
}

/* スマホ調整 */
@media (max-width: 768px) {
  .steps-title { text-align: center; }
  .step-card { flex-direction: column; align-items: center; text-align: center; }
  .steps-container { grid-template-columns: 1fr; }
  .tool-intro-steps-full {padding: 20px 0 100px;}
}
