@charset "UTF-8";

/*=============================================================================
  QRMS - リスモンG-与信ナビ CSS
============================================================================= */

/* rm-block
============================================================================= */

/* rm-rank, rm-change */
.rm-block table {
  border: 1px solid #CCCCCC;
}

.rm-block th {
  background-color: #F5F5F5;
}

.rm-block th,
.rm-block td {
  padding: 1rem .4rem;
  text-align: center;
}

.rm-block .rm-rank table {
  max-width: 50%;
}

@media (max-width: 767px) {

  .rm-block .rm-rank table {
    max-width: 100%;
    table-layout: auto;
  }

  .rm-block th,
  .rm-block td {
    white-space: nowrap;
  }

}

/* rm-limit */
.rm-block .credit-limit {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.rm-block .credit-limit figure {
  position: relative;
  width: calc((100% - 6rem) / 2);
}

.rm-block .credit-limit figure:last-child:before,
.rm-block .credit-limit figure:last-child::after {
  content: '';
  display: inline-block;
  position: absolute;
  top: 50%;
}

.rm-block .credit-limit figure:last-child::before {
  left: -50px;
  width: 20px;
  height: 18px;
  margin-top: -9px;
  background-color: #00A3E5;
}

.rm-block .credit-limit figure:last-child::after {
  left: -30px;
  width: 0;
  height: 0;
  margin-top: -20px;
  border-style: solid;
  border-top: 20px solid transparent;
  border-bottom: 20px solid transparent;
  border-left: 20px solid #00A3E5;
  border-right: 0;
}

@media (max-width: 767px) {

  .rm-block .credit-limit {
    flex-direction: column;
  }

  .rm-block .credit-limit figure {
    width: 100%;
  }

  .rm-block .credit-limit figure + figure {
    padding-top: 5rem;
  }

  .rm-block .credit-limit figure:last-child::before {
    top: 10px;
    left: calc(50% - 9px);
    width: 18px;
    height: 20px;
    margin-top: 0;
  }

  .rm-block .credit-limit figure:last-child::after {
    top: 20px;
    left: calc(50% - 20px);
    margin-top: 0;
    border-top: 20px solid #00A3E5;
    border-bottom: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
  }

}
