/* 事業マップ（/group/）だけで使う見た目。色・文字・余白は layout.css（トップ・CSR）に合わせる
   青 #14A5C0 ／ 文字 #0B0B0B ／ 薄い面 #F7F9FA・#EEF3F5 ／ 英字見出し Barlow Condensed
   カード：トップと同じく縁取りや青いバーは付けない
     押せないもの（数字・実績・JSなしの会社一覧） 影なしの白い面。背景 #F5F5F5 の上に平らに置く（影を付けると押せそうに見えるため）
     押せるもの・大（スライドの正面の会社） 0 40px 80px -30px rgba(6, 80, 100, 0.22)（トップの会社概要の白い面）
     押せるもの・小（スライドの奥の会社・案内・ロゴのボタン） 0 16px 30px -14px rgba(0, 60, 80, 0.35)（トップのグループ会社のボタン） */

.bm-section {
  position: relative;
  padding: 120px 0
}

/* 薄い面はトップの COMPANY・NEWS と同じグラデーション */
.bm-section--tint {
  background: linear-gradient(180deg, #EEF3F5 0%, #F7F9FA 100%)
}

/* 背景の「#」。トップの COMPANY・NEWS、CSR と同じ画像・大きさ・重ね方で、左右交互に置く
   --depth-y は js/top-sections.js が当てる（スクロールより少し遅れて動く） */
.bm-section--mark {
  overflow: hidden; /* 「#」で横スクロールが出ないように */
  overflow: clip /* hidden だと中の図の貼り付け（sticky）が効かないので、使えるブラウザでは clip にする */
}

.bm-section--mark::before {
  content: "";
  position: absolute;
  top: 0;
  width: 1050px;
  height: 950px;
  background: url(../img/top/icon_section_logo.svg) no-repeat center center / contain;
  transform: translate3d(0, var(--depth-y, 0px), 0);
  will-change: transform;
  pointer-events: none;
  mix-blend-mode: color-dodge
}

.bm-section--mark-right::before {
  left: calc(50% - 110px)
}

.bm-section--mark-left::before {
  right: calc(50% - 110px)
}

.bm-section--mark > .cmn-content__box {
  position: relative;
  z-index: 1
}

@media screen and (max-width:639px) {
  .bm-section--mark::before {
    width: 140vw;
    height: 127vw
  }

  .bm-section--mark-right::before {
    left: 10vw
  }

  .bm-section--mark-left::before {
    right: 10vw
  }
}

.bm-lead {
  max-width: 1000px;
  font-size: 2rem;
  line-height: 2;
  letter-spacing: 0.06em;
  color: #0B0B0B
}

/* ---------- 数字 ---------- */
/* 採用ページ「数字で見る」の青い帯（.number-hero）と同じ形：本文の左端から画面の右端まで伸びる青い帯に、
   縦の細い線で区切って数字を大きく並べる。右上に薄い「#」 */
.bm-overview {
  overflow-x: clip /* 帯を画面の右端まで伸ばすぶん、横スクロールが出ないように */
}

.bm-stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 64px;
  margin-right: calc(50% - 50vw);
  /* 右へ伸ばしたぶんを右の余白に足して、数字の並びは本文の幅に収める */
  padding: 90px calc(60px + 50vw - 50%) 90px 60px;
  background: #14A5C0;
  border-radius: 40px 0 0 40px;
  color: #fff;
  overflow: hidden
}

.bm-stats::before {
  content: "";
  position: absolute;
  right: -60px;
  top: -80px;
  width: 400px;
  height: 508px;
  background: url(../img/cmn/icon_ttl_logo.svg) no-repeat center center / contain;
  filter: brightness(0) invert(1);
  opacity: 0.1;
  pointer-events: none
}

.bm-stat {
  position: relative;
  padding: 0 32px
}

.bm-stat:first-child {
  padding-left: 0
}

.bm-stat + .bm-stat {
  border-left: 1px solid rgba(255, 255, 255, 0.35)
}

.bm-stat__label {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.2em
}

.bm-stat__value {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 16px;
  white-space: nowrap
}

.bm-stat__num {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 12rem;
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums
}

.bm-stat__word {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 6.4rem;
  font-weight: 600;
  line-height: 1.68;
  letter-spacing: 0.02em
}

.bm-stat__pre,
.bm-stat__unit {
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: 0.1em
}

.bm-stat__note {
  margin-top: 12px;
  font-size: 1.2rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85)
}

@media screen and (max-width:1279px) {
  .bm-stat__num {
    font-size: 8.4vw
  }

  .bm-stat__word {
    font-size: 4.6vw;
    line-height: 1.8
  }
}

/* ---------- 事業マップ ---------- */
/* PC：左に事業領域の一覧（9つを縦に並べて全部読める）、右に図と説明を貼り付ける
   左の領域を押すと、右の図がその場で絞り込まれる。図は常に見えているのでスクロールはさせない
   狭い画面（1023px 以下）：図は出さず、一覧だけにする（カードの中のロゴで対応する会社がわかる） */
.bm-map {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); /* 図を大きく見せるため、右を広めにとる */
  gap: 40px;
  align-items: start
}

.bm-fields {
  display: flex;
  flex-direction: column;
  gap: 12px
}

/* カードの中の強弱：日本語の領域名 → 説明 → 対応する会社 の順に読ませる
   英字は飾りなので小さく上に添える（大きな英字はセクション見出しの FIELD だけにする）
   PC は横長の行にして、左に名前、右に説明と会社を置く */
.bm-field {
  display: grid;
  grid-template-columns: 178px minmax(0, 1fr); /* 「AIソリューション」が1行に収まる幅 */
  grid-template-rows: auto 1fr auto;
  grid-template-areas:
    "en text"
    "jp text"
    "jp foot";
  column-gap: 24px;
  padding: 20px 24px 18px;
  border: 1px solid #E6EEF0;
  border-radius: 16px;
  background: #fff;
  color: #0B0B0B;
  text-align: left;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.4s cubic-bezier(.19, 1, .22, 1), background-color 0.3s, color 0.3s
}

