@charset "utf-8";

/* ----- 比較機能 ----- */

.comparison {
  position: fixed;
  bottom: 0;
  text-align: center;
  z-index: 1050000; /* Zendeskウィジェットよりは上、モーダルよりは下のレイヤーで表示 */
  width: 100%;
  overflow-x: visible !important;
}
@media screen and (min-width: 450px) {
  .comparison {
    min-width: 400px;
    max-width: 450px;
  }
}

.comparison-btn {
  position: relative;
  color: #fff;
  padding-top: 30px;
}

/* - 追加数 */

.comparison-add-number {
  position: absolute;
  top: -10px;
  right: -10px;
  border: 2px solid var(--key-color);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  background-color: #fff;
  box-shadow: -1px 1px 5px rgba(0, 0, 0, 0.4);
  display: none;
}
.comparison-add-number span {
  color: var(--key-color);
  font-size: 1.15em;
  display: block;
  margin-top: 1px;
}
.comparison-add-number span.material-symbols-outlined {
  margin-top: 3px;
}

/* - 比較格納ボタン*/

.comparison .comparison-btn {
  display: block;
  cursor: pointer;
  font-size: 0.9em;
  margin: 0 5px;
  padding: 10px 0 10px 0;
  width: 120px;
  background-color: var(--key-color);
}

/* -- チェックは隠す*/

.comparison input {
  display: none;
}

/* -- 中身を非表示にしておく*/

.comparison .comparison-show {
  height: 0;
  padding: 0 20px;
  margin: 0 5px;
  overflow: hidden;
  opacity: 0;
  transition: 0.1s;
}
.comparison .comparison-show .comparison-link-wrap {
  display: flex;
  justify-content: space-around;
  margin: 30px 20px;
}
.comparison .comparison-show .comparison-link-wrap a.text-link-base {
  font-size: 13px;
}

/* - クリックで中身表示*/

.comparison-label:checked + .comparison-btn + .comparison-show {
  height: auto;
  opacity: 1;
  padding: 0 20px;
  background-color: #fff;
  text-align: left;
  border-top: 1px solid var(--key-color);
  border-left: 1px solid var(--key-color);
  border-right: 1px solid var(--key-color);
  border-top-right-radius: 4px;
  -webkit-border-top-right-radius: 4px;
  -moz-border-radius-topright: 4px;
}

/* -- アイコンを入れ替える*/

#comp_products {
  overflow-x: hidden;
  overflow-y: auto;
  max-height: 250px;
  min-height: 60px;
  margin-bottom: 2.5rem;
}
#comp_products > li {
  border-bottom: 1px solid #eee;
  padding: 5px 0;
  list-style: none;
  display: flex;
}
#comp_products > li a {
  color: inherit;
}
#comp_products > li > div {
  font-size: 0.8em;
}
#comp_products > li > div.comparison-widget-img-area {
  width: 20%;
  max-width: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}
#comp_products > li > div.comparison-widget-product-spec-area {
  width: 70%;
  max-width: 280px;
}
#comp_products > li > div.comparison-widget-product-spec-area > a {
  padding: 5px 15px;
  display: block;
}
#comp_products > li > div.comparison-widget-product-spec-area > div.comparison-widget-product-spec-detail-area {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
}
#comp_products > li > div.comparison-widget-product-spec-area > div.comparison-widget-product-spec-detail-area > a {
  width: 50%;
  padding: 5px 0 5px 15px;
}
#comp_products .comparison-product-name {
  margin-bottom: 2px;
}
#comp_products .comparison-product-spec {
  opacity: .6;
  line-height: 1.7;
}
#comp_products .comparison-product-price-disable {
  /*opacity: 0.5;*/
}
#comp_products > li > div.comparison-widget-product-delete-check-area {
  width: 10%;
  display: flex;
  justify-content: center;
  align-items: center;
}
@media screen and (min-width: 768px) {
  #comp_products > li > div.comparison-widget-product-delete-check-area {
    margin-right: 5px;
  }
}
#comp_products > li > div.comparison-widget-product-delete-check-area label {
  cursor: pointer;
}
#comp_products img {
  width: 100%;
  max-width: 80px;
}
#comp_products .comparison-widget-diamond-list img {
  max-width: 56px;
}
.comparison-products--none {
  color: #3a3b3d;
  display: inline-block;
  font-size: .8rem;
  padding: 30px 0 0;
}
@media screen and (max-width: 767px) {
  .comparison-products--none {
    font-size: 12px;
  }
}

/* - 比較アクティブ */

.comparison-active {
  background-color: var(--key-color) !important;
}
.comparison-active > .comparison-add-number {
  display: inherit;
}

/* -- 比較追加リストがクリックされたら背景を固定する*/

.comparison-fixed {
  position: fixed;
  width: 100%;
  height: 100%;
}
.active .comparison_checkbox-list-area {
  display: none;
}

.comparison-delete {
  font-size: 13px;
}

