/* ============================================
   サイト全体ラッパー（白背景 / 1030px中央寄せ）
============================================ */
.site-wrap {
  max-width: 1030px;
  margin: 0 auto;
  background: #fff;
  min-height: 100vh;
}

/* ============================================
   ページレイアウト (PC: 2カラム / SP: 1カラム)
============================================ */
.l-page {
  max-width: 1030px;
  margin: 0 auto;
  padding: 16px;
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: flex-start;
}

/* メインエリア */
.l-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* メイン内グリッド */
.l-main-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
}
.l-content-a { grid-column: 1 / -1; }
.l-content-b { grid-column: 1 / 2; }
.l-content-c { grid-column: 2 / 3; }

/* バナーエリア */
.l-banner-area {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.l-banner-item {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  line-height: 0;
}
.l-banner-item img { display: block; width: 100%; height: auto; }
.l-banner-item a { display: block; }
.l-banner-item a img { width: 100%; height: auto; transition: opacity 0.2s; }
.l-banner-item a:hover img { opacity: 0.85; }

/* サイドバー */
.l-sidebar {
  width: 280px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 16px;
}

/* フリースペース */
.l-freespace {
  background: #111;
  border-radius: 10px;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  color: #e8a020;
  font-size: 16px;
  font-weight: bold;
}
.l-freespace .sub {
  font-size: 12px;
  color: #e8a02066;
  font-weight: normal;
}

/* SP (767px以下) */
@media (max-width: 767px) {
  .l-page {
    flex-direction: column;
    padding: 12px;
    gap: 12px;
  }
  .l-main { width: 100%; }
  .l-main-grid { grid-template-columns: 1fr; }
  .l-content-a,
  .l-content-b,
  .l-content-c { grid-column: 1 / -1; }
  .l-sidebar { width: 100%; position: static; }
}

/* デモボックス (実装時に削除) */
.demo-box {
  background: #111;
  border-radius: 10px;
  padding: 40px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  color: #e8a020;
  font-size: 22px;
  font-weight: bold;
  min-height: 180px;
  text-align: center;
  line-height: 1.5;
}
.demo-box .sub { font-size: 14px; color: #e8a02088; font-weight: normal; }
.demo-box--a { min-height: 140px; font-size: 26px; }
.demo-box--banner {
  background: #1a1a2e;
  border: 2px dashed #e8a020;
  border-radius: 8px;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  color: #e8a020;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
}
.demo-sidebar-item {
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e0e0e0;
}
.demo-sidebar-item img { width: 100%; height: auto; display: block; }
.demo-sidebar-notice {
  background: #fff8f8;
  border: 2px solid #e00;
  border-radius: 8px;
  padding: 14px;
  font-size: 13px;
  line-height: 1.7;
  color: #333;
}
.demo-sidebar-notice .notice-title {
  font-size: 16px;
  font-weight: bold;
  color: #e00;
  margin-bottom: 6px;
}