/* 幅の狭い PC では、説明文が細くなりすぎないよう左の一覧を広めにとる */
@media screen and (min-width: 1024px) and (max-width: 1279px) {
  .bm-map {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 32px
  }

  .bm-fields .bm-field {
    grid-template-columns: 158px minmax(0, 1fr);
    column-gap: 20px
  }

  .bm-fields .bm-field__jp {
    font-size: 1.6rem
  }

  /* 説明の欄が細いので、ラベルの下にロゴを並べてロゴが縦に積み上がらないようにする */
  .bm-fields .bm-field__foot {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px
  }
}

/* 押せるのは図が横にあるときだけ（js/group-map.js が is-wide を付ける） */
.bm-map.is-wide .bm-field {
  position: relative;
  padding-right: 52px; /* 右端の矢印のぶん */
  cursor: pointer
}

/* 押すと右の図が変わることを示す矢印。トップの「AIナビゲーターに案内してもらう ↗」と同じく文字の矢印を青で出す */
.bm-map.is-wide .bm-field::after {
  content: "→";
  position: absolute;
  right: 20px;
  top: 50%;
  font-size: 1.8rem;
  line-height: 1;
  color: #14A5C0;
  transform: translateY(-50%);
  transition: transform 0.4s cubic-bezier(.19, 1, .22, 1), color 0.3s
}

.bm-map.is-wide .bm-field:hover::after {
  transform: translate(4px, -50%)
}

.bm-map.is-wide .bm-field[aria-pressed="true"]::after {
  color: #fff
}

.bm-map.is-wide .bm-field:hover {
  border-color: #14A5C0;
  box-shadow: 0 18px 36px rgba(20, 165, 192, 0.16);
  transform: translateX(4px)
}

.bm-field[aria-pressed="true"] {
  border-color: #14A5C0;
  background: #14A5C0;
  color: #fff;
  box-shadow: 0 18px 36px rgba(20, 165, 192, 0.3)
}

.bm-fields .bm-field:focus-visible {
  outline: 3px solid #0B0B0B;
  outline-offset: 3px
}

.bm-field__en {
  grid-area: en;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.1em;
  color: #14A5C0;
  transition: color 0.3s
}

.bm-field__jp {
  grid-area: jp;
  margin-top: 6px;
  font-size: 1.8rem;
  word-break: keep-all; /* 「AIソリューショ／ン開発」のように言葉の途中で折らず、HTML の <wbr> の所で折る */
  overflow-wrap: anywhere;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.04em
}

.bm-field__text {
  grid-area: text;
  font-size: 1.4rem;
  line-height: 1.8;
  letter-spacing: 0.04em;
  color: #3A3A3A;
  /* 最後の行に「す。」など数文字だけ残るのを避ける */
  text-wrap: pretty;
  transition: color 0.3s
}

/* 対応する会社は線で区切って別の段にする */
.bm-field__foot {
  grid-area: foot;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr); /* ラベルは左に固定し、ロゴが多いときはロゴだけ折り返す */
  align-items: center;
  gap: 8px 20px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #E6EEF0;
  transition: border-color 0.3s
}

.bm-field__label {
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #6B7478;
  white-space: nowrap;
  transition: color 0.3s
}

.bm-field__count {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.7rem;
  font-weight: 600;
  color: #0B0B0B;
  transition: color 0.3s
}

/* 狭い画面でロゴを押せるようにするボタン（js/group-map.js が付ける）。白い枠で押せることを示す */
.bm-field__co {
  appearance: none;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid #DDE8EB;
  border-radius: 999px;
  background: #fff;
  font: inherit;
  cursor: pointer;
  transition: border-color 0.3s, box-shadow 0.3s
}

.bm-field__co:active {
  border-color: #14A5C0;
  box-shadow: 0 0 0 3px rgba(20, 165, 192, 0.18)
}

.bm-field__logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px
}

/* ロゴはふだんグレーにして文字より目立たせない。乗せたとき・選んだときに色を戻す */
.bm-field__logo {
  height: 18px;
  width: auto;
  max-width: 96px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.6;
  transition: filter 0.3s, opacity 0.3s
}

.bm-map.is-wide .bm-field:hover .bm-field__logo {
  filter: none;
  opacity: 1
}

.bm-field[aria-pressed="true"] .bm-field__en,
.bm-field[aria-pressed="true"] .bm-field__text,
.bm-field[aria-pressed="true"] .bm-field__label,
.bm-field[aria-pressed="true"] .bm-field__count {
  color: #fff
}

.bm-field[aria-pressed="true"] .bm-field__foot {
  border-color: rgba(255, 255, 255, 0.35)
}

.bm-field[aria-pressed="true"] .bm-field__logo,
.bm-map.is-wide .bm-field[aria-pressed="true"]:hover .bm-field__logo {
  filter: brightness(0) invert(1);
  opacity: 1
}

.bm-map__reset {
  display: flex;
  justify-content: flex-start
}

.bm-chip--all {
  font-size: 1.3rem
}

.bm-map__label {
  margin-bottom: 14px;
  font-size: 1.3rem;
  letter-spacing: 0.12em;
  color: #3A3A3A
}

.bm-map__domains {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 48px
}

.bm-chip,
.bm-works-tab {
  appearance: none;
  border: 1px solid #DDE8EB;
  background: #fff;
  color: #0B0B0B;
  font: inherit;
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 10px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s, transform 0.3s
}

.bm-chip:hover,
.bm-works-tab:hover {
  border-color: #14A5C0;
  transform: translateY(-2px)
}

.bm-chip[aria-pressed="true"],
.bm-works-tab[aria-pressed="true"] {
  background: #14A5C0;
  border-color: #14A5C0;
  color: #fff
}

.bm-chip:focus-visible,
.bm-node:focus-visible {
  outline: 3px solid #0B0B0B;
  outline-offset: 3px
}

.bm-map__body {
  position: sticky;
  top: 96px; /* 固定ヘッダーの下 */
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: calc(100vh - 120px) /* 画面からはみ出さない。入りきらないときは説明の欄の中だけ動かす */
}

/* 説明の欄と合わせて画面に収まる大きさにする */
.bm-ring {
  position: relative;
  flex: none;
  width: min(100%, clamp(320px, calc(100vh - 280px), 580px));
  aspect-ratio: 1;
  margin: 0 auto
}

