.mct {
  color: #111111;
  font-family: "Noto Sans JP", メイリオ, meiryo, sans-serif;
  background: #ffffff;
}

.mct *,
.mct *::before,
.mct *::after {
  box-sizing: border-box;
}

.mct :where(h1, h2, h3, p, ul) {
  margin: 0;
}

.mct :where(ul) {
  padding: 0;
  list-style: none;
}

.mct :where(a) {
  text-decoration: none;
}

.mct :where(img) {
  display: block;
  max-width: 100%;
  height: auto;
}

.mct-hero {
  padding-top: 80px;
  padding-bottom: 80px;
  background: #ffffff;
}

.mct-hero__content {
  box-sizing: content-box;
  display: grid;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.mct-hero__heading {
  display: grid;
  gap: 10px;
}

.mct-eyebrow {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  color: #111111;
}

.mct-hero__title {
  font-size: 48px;
  font-weight: 600;
  line-height: 1.3;
  color: #111111;
}

.mct-hero__lead,
.mct-section-heading__text,
.mct-tech-card__text,
.mct-usecase__text {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
  color: #111111;
}

/* Figma 4841:7401 は 14px。行送り実測 19px（14px × 1.36） */
.mct-hero__lead {
  max-width: 928px;
  font-size: 14px;
  line-height: 19px;
}

.mct-hero__lead-strong {
  font-weight: 700;
}

.mct-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.mct-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 16px 32px;
  border-radius: 32px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  transition: opacity 0.2s ease;
}

.mct-button:hover {
  opacity: 0.78;
}

.mct-button--primary {
  color: #ffffff;
  background: #121212;
}

.mct-button--secondary {
  color: #111111;
  background: #ffffff;
  border: 2px solid #000000;
}

.mct-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mct-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38.05px;
  padding: 6px 12px 6px 8px;
  border: 1px solid #e7eaec;
  border-radius: 999px;
  color: #666666;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  white-space: nowrap;
}

.mct-tag img {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.mct-tech {
  display: grid;
  /* 列を明示しないと内部の固定幅要素(542px画像等)のmax-contentで列が広がり
     モバイルで横溢れする。minmax(0,1fr)でコンテナ幅に固定する */
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  padding-top: 64px;
  padding-bottom: 64px;
  background: #f4f4f4;
}

.mct-usecases {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
  padding-top: 64px;
  padding-bottom: 64px;
  background: #ffffff;
}

.mct-section-heading {
  box-sizing: content-box;
  display: grid;
  gap: 16px;
  /* grid の子で margin:0 auto だけだと fit-content 幅に縮み、Figmaの左端120pxとズレる。
     幅を明示して 1200px + 左右24px のガターを固定する */
  width: min(1200px, 100% - 48px);
  margin: 0 auto;
  padding: 0 24px;
}

.mct-section-heading__title {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.4;
  color: #111111;
}

.mct-tech-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 542px);
  gap: 48px;
  /* カード自身が内側paddingを持つためcontent-boxにできない。
     100% - 48px で他コンテナ（padding: 0 24px）と同じ24pxのガターを確保する */
  max-width: min(1200px, 100% - 48px);
  margin: 0 auto;
  padding: 24px;
  border-radius: 8px;
  background: #ffffff;
}

.mct-tech-card__body {
  display: grid;
  align-content: start;
  gap: 16px;
}

.mct-tech-card__title {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.4;
  color: #111111;
}

.mct-tech-flow {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mct-flow-step {
  display: grid;
  gap: 4px;
  min-width: 150px;
  padding: 10px 14px;
  border: 1px solid #e7eaec;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 2px 8px 0 rgba(17, 20, 23, 0.04);
}

.mct-flow-step__title {
  color: #111417;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

.mct-flow-step__label {
  color: #727a80;
  font-family: "Space Grotesk", sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
}

.mct-flow-arrow {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}

.mct-tech-card__visual {
  align-self: center;
}

.mct-tech-card__visual img {
  width: 542px;
  max-width: 100%;
}

.mct-usecase {
  box-sizing: content-box;
  display: grid;
  grid-template-columns: minmax(0, 588px) minmax(360px, 589px);
  gap: 24px;
  align-items: center;
  width: min(1200px, 100% - 48px);
  margin: 0 auto;
  padding: 0 24px;
}

.mct-usecase__content {
  display: grid;
  gap: 16px;
}

.mct-usecase__title {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.4;
  color: #111111;
}

.mct-check-list {
  display: grid;
  gap: 16px;
}

.mct-check-list li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
  color: #111111;
}

.mct-check-list img {
  width: 24px;
  height: 24px;
}

/* Figma のビジュアル枠は 589×351 固定（fills #F4F4F4）。角丸なし */
.mct-usecase__thumb {
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 589px;
  aspect-ratio: 589 / 351;
  overflow: hidden;
  background: #f4f4f4;
}

/* 画像は枠いっぱい（枠込みで書き出し済み） */
.mct-usecase__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 動画は枠内に 459px 幅で配置（Figma 4864:4664 / 4950:437 相当） */
.mct-usecase__video {
  width: calc(459 / 589 * 100%);
  height: auto;
  border-radius: 4px;
  box-shadow: 0 0 24px 0 rgba(0, 0, 0, 0.25);
}

.mct-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: 80px;
  padding-bottom: 80px;
  background: #111111;
}

