.compare {
  width: 100%;
}
.compare__tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  width: 100%;
  margin-top: 10px;
}
.compare__tabs.tab-3 {
  grid-template-columns: repeat(3, 1fr);
}
  .compare__tab {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 36px;
    background: #d9d9d9;
    border: solid 1px #D0CECE;
    box-shadow: 1px 0px 2px #aaa;
    font-size: 12px;
    cursor: pointer;
  }
    .compare__tab:last-of-type {
      border-right: solid 1px #D0CECE;
    }
    .compare__tab img {
      width: 36px;
      height: 36px;
      margin-right: 8px;
    }
    .compare__tab.selected {
      position: relative;
      background: #404040;
      color: white;
      border-bottom: none;
      box-shadow: 2px -1px 4px #555;
      font-size: 14px;
      font-weight: bold;
    }
      .compare__tab.selected::after {
        content: "";
        position: absolute;
        bottom: -1px;
        left: 0;
        width: calc(100% - 2px);
        border: solid 1px #F1F1F1;
      }

.compare__table {
  box-shadow: 2px -1px 4px #555;
  text-align: center;
  font-size: 12px;
  width: 100%;
}
  .compare__head {
    width: 20%;
    padding: 0.4em 0;
    border: solid 1px #bbb;
    background: #404040;
    color: white;
  }
  .compare__head.w-30 {
    width: 30%;
  }
  .compare__head.w-40 {
    width: 40%;
  }
  .compare__head.w-60 {
    width: 60%;
  }
    .compare__head--name,
    .compare__head--button {
      width: 20%;
    }
    .compare__head--double {
      width: 30%;
    }
    .compare__head--triple {
      width: 45%;
    }
    .compare__head>span {
      display: inline-block;
    }
  .compare__cell {
    border: solid 1px #bbb;
    line-height: 1.3;
    word-break: break-all;
  }
  .compare__cell.w-40 {
    width: 40%;
  }
  .compare__cell.w-25 .compare-img {
    width: 25%;
  }

  .compare__cell.hide-compare-img .compare-img {
    display: none;
  }
    .compare__badge {
      display: block;
      width: 30%;
      object-fit: contain;
      margin: 2px auto;
    }
    .compare__logo {
      display: block;
      width: 100%;
      object-fit: scale-down;
    }
    .compare__table .compare-img {
      display: block;
      width: 35%;
      object-fit: contain;
      margin: 0 auto 6px;
    }
    .compare__button {
      display: flex;
      justify-content: center;
      align-items: center;
      width: 75%;
      aspect-ratio: 1/1;
      margin: 10px auto;
      background: linear-gradient(to bottom, #FF1E00, #FF7400);
      border-radius: 5px;
      box-shadow: 0 3px 0 #BF1600;
      text-align: center;
      color: #fff;
      font-size: 14px;
      font-weight: bold;
      text-decoration: none;
    }
.compare__note {
  width: 100%;
  margin-bottom: 20px;
  padding: 0.2em;
  font-size: 10px;
}

@media screen and (min-width: 768px) {
  .compare__table {
    /* font-size: 14px; */
  }
    .compare__head {
      width: 12%;
      padding: 0.2em 0;
    }
    .compare__head.w-18 {
      width: 18%;
    }
    .compare__head--name,
    .compare__head--button {
      width: 14%;
    }
    .compare__head--double {
      width: 30%;
    }
    .compare__head--double.w-36 {
      width: 36%;
    }
    .compare__head--triple {
      width: 45%;
    }
    .compare__button {
      width: 60px;
    }
    .compare__table .compare-img {
      width: 30px;
    }
}

.rank {
  margin-bottom: 5px;
  font-weight: bold;
  vertical-align: inherit;
}