.js-comparison-modal {
  position: relative;
}
.comparison_table {
  display: block;
  overflow-y: scroll;
  border-left: 1px solid #d7d7d7;
  border-bottom: 1px solid #d7d7d7;
  max-height: 600px;
}
@media only screen and (max-width: 640px) {
  .comparison_table {
    display: block;
    height: 500px;
    overflow-x: scroll;
  }
}
.free_box {
  content: "";
  position: absolute;
  background-color: #fff;
  width: 225px;
  min-width: 225px;
  height: 0;
  top: 30px;
  left: 30px;
  z-index: 10;
  border-top: 1px solid #d7d7d7;
  border-left: 1px solid #d7d7d7;
  border-bottom: 1px solid #d7d7d7;
}
@media only screen and (max-width: 640px) {
  .free_box {
    top: 10px;
    left: 10px;
    width: 60px;
    min-width: 60px;
  }
}
.comparison_table thead {
  display: block;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  /* tbody内のセルより手前に表示する */
  z-index: 2;
}
.comparison_table tbody .comparison_dt {
  background-color: #fff;
  position: -webkit-sticky;
  position: sticky;
  left: 0;
  z-index: 1;
  /* z-index: 1; */
}
.comparison_table tbody .comparison_item {
  z-index: 0;
  position: relative;
}
/* .comparison_table tbody .comparison_dt td {
  z-index: 1;
} */

.comparison_table tbody,
.comparison_table thead tr {
  display: flex;
}
@media only screen and (min-width: 641px) {
  .comparison_table tbody tr td,
  .comparison_table thead tr th {
    width: 225px;
    min-width: 225px;
  }
}
@media only screen and (max-width: 640px) {
  .modal-cont.row {
    max-width: 100%;
  }
  .modaal-container {
    max-width: calc(100% - 20px);
  }
  .comparison_table thead .comparison_item th:first-child,
  .comparison_table tbody .comparison_dt {
    width: 60px;
    min-width: 60px;
  }
  .comparison_table thead .comparison_item th:not(:first-child),
  .comparison_table tbody tr:not(:first-child) {
    width: calc(45% - 60px);
    min-width: calc(63% - 60px);
  }
}
.comparison_table thead tr th {
  background-color: #dedede;
  position: relative;
  text-align: center;
}
.comparison_table tbody th,
.comparison_table td {
  display: block;
  word-break: break-all;
  padding: 20px;
  border-right: 1px solid #d7d7d7;
  border-bottom: 1px solid #d7d7d7;
  font-size: 13px;
}
@media only screen and (max-width: 640px) {
  .comparison_table tbody th,
  .comparison_table td {
    font-size: 12px;
    padding: 10px;
  }
}
.comparison_table tbody .comparison_dt td {
  background-color: #dedede;
}
.comparison_item_close,
.comparison_item_close.modaal-close {
  position: absolute;
  right: 0;
  top: 0 !important;
  background-color: #fff;
  color: #959fa6;
  border: 1px solid #dedede;
  width: 1.5em;
  height: 1.5em;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-left: 3px;
  cursor: pointer;
  border-radius: 0;
}
.comparison_item_close.modaal-close:before,
.comparison_item_close.modaal-close:after {
  display: none !important;
}

.comparison_table thead .comparison_item th:first-child {
  z-index: 1;
  position: relative;
}
.comparison_table thead .comparison_item th:not(:first-child) {
  z-index: 0;
  position: relative;
  padding: 30px 20px 20px;
  border-top: 1px solid #d7d7d7;
  border-right: 1px solid #d7d7d7;
  border-bottom: 1px solid #d7d7d7;
}
@media only screen and (max-width: 640px) {
  .comparison_table thead .comparison_item th:not(:first-child) {
    padding: 20px 5px;
  }
  .comparison_table thead .comparison_item th:not(:first-child) .fcs-card__image img {
    width: 150px;
    max-width: 100%;
  }
}
.comparison_table thead .comparison_item th:not(:first-child),
.comparison_table tbody .comparison_item {
  display: none;
}
.comparison_table thead .comparison_item th:not(:first-child).show,
.comparison_table tbody .comparison_item.show {
  display: block;
  background-color: #fff;
}

.check {
  padding: 0 26px;
  position: relative;
  font-size: 14px;
  font-weight: 700;
  display: flex;
}
.check:before,
.check:after {
  content: "";
  position: absolute;
}
.check:before {
  width: 20px;
  height: 20px;
  border-radius: 2px;
  background: #f5f5f5;
  border: 1px solid #dedede;
  left: 0;
  top: calc(50% - 9px);
}
.check.show:before {
  background: #959fa6;
  border: 1px solid #959fa6;
}
.check.show:after {
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  width: 10px;
  height: 5px;
  -webkit-transform: rotate(-45deg);
  transform: rotate(-45deg);
  left: 5px;
  top: 18px;
}
@media only screen and (max-width: 640px) {
  .check.show:after {
    top: 9px;
  }
}

.comparison_btn {
  text-align: center;
}
.comparison_btn .checkOpen {
  display: inline-block;
  color: #fff;
  background-color: #0070bd;
  font-size: 14px;
  font-weight: 500;
  padding: 15px 50px;
  border-radius: 5px;
  text-align: center;
  pointer-events: none;
  opacity: 0.2;
}
.comparison_btn .checkOpen.show {
  opacity: 1;
  pointer-events: all;
}

.fcs-card__title {
  padding: 10px 0;
}
.fcs-card__title span {
  font-size: 11px;
  font-weight: 700;
  height: 2.5em;
  letter-spacing: 0;
  line-height: 1.3;
  display: block;
}
@media only screen and (max-width: 640px) {
  .fcs-card__title span {
    font-size: 10px;
    height: 5.5em;
  }
}
.comparison_table thead tr th .btn .more {
  margin: 0;
  background-color: #0070bd;
  font-size: 14px;
  font-weight: 700;
  padding: 10px;
  border-radius: 4px;
  color: #fff;
  display: block;
  line-height: 1;
}
.comparison_table thead tr th .btn .more.info {
  color: #0070bd;
  background-color: #fff;
  border: 2px solid #0070bd;
}
.comparison_table thead tr th .btn .more:not(:last-child) {
  margin-bottom: 5px;
}
@media only screen and (max-width: 640px) {
  .comparison_table thead tr th .btn .more {
    font-size: 10px;
    padding: 10px 5px;
  }
}
.js-comparison-modal.modal-cont ul.notes {
  font-size: 11px;
}
.modaal-container .modaal-close {
  top: -50px;
}
