.compare {
  overflow-y: auto;
  width: 100%;
}
.compare__main-image {
  width: 100%;
  margin-top: 20px;
  object-fit: cover;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 600px) {
  .compare__main-image {
    width: 90%;
    max-width: 320px;
    margin-top: 10px;
    margin-left: auto;
    margin-right: auto;
  }
}
  .compare__table {
    border-collapse: collapse;
    width: 100%;
    border: solid 2px var(--main-color);
    border-top: none;
    color: #084f6a;
    font-size: 14px;
  }
    .compare__head {
      padding: 0.3em 0;
      border-top: solid 1px var(--main-color);
      border-right: solid 1px #fff;
      background-color: var(--main-color);
      text-align: center;
      color: #fff;
    }
      .compare__head:last-child {
        border-right-color: var(--main-color);
      }
    .compare__row {
      padding: 8px;
      border: solid 1px var(--main-color);
      background-color: #fff;
      text-align: center;
    }
      .compare__badge {
        display: block;
        height: 40px;
        margin: auto;
        margin-bottom: 5px;
      }
      .compare__logo {
        display: block;
        height: 90px;
        object-fit: scale-down;
        margin: auto;
      }
      .compare__name {
        display: block;
        width: 10em;
        color: #084f6a;
        font-weight: bold;
      }
        a:has(.compare__name) {
          text-decoration-color: #084f6a;
        }
      .compare__star {
        display: flex;
        justify-content: center;
        align-items: flex-start;
        color: #f8b528;
        font-size: 18px;
        font-weight: bold;
      }
        .compare__star img {
          height: 20px;
          margin-right: 5px;
        }
      .compare__tag {
        display: inline-flex;
        justify-content: center;
        align-items: center;
        margin-top: 5px;
        padding: 0.2em 1.2em;
        width: 3em;
        border-radius: 8px;
        background-color: #7caa91;
        color: #fff;
        font-weight: bold;
      }
        .compare__tag.type-3 {
          background-color: #af95af;
        }
      .compare__row .compare-img {
        display: block;
        margin: auto;
        width: 4em;
        object-fit: contain;
      }
      .compare__text {
        display: block;
        width: 8em;
        min-height: 2.5em;
        margin-top: 1em;
      }
      .compare__btn {
        display: inline-flex;
        justify-content: space-evenly;
        align-items: center;
        width: 8em;
        height: 3.5em;
        border-radius: 8px;
        background-color: #ffb749;
        box-shadow: 0 4px 0 #c75d14;
        color: #fff;
        font-weight: bold;
        text-decoration: none;
      }

@media screen and (max-width: 768px) {
  .compare {
    width: 98%;
    margin: auto;
  }
  .compare__table, .compare__head, .compare__row {
    font-size: 12px;
  }
  .compare__axis {
    position: sticky;
    z-index: 10;
    top: 0;
    left: 1px;
    border: solid 1px var(--main-color);
  }
    .compare__axis.compare__row {
      background-color: #f0f8ff;
    }
    .compare__axis::before {
      content: "";
      position: absolute;
      top: 0;
      left: -2px;
      width: 0;
      height: 101%;
      border-left: solid 2px var(--main-color);
    }
    .compare__axis::after {
      content: "";
      position: absolute;
      top: 0;
      right: -1px;
      width: 0;
      height: 101%;
      border-right: solid 3px var(--main-color);
    }

}