:root {
  --bg-color-primary: #2a2fc8;   /* CCIGブルー（デザインデータの値に合わせて調整） */
  --bg-color-text: #222;
  --bg-color-sub: #666;
  --bg-color-gray: #f6f6f6;
  --bg-color-line: #e3e3e3;
  --bg-color-tag: #222;
  --bg-radius: 16px;
}

.t-mainContent {
  padding-bottom: 160px;
}
@media screen and (max-width: 680px),
screen and (max-width: 737px) and (orientation: landscape) {
  .t-mainContent {
    padding-bottom: 100px;
  }
}

/* 白い本文エリア（左寄せ・右上角丸） */
.bg-body {
  width: 1060px;
  max-width: 92%;
  margin: 0 auto;
}
@media screen and (max-width: 680px),
screen and (max-width: 737px) and (orientation: landscape) {
  .bg-body { 
    margin-top: 50px;
  }
}

.bg-title {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.4;
  margin-top: 0;
  margin-bottom: 100px;
  padding-left: 0;
  /* デザイン上、タイトルのみ本文より少し左に出す */
  transform: translateX(-2px);
}
@media screen and (max-width: 680px),
screen and (max-width: 737px) and (orientation: landscape) {
  .bg-title { 
    font-size: 28px; 
    margin-bottom: 56px; 
  }
}

/* ---------- 施策ブロック ---------- */
.bg-item + .bg-item {
  border-top: 2px solid var(--bg-color-line);
  margin-top: 100px;
  padding-top: 100px;
}
@media screen and (max-width: 680px),
screen and (max-width: 737px) and (orientation: landscape) {
  .bg-item + .bg-item {
    margin-top: 64px;
    padding-top: 64px; 
  }
}

.bg-item__intro {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 60px;
  align-items: start;
}
@media screen and (max-width: 680px),
screen and (max-width: 737px) and (orientation: landscape) {
  .bg-item__intro { 
    grid-template-columns: 1fr; 
    gap: 24px; 
  }
}
.bg-item__thumb {
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-color-gray);
  aspect-ratio: 4 / 3;
}
@media screen and (max-width: 680px),
screen and (max-width: 737px) and (orientation: landscape) {
  .bg-item__thumb { 
    order: -1;
    max-width: 100%; 
  }
}
.bg-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bg-item__label {
  margin: 0 0 8px;
  color: var(--bg-color-primary);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
}
@media screen and (max-width: 680px),
screen and (max-width: 737px) and (orientation: landscape) {
  .bg-item__label { 
    font-size: 12px;
  }
}
.bg-item__title {
  margin: 0 0 24px;
  color: var(--bg-color-primary);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.55;
}
@media screen and (max-width: 680px),
screen and (max-width: 737px) and (orientation: landscape) {
  .bg-item__title { 
    font-size: 22px;
  }
}
.bg-item__lead {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 700;
}
@media screen and (max-width: 680px),
screen and (max-width: 737px) and (orientation: landscape) {
  .bg-item__lead { 
    font-size: 16px; 
  }
}
.bg-item__desc {
  margin: 0;
  color: var(--bg-color-sub);
  font-size: 16px;
  line-height: 2;
}
@media screen and (max-width: 680px),
screen and (max-width: 737px) and (orientation: landscape) {
  .bg-item__desc {
    font-size: 14px; 
  }
}


/* ---------- 開閉ボタン ---------- */
.bg-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  min-width: 320px;
  margin-top: 32px;
  padding: 16px 20px 16px 22px;
  background: var(--bg-color-gray);
  border: none;
  border-radius: 8px;
  color: var(--bg-color-text);
  font: inherit;
  font-size: 15px;
  cursor: pointer;
  transition: background-color .2s;
}
@media screen and (max-width: 680px),
screen and (max-width: 737px) and (orientation: landscape) {
  .bg-toggle { 
    width: 100%; 
    min-width: 0; 
    font-size: 14px; 
    padding: 14px 16px; 
  }
}
.bg-toggle:hover { background: #ececec; }
.bg-toggle:focus-visible { outline: 2px solid var(--bg-color-primary); outline-offset: 2px; }
.bg-toggle__text {
  font-weight: 700;
}
/* ＋ / − アイコン */
.bg-toggle__icon {
  position: relative;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.bg-toggle__icon::before,
.bg-toggle__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 14px;
  height: 2px;
  margin-top: -1px;
  background: var(--bg-color-primary);
  transition: transform .3s;
}
.bg-toggle__icon::after { transform: rotate(90deg); }
.bg-toggle[aria-expanded="true"] .bg-toggle__icon::after { transform: rotate(0deg); }

/* ---------- 開閉パネル ---------- */
.bg-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .4s ease;
}
.bg-panel.is-open { grid-template-rows: 1fr; }
.bg-panel__inner {
  overflow: hidden;
  visibility: hidden;
  transition: visibility .4s;
}
.bg-panel.is-open .bg-panel__inner { visibility: visible; }