.bm-ring__orbit {
  position: absolute;
  inset: 12%;
  border: 1px dashed #C7DCE2;
  border-radius: 50%;
  animation: bm-spin 120s linear infinite
}

@keyframes bm-spin {
  to {
    transform: rotate(360deg)
  }
}

.bm-ring__lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible
}

.bm-ring__line {
  fill: none;
  stroke: #C7DCE2;
  stroke-width: 0.35;
  transition: stroke 0.4s, stroke-width 0.4s
}

.bm-anim .bm-ring__line {
  stroke-dasharray: 40;
  stroke-dashoffset: 40
}

.bm-anim .bm-map.is-in .bm-ring__line {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1.6s cubic-bezier(.19, 1, .22, 1) calc(var(--i) * 0.18s + 0.5s), stroke 0.4s, stroke-width 0.4s
}

.bm-ring__line.is-hit {
  stroke: #14A5C0;
  stroke-width: 0.7
}

.bm-hub {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 32%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #14A5C0;
  box-shadow: 0 0 0 10px rgba(20, 165, 192, 0.12), 0 24px 48px rgba(20, 165, 192, 0.3);
  transform: translate(-50%, -50%);
  transition: transform 1.2s cubic-bezier(.19, 1, .22, 1), opacity 0.9s
}

.bm-anim .bm-hub {
  transform: translate(-50%, -50%) scale(0.6);
  opacity: 0
}

.bm-anim .bm-map.is-in .bm-hub {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1
}

.bm-hub__logo {
  display: block;
  width: 86%;
  filter: brightness(0) invert(1)
}

.bm-node {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 24%;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0;
  border: 1px solid #E6EEF0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 14px 30px rgba(20, 70, 90, 0.1);
  cursor: pointer;
  font: inherit;
  color: #0B0B0B;
  transform: translate(-50%, -50%);
  transition: transform 0.6s cubic-bezier(.19, 1, .22, 1), opacity 0.4s, box-shadow 0.3s, border-color 0.3s, filter 0.4s
}

.bm-anim .bm-node {
  transform: translate(-50%, -50%) scale(0.4);
  opacity: 0
}

.bm-anim .bm-map.is-in .bm-node {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  transition-duration: 1s, 0.8s, 0.3s, 0.3s, 0.4s;
  transition-delay: calc(var(--i) * 0.18s + 0.6s), calc(var(--i) * 0.18s + 0.6s), 0s, 0s, 0s
}

.bm-map.is-ready .bm-node,
.bm-anim .bm-map.is-in.is-ready .bm-node {
  transition-duration: 0.5s, 0.4s, 0.3s, 0.3s, 0.4s;
  transition-delay: 0s
}

.bm-anim .bm-map.is-in.is-ready .bm-ring__line {
  transition-delay: 0s
}

.bm-node:hover {
  border-color: #14A5C0;
  box-shadow: 0 18px 36px rgba(20, 165, 192, 0.22)
}

/* 社名はロゴに入っているので、図ではロゴだけを大きく見せる（社名は読み上げ用に残す） */
.bm-node__logo {
  width: 86%; /* 横長のロゴは丸の幅で大きさが決まるので、丸の中いっぱい近くまで使う */
  height: 40%;
  object-fit: contain
}

.bm-node--tall .bm-node__logo {
  width: 74%;
  height: 52%
}

.bm-node__name {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0
}

/* 選んだ領域に当てはまらない会社は奥に下げる */
.bm-map.is-filtered .bm-node:not(.is-hit) {
  opacity: 0.28;
  filter: grayscale(1);
  transform: translate(-50%, -50%) scale(0.88)
}

.bm-map.is-filtered .bm-node.is-hit,
.bm-node[aria-pressed="true"] {
  border-color: #14A5C0;
  box-shadow: 0 0 0 4px rgba(20, 165, 192, 0.18), 0 18px 36px rgba(20, 165, 192, 0.25);
  transform: translate(-50%, -50%) scale(1.06)
}

/* 図の下の一行。何も選んでいないときは使い方、領域を選んだら領域名と社数を出す */
.bm-caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 4px 14px;
  font-size: 1.4rem;
  line-height: 1.8;
  letter-spacing: 0.04em;
  color: #3A3A3A;
  text-align: center;
  text-wrap: pretty
}

.bm-caption__field {
  font-size: 1.8rem;
  font-weight: 700;
  color: #0B0B0B
}

.bm-caption__count {
  font-weight: 700;
  color: #14A5C0
}

.bm-caption__num {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 2.2rem;
  font-weight: 600;
  margin-right: 1px
}

.bm-caption__hint {
  flex-basis: 100%;
  font-size: 1.3rem;
  color: #6B7478
}

/* 会社の説明（.bm-dialog）の中身 */
.bm-panel__eyebrow {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #14A5C0
}

.bm-panel__title {
  margin-top: 6px;
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.5;
  color: #0B0B0B
}

.bm-panel__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px
}

.bm-tag {
  padding: 4px 12px;
  border-radius: 999px;
  background: #EEF3F5;
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  color: #0B0B0B
}

.bm-panel__text {
  margin-top: 14px;
  font-size: 1.5rem;
  line-height: 1.9;
  letter-spacing: 0.04em;
  color: #3A3A3A
}

.bm-panel__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding: 12px 24px;
  border: 1px solid #14A5C0;
  border-radius: 999px;
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #14A5C0;
  transition: background-color 0.3s, color 0.3s
}

.bm-panel__link:hover {
  background: #14A5C0;
  color: #fff
}

.bm-panel__link::after {
  content: "↗"
}

/* ---------- 会社の説明（ページの上に重ねる。js/group-map.js が作る） ---------- */
html.is-dialog-open {
  overflow: hidden
}

