@charset "UTF-8";

.affiliate {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.affiliate ul {
  background-color: #fafafa;
  border: 1px solid #dddddd;
  width: calc((100% - 24px) / 2);
  border-radius: 8px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  display: flex;
  flex-direction: column;
}

.affiliate ul li:nth-of-type(1) {
  padding: 24px 32px 0 32px;
  font-weight: bold;
  font-size: 1.8rem;
}

.affiliate ul li:nth-of-type(2) {
  padding: 6px 32px 0 32px;
}

.affiliate ul li:nth-of-type(2) table:nth-of-type(1) tbody tr td {
  padding-top: 8px;
  vertical-align: top;
}

.affiliate ul li:nth-of-type(2) table:nth-of-type(1) tbody tr td:nth-of-type(1) {
  white-space: nowrap;
}

.affiliate ul li:nth-of-type(2) table:nth-of-type(2) tbody tr td {
  padding: 8px 0 0 0;
  vertical-align: top;
}

.affiliate ul li:nth-of-type(2) table:nth-of-type(2) tbody tr td:nth-of-type(1) {
  padding-right: 8px;
}

.affiliate ul li:nth-of-type(3) {
  margin-top: auto;
  padding: 16px 24px 0 24px;
}

@media screen and (max-width: 767px) {

  .affiliate {
    flex-direction: column;
  }

  .affiliate ul {
    width: 100%;
  }

}