.bg-panel__box {
  margin-top: 32px;
  padding: 48px 48px 56px;
  background: var(--bg-color-gray);
  border-radius: var(--bg-radius);
}
@media screen and (max-width: 680px),
screen and (max-width: 737px) and (orientation: landscape) {
  .bg-panel__box { 
    padding: 28px 18px 32px; 
  }
}
/* 説明ブロック */
.bg-detail + .bg-detail { 
  margin-top: 40px; 
}
@media screen and (max-width: 680px),
screen and (max-width: 737px) and (orientation: landscape) {
  .bg-detail + .bg-detail { 
    margin-top: 28px; 
  }
}
.bg-detail__heading {
  display: inline-block;
  margin: 0 0 14px;
  padding: 3px 10px;
  background: var(--bg-color-tag);
  border-radius: 3px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
}
@media screen and (max-width: 680px),
screen and (max-width: 737px) and (orientation: landscape) {
  .bg-detail__heading { 
    font-size: 13px; 
  }
}
.bg-detail__text {
  margin: 0;
  color: var(--bg-color-sub);
  font-size: 16px;
  line-height: 2;
}
@media screen and (max-width: 680px),
screen and (max-width: 737px) and (orientation: landscape) {
  .bg-detail__text {
    font-size: 14px; 
  }
}

.bg-divider {
  margin: 48px 0 48px;
  border: none;
  border-top: 1px solid #dcdcdc;
}
@media screen and (max-width: 680px),
screen and (max-width: 737px) and (orientation: landscape) {
  .bg-divider { 
    margin: 32px 0; 
  }
}

/* =========================================================
   成果物ギャラリー
   ・カラム数はクラスで切替：bg-media--col1 / col2 / col3 / col4
   ・YouTube埋め込み：bg-media--video
   ・縦長素材を1枚で見せる場合：bg-media--col1 bg-media--narrow
   ・セクションの並び順は自由
========================================================= */
.bg-media + .bg-media {
  margin-top: 56px;
}
@media screen and (max-width: 680px),
screen and (max-width: 737px) and (orientation: landscape) {
  .bg-media + .bg-media { 
    margin-top: 36px; 
  }
}

.bg-media__caption {
  margin: 0 0 16px;
  color: var(--bg-color-sub);
  font-size: 15px;
  font-weight: 400;
}
@media screen and (max-width: 680px),
screen and (max-width: 737px) and (orientation: landscape) {
  .bg-media__caption { 
    font-size: 13px; 
  }
}
.bg-media__list {
  --bg-cols: 1;
  display: grid;
  grid-template-columns: repeat(var(--bg-cols), minmax(0, 1fr));
  gap: 20px;
}
@media screen and (max-width: 680px),
screen and (max-width: 737px) and (orientation: landscape) {
  .bg-media__list { 
    gap: 10px; 
  }
}
.bg-media--col1 .bg-media__list { --bg-cols: 1; }
.bg-media--col2 .bg-media__list { --bg-cols: 2; }
.bg-media--col3 .bg-media__list { --bg-cols: 3; }
.bg-media--col4 .bg-media__list { --bg-cols: 4; }

@media screen and (max-width: 680px),
screen and (max-width: 737px) and (orientation: landscape) {
  .bg-media--col3 .bg-media__list,
  .bg-media--col4 .bg-media__list { 
    --bg-cols: 2; 
  }
}
.bg-media__item img {
  display: block;
  width: 100%;
  height: auto;
  background: #e6e6e6;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .08);
}

/* 縦長素材用：中央寄せで幅を絞る */
.bg-media--narrow .bg-media__list {
  max-width: 640px;
  margin: 0 auto;
}

/* YouTube（16:9） */
.bg-video {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}
.bg-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}