.bm-dialog {
  width: min(560px, calc(100% - 48px));
  max-width: none;
  max-height: min(86vh, 760px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: #fff;
  color: #0B0B0B;
  box-shadow: 0 40px 80px -30px rgba(6, 80, 100, 0.35);
  overflow-y: auto;
  overscroll-behavior: contain
}

.bm-dialog::backdrop {
  background: rgba(11, 30, 38, 0.45)
}

.bm-dialog[open] {
  animation: bm-dialog-in 0.35s cubic-bezier(.19, 1, .22, 1)
}

.bm-dialog[open]::backdrop {
  animation: bm-backdrop-in 0.3s ease
}

@keyframes bm-dialog-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98)
  }
}

@keyframes bm-backdrop-in {
  from {
    opacity: 0
  }
}

.bm-dialog__inner {
  position: relative;
  padding: 40px 40px 36px
}

.bm-dialog__logo {
  display: block;
  height: 40px;
  width: auto;
  max-width: 220px;
  margin-bottom: 18px;
  object-fit: contain
}

.bm-dialog .bm-panel__text {
  margin-top: 18px
}

.bm-dialog__close {
  appearance: none;
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #EEF3F5;
  cursor: pointer;
  transition: background-color 0.3s
}

.bm-dialog__close::before,
.bm-dialog__close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 2px;
  background: #0B0B0B;
  transform: translate(-50%, -50%) rotate(45deg)
}

.bm-dialog__close::after {
  transform: translate(-50%, -50%) rotate(-45deg)
}

.bm-dialog__close:hover {
  background: #DDE8EB
}

.bm-dialog__close:focus-visible,
.bm-field__co:focus-visible {
  outline: 3px solid #0B0B0B;
  outline-offset: 2px
}

/* 狭い画面は、画面の下から出すシートにする（親指で閉じやすく、元のカードも上に少し見える） */
@media screen and (max-width: 639px) {
  .bm-dialog {
    width: 100%;
    max-height: 85vh;
    margin: auto 0 0;
    border-radius: 20px 20px 0 0
  }

  .bm-dialog[open] {
    animation-name: bm-sheet-in
  }

  @keyframes bm-sheet-in {
    from {
      transform: translateY(100%)
    }
  }

  .bm-dialog__inner {
    padding: 32px 22px calc(28px + env(safe-area-inset-bottom))
  }

  .bm-dialog__logo {
    height: 32px;
    margin-bottom: 14px
  }

  .bm-dialog__close {
    top: 12px;
    right: 12px
  }
}

@media (prefers-reduced-motion: reduce) {
  .bm-dialog[open],
  .bm-dialog[open]::backdrop {
    animation: none
  }
}

.bm-note {
  margin-top: 20px;
  font-size: 1.2rem;
  line-height: 1.8;
  color: #9FA0A0
}

/* ---------- グループ会社の一覧 ---------- */
.bm-companies {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px
}

.bm-company {
  display: flex;
  flex-direction: column;
  padding: 36px 36px 32px;
  background: #fff;
  border-radius: 16px;
  scroll-margin-top: 120px
}

.bm-company__logo {
  height: 36px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  object-position: left center
}

.bm-company--tall .bm-company__logo {
  height: 48px
}

.bm-company__name {
  margin-top: 18px;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #0B0B0B
}

.bm-company__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px
}

.bm-company__text {
  flex: 1;
  margin-top: 16px;
  font-size: 1.5rem;
  line-height: 2;
  letter-spacing: 0.04em;
  color: #3A3A3A
}

/* 公式サイトへのリンク。押せる場所だと分かるよう、下に薄い青の線を常に引いておく
   マウスを乗せると、ヘッダーのメニュー（.header-menu__item__link）と同じく濃い青の線が左から伸び、
   矢印はトップの「AIナビゲーターに案内してもらう」（.top-fv__navi__arrow）と同じく右上へ少し動く */
.bm-company__link {
  position: relative;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding-bottom: 6px;
  background: linear-gradient(rgba(20, 165, 192, 0.3), rgba(20, 165, 192, 0.3)) left bottom / 100% 1px no-repeat;
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #14A5C0
}

.bm-company__link::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: #14A5C0;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.4s cubic-bezier(.215, .61, .355, 1)
}

.bm-company__link::after {
  content: "↗";
  display: inline-block;
  transition: transform 0.3s ease
}

.bm-company__link:hover::before {
  transform: scaleX(1);
  transform-origin: left center
}

.bm-company__link:hover::after {
  transform: translate(2px, -2px)
}

@media (prefers-reduced-motion: reduce) {
  .bm-company__link::before,
  .bm-company__link::after {
    transition: none
  }

  .bm-company__link:hover::after {
    transform: none
  }
}

/* グループ会社のスライドの下に置く、Shift Forward が運営するサービスの案内
   （スライドの中に入れると Shift Forward のカードだけ長くなり、他社が正面のときに下が空くため外に出した） */
.bm-sf-services {
  max-width: 880px;
  margin: 64px auto 0
}

/* 見出し：真ん中にロゴと文字、左右に細い線（線の色はトップの事業紹介の番号の横の線と同じ） */
.bm-sf-services__ttl {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #0B0B0B
}

.bm-sf-services__ttl::before,
.bm-sf-services__ttl::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #D5E3E7
}

.bm-sf-services__ttl__inner {
  display: flex;
  align-items: center;
  gap: 10px
}


.bm-sf-services__logo {
  width: auto;
  height: 28px
}

.bm-sf-services__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 32px
}

.bm-sf-services .bm-extra {
  padding: 22px 44px 22px 24px;
  background: #fff
}

.bm-sf-services .bm-extra::after {
  top: 22px;
  right: 22px
}

.bm-sf-services__ttl span {
  white-space: nowrap
}

@media screen and (max-width: 767px) {
  .bm-sf-services {
    margin-top: 40px
  }

  .bm-sf-services__ttl {
    gap: 12px;
    font-size: 1.4rem
  }

  .bm-sf-services__ttl {
    justify-content: center
  }

  /* 幅が足りないので、左右の線は出さない */
  .bm-sf-services__ttl::before,
  .bm-sf-services__ttl::after {
    content: none
  }

  .bm-sf-services__ttl__inner {
    gap: 6px
  }

  .bm-sf-services__logo {
    height: 20px
  }

  .bm-sf-services__list {
    grid-template-columns: 1fr;
    gap: 12px
  }
}

