/* --- 変数定義 --- */
:root {
  --market-text: #253034;
  --market-sub: #6B7280;
  --market-blue: #0aa0dd;
  --market-highlight: #FFD966;
  --market-border: #E5E7EB;
}

/* --- レイアウト基本設定 --- */
.b2b-market-section {
  padding: 80px 0;
  color: var(--market-text);
  overflow: hidden;
}

.page-center {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  box-sizing: border-box;
}

/* --- 1. ヘッドラインエリア (中央配置) --- */
.market-header-group {
  text-align: center;      /* テキストを中央揃え */
  margin: 0 auto 48px auto; /* 中央配置 & 下に余白 */
}

.market-headline {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.4;
  margin: 0 0 16px 0;
  color: var(--market-text);
}

.market-subheadline {
  font-size: 18px;
  font-weight: 600;
  color: var(--market-blue);
  margin: 0;
  line-height: 1.6;
}

/* --- 2. グリッドエリア --- */
.market-grid {
  display: grid;
  gap: 40px;
  width: 100%;
  grid-template-columns: 1fr; /* モバイル: 1列 */
}

/* テキストエリア */
.market-content {
  width: 100%;
  /* 上下中央揃えは維持 */
  display: flex;
  flex-direction: column;
  justify-content: center; 
}

/* 本文 */
.market-body {
  font-size: 16px;
  line-height: 1.8;
  color: #374151;
}

/* 本文が1カラム(モバイル)の時だけ、少しマージン調整 */
.market-body p {
  margin: 0 0 16px 0;
}

/* ビジュアルエリア */
.market-visual {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.graph-figure {
  margin: 0;
  width: 100%;
  max-width: 600px;
}

.graph-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  background: #fff;
}

.graph-caption {
  font-size: 12px;
  color: var(--market-sub);
  margin-top: 12px;
  text-align: right;
  display: block;
}

/* --- PCレイアウト (768px以上) --- */
@media (min-width: 768px) {
  
  .market-headline {
    font-size: 38px; /* 中央配置なので少し大きくしてインパクトを出す */
  }

  /* 画像あり: 2列表示 */
  .market-grid.has-visual {
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
  }
  
  /* 画像なし: 1列表示（中央寄せ） */
  .market-grid.no-visual {
    grid-template-columns: 1fr;
    max-width: 800px;
    margin: 0 auto;
    text-align: center; /* 本文も中央揃え */
  }
}
</style>