/*
 * TSS RFID Room
 * 利用シーン別ページ：点検
 * scene-common.cssに対するページ固有差分
 */

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

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

/* 実は時間がかかっているのは「点検後」 */
.inspection-after {
  background: linear-gradient(90deg, #1f2536 0%, #646a78 100%);
  color: #fff;
}

.inspection-after .inv-heading,
.inspection-after .inv-lead {
  color: #fff !important;
}

.inspection-after-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.inspection-after-flow__step {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  min-height: 56px;
  margin: 0;
  padding: 10px 16px;
  background: rgba(37, 41, 48, .72);
  border: 1px solid rgba(255, 255, 255, .62);
  color: #fff;
  text-align: center;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: .03em;
  list-style: none;
}

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

.inspection-after-flow__arrow i {
  font-size: 26px;
  line-height: 1;
}

/* 紙とRFIDによる点検フロー比較 */
.inspection-comparison {
  display: grid;
  grid-template-columns:
    minmax(200px, .72fr)
    minmax(260px, 1fr)
    minmax(260px, 1fr)
    minmax(200px, .72fr);
  gap: 6px;
  align-items: stretch;
  margin-top: 42px;
}

.inspection-flow {
  min-width: 0;
}

.inspection-flow__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;
}

.inspection-flow--paper .inspection-flow__title {
  background: #303233;
}

.inspection-flow--rfid .inspection-flow__title {
  background: #a78b00;
}

.inspection-flow__steps {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

.inspection-flow__step {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  margin: 0;
  padding: 11px 18px;
  text-align: center;
  font-size: 21px;
  line-height: 1.4;
  font-weight: 600;
  list-style: none;
}

.inspection-flow--paper .inspection-flow__step {
  background: #858585;
  color: #fff;
}

.inspection-flow--rfid .inspection-flow__step {
  background: #fff9df;
  color: #2f3440;
}

.inspection-flow__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  margin: 0;
  list-style: none;
}

.inspection-flow--paper .inspection-flow__arrow {
  color: #1f2536;
}

.inspection-flow--rfid .inspection-flow__arrow {
  color: #b99700;
}

.inspection-flow__arrow i {
  font-size: 30px;
  line-height: 1;
}

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

.inspection-comparison__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 下部CTA */
.scene-page #sub-nav-cta-bottom {
  position: relative;
  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;
  flex-direction: row;
  justify-content: center;
  align-items: 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;
  border-radius: 6px;
  font-size: 1.5em;
  line-height: 1;
  font-weight: 500;
  text-decoration: none;
}

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

.scene-page #sub-nav-cta-bottom .main_text {
  font-size: .95em;
  font-weight: 600;
  white-space: nowrap;
}

.scene-page #sub-nav-cta-bottom .sub_text {
  font-size: .8em;
  opacity: .8;
  white-space: nowrap;
}

.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: 979px) {

  .inspection-after-flow {
    flex-direction: column;
    align-items: stretch;
  }

  .inspection-after-flow__step {
    width: 100%;
  }

  .inspection-after-flow__arrow {
    transform: rotate(90deg);
  }

  .inspection-comparison {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .inspection-comparison__visual {
    display: none;
  }
}

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

  .inspection-pain-grid,
  .inspection-comparison {
    grid-template-columns: 1fr;
  }

  /* 紙とRFIDのブロック間に余白 */
  .inspection-comparison {
    gap: 60px;
  }

  /* PC用の左右画像はスマホでは非表示 */
  .inspection-comparison__visual {
    display: none;
  }

  /* 「紙」「RFID」のタイトル */
  .inspection-flow__title {
    min-height: 52px;
    margin-bottom: 14px !important;
    padding: 8px 14px !important;
    font-size: 19px !important;
  }

  /* 「点検」「記入」「管理」など */
  .inspection-flow__step {
    min-height: 52px;
    padding: 8px 14px;
    font-size: 17px;
  }

  /* ↓部分も少し詰める */
  .inspection-flow__arrow {
    min-height: 36px;
  }

  .inspection-flow__arrow i {
    font-size: 26px;
  }

  .inspection-after-flow__step {
    font-size: 15px;
  }

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

  .scene-page #sub-nav-cta-bottom .cta_buttons .button {
    width: 100%;
    min-width: 0;
  }
}