.bm-extra {
  position: relative;
  display: block;
  padding: 14px 32px 14px 16px;
  background: #F3F9FA;
  border-radius: 12px;
  box-shadow: 0 16px 30px -14px rgba(0, 60, 80, 0.35);
  color: #0B0B0B;
  transition: transform 0.3s, box-shadow 0.3s
}

.bm-extra::after {
  content: "↗";
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 1.4rem;
  color: #14A5C0;
  transition: transform 0.3s
}

/* マウスを乗せたときは、トップの「AIナビゲーターに案内してもらう」（.top-fv__navi）と同じく、少し浮いて影が濃くなり、矢印が右上へ動く
   （サイト共通の a:hover の「薄くする」は、ロゴや文字が読みにくくなるので外す） */
.bm-extra:hover {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(11, 11, 11, 0.12)
}

.bm-extra:hover::after {
  transform: translate(2px, -2px)
}

@media (prefers-reduced-motion: reduce) {
  .bm-extra:hover,
  .bm-extra:hover::after {
    transform: none
  }
}

.bm-extra__label {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: #E7F5F8; /* WORKS の分野のラベルと同じ */
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: #0A7286
}

/* AI Career Step は公式のロゴ（ai-career-step.jp の SVG） */
.bm-extra__logo {
  display: block;
  width: auto;
  max-width: 100%;
  height: 24px;
  margin-top: 10px
}

/* Shift Forward Journal は画像のロゴが無く、公式（shiftforward.co.jp/media）でも文字をロゴとして出しているので、同じ書体と色にそろえる */
.bm-extra__wordmark {
  display: block;
  margin-top: 8px;
  font-family: "Plus Jakarta Sans", "Noto Sans JP", sans-serif;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: #0C0C0C
}

.bm-extra__wordmark-sub {
  color: #007765
}

/* 語の途中で改行しない（区切りは HTML の wbr で入れている） */
.bm-extra__text {
  display: block;
  margin-top: 10px;
  font-size: 1.4rem;
  line-height: 1.8;
  letter-spacing: 0.04em;
  color: #3A3A3A;
  word-break: keep-all;
  overflow-wrap: anywhere
}

/* JS が動かないときは、押しても何も起きないボタンを出さない */
.bm-carousel__nav[hidden],
.bm-map__reset[hidden] {
  display: none !important
}

/* ---------- グループ会社の3Dスライド（JS が動くとき） ---------- */
/* 左右の会社は画面の端まで見せて、はみ出したぶんは切る（横スクロールを出さない） */
.bm-companies-section {
  overflow: hidden
}

.bm-carousel.is-carousel .bm-companies {
  display: block;
  position: relative;
  perspective: 1800px;
  transition: height 0.4s ease
}

.bm-carousel.is-carousel .bm-company {
  position: absolute;
  left: 50%;
  top: 0;
  width: min(520px, 84vw);
  margin-left: calc(min(520px, 84vw) / -2);
  box-shadow: 0 16px 30px -14px rgba(0, 60, 80, 0.35);
  transition: transform 0.9s cubic-bezier(.19, 1, .22, 1), opacity 0.7s ease, box-shadow 0.6s;
  will-change: transform;
  backface-visibility: hidden;
  cursor: pointer
}

.bm-carousel.is-carousel .bm-company.is-current {
  box-shadow: 0 40px 80px -30px rgba(6, 80, 100, 0.22);
  cursor: auto
}

/* 画面に入る前は、奥に重ねておく */
.bm-carousel.is-carousel.is-intro .bm-company {
  transform: translateZ(-900px) !important;
  opacity: 0 !important
}

.bm-carousel.is-carousel .bm-company {
  transition-delay: 0s
}

.bm-carousel.is-carousel:not(.is-intro) .bm-company {
  transition-delay: calc(var(--o, 0) * 0.08s)
}

.bm-carousel__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 40px
}

.bm-carousel__arrow {
  appearance: none;
  width: 52px;
  height: 52px;
  flex: none;
  border: 1px solid #14A5C0;
  border-radius: 50%;
  background: #fff;
  color: #14A5C0;
  font-size: 2rem;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s, transform 0.3s
}

.bm-carousel__arrow:hover {
  background: #14A5C0;
  color: #fff;
  transform: scale(1.06)
}

.bm-carousel__tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px
}

.bm-carousel__tab {
  appearance: none;
  display: grid;
  place-items: center;
  width: 92px;
  height: 44px;
  padding: 6px 10px;
  border: 0;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 16px 30px -14px rgba(0, 60, 80, 0.35);
  cursor: pointer;
  opacity: 0.55;
  filter: grayscale(1);
  transition: opacity 0.3s, filter 0.3s
}

.bm-carousel__tab img {
  max-width: 100%;
  max-height: 22px;
  object-fit: contain
}

.bm-carousel__tab:hover,
.bm-carousel__tab[aria-current="true"] {
  opacity: 1;
  filter: none
}

.bm-carousel__count {
  display: none;
  min-width: 56px;
  text-align: center;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #14A5C0
}

.bm-carousel__arrow:focus-visible,
.bm-carousel__tab:focus-visible {
  outline: 3px solid #0B0B0B;
  outline-offset: 3px
}

@media screen and (max-width:639px) {
  /* スマホは矢印と「6 / 7」をカードの上（右寄せ）に置く。
     カードは会社ごとに高さが違い、下に置くと切り替えるたびに矢印が上下に動くうえ、
     小さい画面（幅320px・高さ568px）ではカードだけで画面が埋まり、矢印が画面の外に出るため */
  .bm-carousel.is-carousel {
    display: flex;
    flex-direction: column
  }

  .bm-carousel__nav {
    order: -1;
    justify-content: flex-end;
    gap: 10px;
    margin: 0 0 20px
  }

  .bm-carousel__arrow {
    width: 42px;
    height: 42px
  }

  .bm-carousel__tabs {
    display: none
  }

  .bm-carousel__count {
    display: block
  }
}

@media screen and (max-width:1023px) {
  .bm-carousel__nav {
    gap: 12px
  }

  .bm-carousel__tabs {
    gap: 6px;
    flex-wrap: nowrap
  }

  .bm-carousel__tab {
    width: 76px;
    padding: 6px 8px
  }
}

