/*
 * TSS RFID Room
 * 利用シーン別ページ：動線管理
 */

.movement-pain-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 1120px;
}

.movement-issues-lead {
  margin-top: 36px !important;
}

/* 動線は見えないから改善できない */
.movement-cause {
  background: linear-gradient(90deg, #232a3a 0%, #777d89 100%);
  color: #fff;
}

.movement-cause .inv-heading,
.movement-cause .inv-lead {
  color: #fff !important;
}

/* ==========================================================================
   動線は見えないから改善できない
   ========================================================================== */

.movement-cause-flow {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr) auto
    minmax(0, 1fr) auto
    minmax(0, 1fr) auto
    minmax(0, 1fr) auto
    minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  max-width: 1400px;
  margin: 44px auto 0;
  padding: 0;
  list-style: none;
}

.movement-cause-flow__set {
  display: grid;
  grid-template-rows: auto auto;
  gap: 36px;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.movement-cause-flow__question {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70px;
  padding: 14px;
  background: #fff;
  color: #4d4d4d;
  text-align: center;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 400;
  box-sizing: border-box;
}

.movement-cause-flow__question::after {
  position: absolute;
  left: 50%;
  bottom: -28px;
  width: 0;
  height: 0;
  border-top: 28px solid #fff;
  border-right: 16px solid transparent;
  border-left: 16px solid transparent;
  content: "";
  transform: translateX(-50%);
}

.movement-cause-flow__label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  padding: 14px 18px;
  background: #171a1b;
  border: 1px solid rgba(255, 255, 255, .55);
  color: #fff;
  text-align: center;
  font-size: 24px;
  line-height: 1.35;
  font-weight: 700;
  box-sizing: border-box;
}

.movement-cause-flow__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  color: #fff;
  list-style: none;
}

.movement-cause-flow__arrow i {
  font-size: 34px;
  line-height: 1;
}

/* 従来とRFIDの改善方法比較 */
.movement-comparison {
  display: grid;
  grid-template-columns:
    minmax(220px, .72fr)
    minmax(300px, 1fr)
    minmax(300px, 1fr)
    minmax(220px, .72fr);
  gap: 4px;
  align-items: stretch;
  margin-top: 42px;
}

.movement-comparison__visual {
  margin: 0;
  overflow: hidden;
  background: #d9dde4;
}

.movement-comparison__visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.movement-method {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.movement-method__title {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 62px;
  margin: 0 0 4px !important;
  padding: 12px 18px !important;
  color: #fff !important;
  text-align: center;
  font-size: 26px !important;
  line-height: 1.35 !important;
  font-weight: 700 !important;
  letter-spacing: .05em;
}

.movement-method--old .movement-method__title {
  background: #858585;
}

.movement-method--rfid .movement-method__title {
  background: #b99a00;
}

.movement-method__body {
  display: grid;
  grid-template-rows: minmax(112px, 1fr) 48px minmax(172px, 1.35fr);
  flex: 1;
  height: 100%;
}

.movement-method__body strong,
.movement-method__body p {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  padding: 22px 14px;
  text-align: center;
}

.movement-method__body strong {
  color: #2f3440;
  font-size: 21px;
  line-height: 1.7;
  font-weight: 600;
}

.movement-method__body p {
  font-size: 18px !important;
  line-height: 1.8 !important;
  font-weight: 400;
}

.movement-method--old .movement-method__body strong,
.movement-method--old .movement-method__body p {
  background: #e9e9e9;
}

.movement-method--rfid .movement-method__body strong,
.movement-method--rfid .movement-method__body p {
  background: #fff9df;
}

.movement-method__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.movement-method--old .movement-method__arrow {
  color: #2f3440;
}

.movement-method--rfid .movement-method__arrow {
  color: #b99700;
}

.movement-method__arrow i {
  font-size: 30px;
}

/* 関連利用シーン */
.scene-page--movement .inv-scene {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  min-height: 118px;
}

.scene-page--movement .inv-scene img {
  width: 120px;
  height: 118px;
  object-fit: cover;
  opacity: 1;
}

.scene-page--movement .inv-scene span {
  position: static;
  display: flex;
  align-items: center;
  padding: 18px 24px;
  background: #2d3343;
}

/* 事例が2件のページで使用する共通形式 */
.inv-cases--2col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 1200px;
  margin-right: auto;
  margin-left: auto;
}

