/*
 * TSS RFID Room
 * 利用シーン別ページ：持出・返却
 * scene-common.cssに対するページ固有差分
 */

/* ==========================================================================
   1. 冒頭の課題一覧
   ========================================================================== */

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

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

/* ==========================================================================
   2. 紛失原因の整理
   ========================================================================== */

.checkout-cause {
  background: linear-gradient(90deg, #232a3a 0%, #777d89 100%);
  color: #fff;
}

.checkout-cause .inv-heading {
  color: #fff !important;
}

.checkout-cause-flow {
  display: grid;
  grid-template-columns:
    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;
}

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

.checkout-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;
}

.checkout-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%);
}

.checkout-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;
}

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

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

/* ==========================================================================
   3. 紙・Excel・バーコード・RFID比較
   ========================================================================== */

.checkout-matrix-wrap {
  width: 100%;
  overflow-x: auto;
  padding-bottom: 6px;
}

.checkout-matrix {
  display: grid;
  grid-template-columns: 180px repeat(4, minmax(220px, 1fr));
  gap: 4px;
  min-width: 1180px;
  margin: 0 auto;
}

.checkout-matrix__blank {
  min-height: 174px;
}

.checkout-matrix__method {
  display: grid;
  grid-template-rows: 112px 62px;
  overflow: hidden;
}

.checkout-matrix__method img {
  display: block;
  width: 100%;
  height: 112px;
  object-fit: cover;
}

.checkout-matrix__method span {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  background: #858585;
  color: #fff;
  text-align: center;
  font-size: 25px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: .03em;
}

.checkout-matrix__method--rfid span {
  background: #c5a600;
}

.checkout-matrix__row-label,
.checkout-matrix__cell {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 13px 18px;
}

.checkout-matrix__row-label {
  justify-content: center;
  background: #303233;
  color: #fff;
  text-align: center;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: .04em;
}

.checkout-matrix__cell {
  justify-content: flex-start;
  background: #e9e9e9;
  color: #363636;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
}

.checkout-matrix__cell--rfid {
  background: #fff8dc;
}

/* ==========================================================================
   4. 下部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 ul.buttons > li {
  margin: 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;
  letter-spacing: 1.2px;
  text-decoration: none;
  box-sizing: border-box;
}

.scene-page #sub-nav-cta-bottom .icon_wrap {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  font-size: 1.1em;
}

.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;
  letter-spacing: 1px;
  white-space: nowrap;
}

.scene-page #sub-nav-cta-bottom .sub_text {
  font-size: .8em;
  font-weight: 400;
  letter-spacing: .5px;
  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;
}

/* ==========================================================================
   5. Responsive
   ========================================================================== */

@media screen and (max-width: 979px) {
  .checkout-cause-flow {
    grid-template-columns: 1fr;
    gap: 18px;
    max-width: 760px;
  }

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

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

  .checkout-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%);
  }

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

  .checkout-cause-flow__arrow {
    height: 30px;
  }

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

@media screen and (max-width: 736px) {
  .checkout-pain-grid {
    grid-template-columns: 1fr;
  }

  .checkout-cause-flow {
    max-width: 520px;
    gap: 22px;
  }

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

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

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

  .checkout-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%);
  }

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

  body.is-loading *:after {
    bottom: -16px;
  }

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

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

  .checkout-matrix {
    grid-template-columns: 150px repeat(4, 230px);
    min-width: 1070px;
  }

  .checkout-matrix__blank {
    min-height: 150px;
  }

  .checkout-matrix__method {
    grid-template-rows: 96px 54px;
  }

  .checkout-matrix__method img {
    height: 96px;
  }

  .checkout-matrix__method span {
    font-size: 20px;
  }

  .checkout-matrix__row-label,
  .checkout-matrix__cell {
    min-height: 52px;
    padding: 11px 14px;
  }

  .checkout-matrix__row-label {
    font-size: 15px;
  }

  .checkout-matrix__cell {
    font-size: 14px;
  }

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

  .scene-page #sub-nav-cta-bottom .cta_buttons .button {
    min-width: 230px;
    padding: 2em 1em;
    font-size: 1em;
  }
}