@media (prefers-reduced-motion: reduce) {
  .bm-carousel.is-carousel .bm-company,
  .bm-carousel.is-carousel .bm-companies {
    transition: none
  }
}

/* ---------- 拠点 ---------- */
.bm-location__land {
  fill: #E3EEF1
}

.bm-location__map {
  position: relative;
  margin-top: 24px
}

.bm-location__svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible
}

.bm-location__dots {
  stroke: #C9DDE3;
  stroke-width: 4.4;
  stroke-linecap: round;
  transition: opacity 1.2s ease
}

.bm-anim .bm-location__dots {
  opacity: 0
}

.bm-anim .bm-location.is-in .bm-location__dots {
  opacity: 1
}

.bm-location__arc {
  fill: none;
  stroke: #14A5C0;
  stroke-width: 2;
  stroke-linecap: round;
  transition: stroke-dashoffset 2.2s cubic-bezier(.65, 0, .35, 1) 0.6s
}

.bm-anim .bm-location__arc {
  stroke-dasharray: 900;
  stroke-dashoffset: 900
}

.bm-anim .bm-location.is-in .bm-location__arc {
  stroke-dashoffset: 0
}

.bm-location__flow {
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 2 26;
  opacity: 0;
  animation: bm-flow 1.6s linear infinite;
  transition: opacity 0.6s 2.8s
}

.bm-location.is-in .bm-location__flow {
  opacity: 0.9
}

@keyframes bm-flow {
  to {
    stroke-dashoffset: -28
  }
}

.bm-pin__core {
  fill: #14A5C0
}

.bm-pin__ring {
  fill: none;
  stroke: #14A5C0;
  stroke-width: 2;
  transform-box: fill-box;
  transform-origin: center;
  animation: bm-pulse 2.4s ease-out infinite
}

@keyframes bm-pulse {
  from {
    transform: scale(0.4);
    opacity: 0.9
  }

  to {
    transform: scale(2.6);
    opacity: 0
  }
}

.bm-place {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 300px;
  padding: 20px 24px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 20px 40px rgba(20, 70, 90, 0.12);
  transition: opacity 0.6s, transform 0.8s cubic-bezier(.19, 1, .22, 1)
}

.bm-anim .bm-place {
  opacity: 0
}

.bm-place--tokyo {
  transform: translate(-30%, 28px)
}

.bm-place--la {
  transform: translate(-75%, 28px)
}

.bm-anim .bm-place--tokyo {
  transform: translate(-30%, 40px)
}

.bm-anim .bm-place--la {
  transform: translate(-75%, 40px)
}

.bm-anim .bm-location.is-in .bm-place {
  opacity: 1;
  transition-delay: 1.4s
}

.bm-anim .bm-location.is-in .bm-place--tokyo {
  transform: translate(-30%, 28px)
}

.bm-anim .bm-location.is-in .bm-place--la {
  transform: translate(-75%, 28px)
}

.bm-place__en {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 3.2rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.04em;
  color: #14A5C0
}

.bm-place__jp {
  margin-top: 6px;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #0B0B0B
}

.bm-place__text {
  margin-top: 6px;
  font-size: 1.3rem;
  line-height: 1.8;
  color: #3A3A3A
}

/* ---------- 拠点（地球儀） ---------- */
/* トップの ABOUT・GROUP と同じ青の面にして、光る地球儀を浮かせる */
.bm-location {
  background: radial-gradient(120% 90% at 50% 60%, #19A4C0 0%, #0F8AA6 55%, #0A6F88 100%);
  overflow: hidden
}

.bm-globe {
  display: none
}

.bm-globe__hint {
  display: none
}

.bm-location__map.is-globe {
  margin-top: 0
}

.bm-location__map.is-globe .bm-location__svg {
  display: none
}

.bm-location__map.is-globe .bm-globe {
  display: block;
  position: relative;
  width: 100%;
  height: clamp(420px, 56vw, 720px)
}

.bm-location__map.is-globe .bm-globe::before {
  content: "";
  position: absolute;
  left: 50%;
  top: var(--cy, 50%);
  width: calc(var(--r, 200px) * 2.8);
  height: calc(var(--r, 200px) * 2.8);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(190, 240, 255, 0.34) 62%, rgba(190, 240, 255, 0) 100%);
  pointer-events: none
}

.bm-globe__canvas {
  position: absolute;
  inset: 0;
  display: block
}

.bm-globe__leaders {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none
}

.bm-globe__leader {
  fill: none;
  stroke: rgba(255, 255, 255, 0.75);
  stroke-width: 1
}

/* ラベルは地球の左右に置き、線でつなぐ（位置は地球の動きに合わせて線だけが動く） */
.bm-location__map.is-globe .bm-place,
.bm-anim .bm-location__map.is-globe .bm-place,
.bm-anim .bm-location.is-in .bm-location__map.is-globe .bm-place {
  top: 54%;
  transform: none;
  width: 280px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px)
}

.bm-location__map.is-globe .bm-place--tokyo {
  left: 0
}

.bm-location__map.is-globe .bm-place--la {
  left: auto;
  right: 0
}

.bm-location__map.is-globe .bm-place.is-away,
.bm-anim .bm-location.is-in .bm-location__map.is-globe .bm-place.is-away {
  opacity: 0.45;
  transition-delay: 0s
}

.bm-location__map.is-globe.is-ready .bm-place {
  transition-delay: 0s
}

.bm-location__map.is-globe .bm-globe__hint {
  display: none;
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  font-size: 1.3rem;
  letter-spacing: 0.12em;
  color: #fff;
  text-shadow: 0 1px 6px rgba(8, 80, 100, 0.6);
  pointer-events: none
}

/* カーソルで回せる端末だけ、案内を出す */
@media (hover: hover) and (pointer: fine) {
  .bm-location__map.is-globe .bm-globe__hint {
    display: block
  }
}

/* ---------- 実績・認定 ---------- */
/* 分野で絞り込むタブ（見た目は .bm-chip と同じ。上の .bm-chip の指定に並べてある） */
.bm-works-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px
}

.bm-works-filter[hidden] {
  display: none
}