.mct-cta::before,
.mct-cta::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
}

.mct-cta::before {
  z-index: 0;
  /* 先に書いた画像が最前面。Figmaのレンダー上は bg-1（夜景の航空写真）が見えているため先頭に置く */
  background-image: url("../images/multi-camera-tracking/mct-cta-bg-1.png"), url("../images/multi-camera-tracking/mct-cta-bg-2.png");
  background-position: center;
  background-size: cover;
  /* Figmaは #000000 レイヤーの彩度合成で完全グレースケール（実測 彩度差 0.0） */
  filter: grayscale(1);
}

.mct-cta::after {
  z-index: 1;
  background: rgba(0, 0, 0, 0.5);
}

.mct-cta__inner {
  box-sizing: content-box;
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.mct-cta__heading {
  display: grid;
  justify-items: center;
  gap: 24px;
  text-align: center;
}

.mct-cta__title {
  width: min(896px, 100%);
  color: #ffffff;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.5;
}

.mct-cta__text {
  color: #cccccc;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
}

.mct-cta__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 392px));
  gap: 30px;
  width: 100%;
  justify-content: center;
}

.mct-cta-card {
  display: grid;
  gap: 18px;
  align-content: start;
  padding: 24px 32px;
  border-radius: 8px;
  background: #ffffff;
}

.mct-cta-card__title {
  color: #111111;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.4;
}

.mct-cta-card__text {
  color: #111111;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.8;
}

.mct-cta-card__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 51px;
  padding: 12px 24px;
  border: 1px solid #000000;
  border-radius: 40px;
  background: #000000;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  transition: opacity 0.2s ease;
}

.mct-cta-card__button:hover {
  opacity: 0.78;
}

@media screen and (max-width: 1199.98px) {
  .mct-tech-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .mct-tech-card__visual {
    justify-self: center;
  }

  .mct-usecase {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 44%);
  }

  .mct-cta__cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }
}

@media screen and (max-width: 767.98px) {
  /* Figma準拠の改行はモバイルでは自然折り返しに任せる */
  .mct-br {
    display: none;
  }

  .mct-hero {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .mct-tech,
  .mct-usecases,
  .mct-cta {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .mct-hero__content,
  .mct-tech {
    gap: 28px;
  }

  .mct-hero__title {
    font-size: 29px;
    letter-spacing: -0.02em;
  }

  .mct-section-heading__title {
    font-size: 24px;
  }

  .mct-hero__lead,
  .mct-section-heading__text,
  .mct-tech-card__text,
  .mct-usecase__text,
  .mct-check-list li,
  .mct-cta__text,
  .mct-cta-card__button {
    font-size: 14px;
  }

  .mct-tech-card__title,
  .mct-cta-card__title {
    font-size: 20px;
  }

  .mct-usecase__title,
  .mct-cta__title {
    font-size: 20px;
  }

  .mct-check-list img {
    width: 20px;
    height: 20px;
  }

  /* アイコン列も 20px に合わせないと余白がずれる */
  .mct-check-list li {
    grid-template-columns: 20px minmax(0, 1fr);
  }

  .mct-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .mct-button {
    width: 100%;
  }

  .mct-tag {
    white-space: normal;
  }

  .mct-tech-card {
    padding: 24px;
  }

  /* モバイルはフロー図を縦並び・中央寄せ・幅100%、矢印は下向きに */
  .mct-tech-flow {
    flex-direction: column;
    align-items: stretch;
  }

  .mct-flow-step {
    min-width: 0;
    justify-items: center;
    text-align: center;
  }

  /* 縦並び時、親が align-items:stretch のため矢印が左端に寄る。中央に揃える */
  .mct-tech-flow .mct-flow-arrow {
    align-self: center;
    transform: rotate(90deg);
  }

  .mct-cta__cards {
    grid-template-columns: 1fr;
  }

  .mct-usecase {
    grid-template-columns: 1fr;
  }

  .mct-usecase__thumb {
    max-width: none;
  }
}

@media screen and (max-width: 575.98px) {
  .mct-hero__content,
  .mct-section-heading,
  .mct-usecase,
  .mct-cta__inner {
    padding-right: 20px;
    padding-left: 20px;
  }

  .mct-cta-card {
    padding-right: 20px;
    padding-left: 20px;
  }

  /* 他コンテナのガターが20pxに縮むのに合わせる */
  .mct-tech-card {
    max-width: min(1200px, 100% - 40px);
  }
}