/* FAQ内リンク */
.movement-faq-link {
  display: block !important;
  margin-top: 18px !important;
}

.movement-faq-link a {
  color: #b29d43;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* 下部CTA */
.scene-page #sub-nav-cta-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3em 0;
  background: var(--grad-surface);
}

.scene-page #sub-nav-cta-bottom .cta_buttons ul.buttons {
  display: flex;
  justify-content: center;
  gap: .75em;
  margin: 0;
  padding: 0;
  list-style: none;
}

.scene-page #sub-nav-cta-bottom .cta_buttons .button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75em;
  min-width: 280px;
  height: 2.5em;
  padding: 2em;
}

.scene-page #sub-nav-cta-bottom .text_wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}

.scene-page #sub-nav-cta-bottom .cta_consult {
  background: var(--bg-dark);
  border: 1px solid var(--border-dark);
  color: #fff !important;
}

.scene-page #sub-nav-cta-bottom .cta_catalog {
  background: #fff;
  border: 1px solid var(--border-dark);
  color: var(--text-main) !important;
}



@media screen and (max-width: 1280px) {

  .movement-comparison {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .movement-comparison__visual {
    display: none;
  }
}

@media screen and (max-width: 979px) {

  /* 「動線は見えないから改善できない」タブレット表示 */
  .movement-cause-flow {
    grid-template-columns: 1fr;
    gap: 18px;
    max-width: 760px;
  }

  .movement-cause-flow__set {
    grid-template-columns: minmax(0, 1fr) minmax(0, .85fr);
    grid-template-rows: auto;
    gap: 34px;
    align-items: stretch;
  }

  .movement-cause-flow__question {
    min-height: 64px;
    font-size: 21px;
  }

  /* 白い吹き出しの三角を下向き→右向きへ */
  .movement-cause-flow__question::after {
    top: 50%;
    right: -19px;
    bottom: auto;
    left: auto;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-left: 20px solid #fff;
    border-right: 0;
    transform: translateY(-50%);
  }

  .movement-cause-flow__label {
    min-height: 64px;
    font-size: 24px;
  }

  /* セット間の矢印を残して下向きへ */
  .movement-cause-flow__arrow {
    display: flex;
    height: 30px;
  }

  .movement-cause-flow__arrow i {
    font-size: 30px;
    transform: rotate(90deg);
    padding-bottom: 56%;
  }
}

@media screen and (max-width: 736px) {
  .movement-pain-grid,
  .movement-cause-flow,
  .movement-comparison,
  .inv-cases--2col {
    grid-template-columns: 1fr;
  }

  /* 「動線は見えないから改善できない」スマホ表示 */
  .movement-cause-flow {
    max-width: 520px;
    gap: 22px;
  }

  .movement-cause-flow__set {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: 24px;
  }

  .movement-cause-flow__arrow i {
    padding-bottom: 0;
  }

  .movement-cause-flow__question {
    min-height: auto;
    height: auto;
    font-size: 14px;
  }

  /* 吹き出し三角を右向き→下向きへ戻す */
  .movement-cause-flow__question::after {
    top: auto;
    right: auto;
    bottom: -24px;
    left: 50%;
    border-top: 24px solid #fff;
    border-right: 14px solid transparent;
    border-bottom: 0;
    border-left: 14px solid transparent;
    transform: translateX(-50%);
  }

  .movement-cause-flow__label {
    min-height: auto;
    height: auto;
    font-size: 20px;
    padding: 10px;
  }

  .movement-cause-flow__arrow {
    min-height: 32px;
  }

  .movement-cause-flow__arrow i {
    font-size: 28px;
    transform: rotate(90deg);
  }

  .scene-page #sub-nav-cta-bottom .cta_buttons ul.buttons {
    flex-direction: column;
  }
}