.bm-works-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px
}

.bm-works-tab__count {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
  color: #14A5C0;
  transition: color 0.3s
}

.bm-works-tab[aria-pressed="true"] .bm-works-tab__count {
  color: #fff
}

.bm-works-tab:focus-visible {
  outline: 3px solid #0B0B0B;
  outline-offset: 3px
}

/* 読み上げ用の「〇件を表示しています」。画面には出さない */
.bm-works-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap
}

/* .bm-work--media は display: grid なので、hidden を明示して隠す */
.bm-work[hidden] {
  display: none
}

/* タブを切り替えたときに出てくるカード */
.bm-anim .bm-reveal.is-in > .bm-work.is-switched {
  animation: bm-works-in 0.5s cubic-bezier(.19, 1, .22, 1) both;
  animation-delay: calc(min(var(--works-order, 0), 8) * 0.04s)
}

@keyframes bm-works-in {
  from {
    opacity: 0;
    transform: translateY(12px)
  }

  to {
    opacity: 1;
    transform: none
  }
}

.bm-works {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px
}

.bm-work {
  position: relative;
  padding: 32px;
  background: #fff;
  border-radius: 16px
}

/* ロゴ・写真がある実績だけ、左に 4:3 の枠を置く（bm-work--media）。無い実績は文章だけ
   ・ロゴ：bm-work__media--logo に bm-work__logo（枠の中に収めて中央に置く）
   ・写真：bm-work__media--photo に bm-work__photo（枠いっぱいに切り抜く。トップの事業紹介の写真と同じ 4:3）
   枠の面はトップの MISSION と同じ薄い面にし、縁取りは付けない */
.bm-work--media {
  display: grid;
  grid-template-columns: 200px 1fr;
  align-items: start;
  gap: 28px;
  padding: 24px
}
.bm-work__media {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  background: linear-gradient(160deg, #EEF3F5 0%, #F7F9FA 100%);
  overflow: hidden
}

/* お客様のロゴ（出せるものだけ。11/6 柴田さん「SFのやつはロゴも含めて全部載せて大丈夫」） */
.bm-work__logo {
  display: block;
  width: 76%;
  height: 56%;
  object-fit: contain
}

/* ロゴの枠の面は、各サービスの色にそろえる
   ゼロブラインド：サイトのフッターの色（金色の細い文字が薄い面だと溶け込むため）
   Peby College：ロゴの赤い四角と同じ赤（枠とロゴがひと続きに見える）
   ChatCrew：サイト（chatcrew.jp）の緑に、サイトの最初の画面と同じ白いロゴ（img/works/chatcrew-white.svg） */
.bm-work__media--zero-blind {
  background: #241B1E
}

.bm-work__media--peby {
  background: #D70000
}

.bm-work__media--chatcrew {
  background: #17864F
}

.bm-work__photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover
}

/* 文章の始まりを、文章だけのカード（上の余白 32px）とそろえる：24px ＋ 8px */
.bm-work--media .bm-work__body {
  min-width: 0;
  padding-top: 8px
}

/* 分野はスライドの会社カードと同じ丸いラベル（bm-tag）、その横にどの会社の実績か（正式な社名）、認定は取得年月 */
.bm-work__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  font-size: 1.3rem;
  letter-spacing: 0.06em;
  color: #3A3A3A
}

/* 分野のラベルは、ロゴの枠（グレーの薄い面）と見分けがつくよう青の薄い面にする（会社カードのラベルも同じ）
   文字 #0A7286 は面 #E7F5F8 の上でコントラスト比 5.0（#14A5C0 だと 2.6 で小さい文字には足りない） */
.bm-work__meta .bm-tag,
.bm-company__tags .bm-tag {
  background: #E7F5F8;
  color: #0A7286
}

.bm-work__company {
  font-weight: 500
}

.bm-work__date {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #14A5C0
}

.bm-work__title {
  margin-top: 10px;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.6;
  color: #0B0B0B
}

.bm-work__text {
  margin-top: 10px;
  font-size: 1.4rem;
  line-height: 1.9;
  color: #3A3A3A
}

/* 画面に入ったら1つずつ出す（layout.css の js-stagger と同じ動き） */
.bm-anim .bm-reveal > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.9s cubic-bezier(.19, 1, .22, 1);
  transition-delay: calc(var(--stagger, 0) * 0.1s)
}

.bm-anim .bm-reveal.is-in > * {
  opacity: 1;
  transform: none
}

/* ---------- タブレット ---------- */
@media screen and (max-width:1023px) {
  .bm-stats {
    padding: 9.1145833333vw calc(6.5104166667vw + 50vw - 50%) 9.1145833333vw 6.5104166667vw;
    border-radius: 5.2083333333vw 0 0 5.2083333333vw
  }

  .bm-stats::before {
    width: 40vw;
    height: 50.8vw
  }

  .bm-stat {
    padding: 0 3.125vw
  }

  /* 3列で幅が狭いので、字間を詰めて見出しが1行に収まるようにする */
  .bm-stat__label {
    font-size: 2.08vw;
    letter-spacing: 0.06em;
    white-space: nowrap
  }

  /* 2列だと枠の横の文字が狭くなりすぎるので、1列にして枠は横に置いたままにする */
  .bm-works {
    grid-template-columns: 1fr;
    gap: 20px
  }

  .bm-work--media {
    grid-template-columns: 180px 1fr
  }

  .bm-section {
    padding: 11.71875vw 0
  }

  .bm-lead {
    font-size: 2.6041666667vw
  }

  .bm-companies {
    gap: 16px
  }

  .bm-company {
    padding: 28px 26px 24px
  }

  /* 図は出さず、一覧だけにする。カードは縦向きにして2列に並べる */
  .bm-map {
    display: block
  }

  .bm-map__body {
    display: none
  }

  .bm-fields {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px
  }

  /* 2列で最後の1枚が余るときは横いっぱいにして、右の空きを作らない */
  .bm-fields .bm-field:last-child:nth-child(odd) {
    grid-column: 1 / -1
  }

  .bm-field {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto 1fr auto;
    grid-template-areas:
      "en"
      "jp"
      "text"
      "foot";
    padding: 26px 24px 22px
  }

  .bm-field__en {
    font-size: 1.5rem;
    letter-spacing: 0.14em
  }

  .bm-field__jp {
    margin-top: 8px;
    font-size: 2rem
  }

  .bm-field__text {
    margin-top: 12px;
    font-size: 1.5rem;
    line-height: 1.9
  }

  /* 狭い画面ではカードを押せず、乗せて色を戻すこともできないので、ロゴは最初から色付きで見せる */
  .bm-field__logo {
    filter: none;
    opacity: 1
  }

  /* 幅が狭いので、ラベルの下にロゴを並べる */
  .bm-field__foot {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    margin-top: 20px
  }

  .bm-place {
    width: 260px
  }


}


/* 地球の左右にラベルを置く幅がないときは、地球の下に並べる（線は出さない） */
@media screen and (max-width:1099px) {
  .bm-location__map.is-globe {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px
  }

  .bm-location__map.is-globe .bm-globe,
  .bm-location__map.is-globe .bm-globe__hint {
    grid-column: 1 / -1
  }

  .bm-location__map.is-globe .bm-globe__hint {
    position: static;
    transform: none;
    order: 1;
    text-align: center;
    margin-top: -36px
  }

  .bm-location__map.is-globe .bm-place,
  .bm-anim .bm-location__map.is-globe .bm-place,
  .bm-anim .bm-location.is-in .bm-location__map.is-globe .bm-place {
    position: static;
    width: auto;
    margin: 0;
    order: 2
  }

  .bm-globe__leaders {
    display: none
  }
}

/* ---------- スマホ ---------- */
@media screen and (max-width:639px) {
  /* 縦に1つずつ並べ、間は横の細い線で区切る */
  .bm-stats {
    grid-template-columns: 1fr;
    margin-top: 32px;
    padding: 4.8vw calc(6.4vw + 50vw - 50%) 4.8vw 6.4vw;
    border-radius: 8vw 0 0 8vw
  }

  .bm-stat,
  .bm-stat:first-child {
    padding: 6.4vw 0
  }

  .bm-stat + .bm-stat {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.35)
  }

  .bm-stat__label {
    font-size: 3.4666666667vw;
    letter-spacing: 0.1em
  }

  .bm-stat__value {
    margin-top: 2.6666666667vw
  }

  .bm-stat__num {
    font-size: 18.6666666667vw
  }

  .bm-stat__word {
    font-size: 11.2vw;
    line-height: 1.5
  }

  .bm-stat__pre,
  .bm-stat__unit {
    font-size: 4.2666666667vw
  }

  .bm-stat__note {
    margin-top: 2.1333333333vw;
    font-size: 3.2vw
  }

  .bm-section {
    padding: 64px 0
  }

  .bm-lead {
    font-size: 4.2666666667vw;
    line-height: 2
  }

  .bm-companies {
    grid-template-columns: 1fr;
    gap: 12px
  }

  .bm-company {
    padding: 24px 22px
  }

  .bm-company__name {
    font-size: 1.8rem
  }

  .bm-company__text {
    font-size: 1.4rem
  }

  .bm-fields {
    grid-template-columns: 1fr;
    gap: 10px
  }

  .bm-field {
    padding: 22px 20px 18px
  }

  .bm-field__jp {
    font-size: 1.9rem
  }

  .bm-field__text {
    font-size: 1.4rem
  }

  .bm-chip,
  .bm-works-tab {
    padding: 8px 14px;
    font-size: 1.3rem
  }

  /* 輪は狭すぎるので、会社を2列に並べる（線と真ん中は出さない） */
  .bm-ring {
    aspect-ratio: auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px
  }

  .bm-ring__orbit,
  .bm-ring__lines,
  .bm-hub {
    display: none
  }

  .bm-node,
  .bm-anim .bm-node,
  .bm-anim .bm-map.is-in .bm-node,
  .bm-map.is-filtered .bm-node:not(.is-hit),
  .bm-map.is-filtered .bm-node.is-hit,
  .bm-node[aria-pressed="true"] {
    position: static;
    width: auto;
    aspect-ratio: auto;
    min-height: 92px;
    border-radius: 14px;
    transform: none
  }

  .bm-node__logo {
    height: 26px
  }

  .bm-node--tall .bm-node__logo {
    height: 36px
  }

  .bm-dialog .bm-panel__title {
    font-size: 1.9rem
  }

  .bm-place {
    position: static;
    width: auto;
    margin-top: 12px;
    transform: none
  }

  .bm-place--tokyo,
  .bm-place--la,
  .bm-anim .bm-place--tokyo,
  .bm-anim .bm-place--la,
  .bm-anim .bm-location.is-in .bm-place--tokyo,
  .bm-anim .bm-location.is-in .bm-place--la {
    transform: none
  }

  .bm-place__en {
    font-size: 2.6rem
  }

  .bm-location__map.is-globe .bm-globe {
    height: 92vw
  }

  .bm-location__map.is-globe {
    grid-template-columns: 1fr;
    gap: 12px
  }

  .bm-location__map.is-globe .bm-globe__hint {
    margin-top: -20px
  }

  /* 地図が小さくなるので、点を大きくして形が分かるようにする */
  .bm-location__dots {
    stroke-width: 7
  }

  .bm-works {
    grid-template-columns: 1fr;
    gap: 12px
  }

  .bm-work {
    padding: 22px
  }

  .bm-work--media {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 16px 16px 22px
  }

  /* スマホは枠を上に横長で置く（4:3 のままだと1枚が縦に長くなりすぎるため） */
  .bm-work__media {
    aspect-ratio: 3 / 1
  }

  .bm-work__logo {
    width: 60%;
    height: 60%
  }

  .bm-work--media .bm-work__body {
    padding: 0 6px
  }

  .bm-work__title {
    font-size: 1.7rem
  }
}

/* 動きを減らす設定のときは、回る・脈打つ・流れる動きを止める（出てくる動きは JS が bm-anim を付けないので起きない） */
@media (prefers-reduced-motion: reduce) {
  .bm-ring__orbit,
  .bm-pin__ring,
  .bm-location__flow {
    animation: none
  }
}
