:root {
  --current-height: ;
}

/*--------------------------------------------------
 *              Comparison style
 * --------------------------------------------------*/
 div.container:has(nav.product-menu) main.comparison {
  padding: clamp(1rem, 4vw, 75px) 0;
  margin: 0 auto;
}

.comparison {
  font-family: "system-ui","Open Sans";
  box-sizing: border-box;
  /* margin: 0 auto; */
  max-width: 1200px;
}

.comparison .page_title {
  color: #079bcc;
  text-align: center;
  padding: 25px 20px 0 20px;
  line-height: 1;
  font-weight: 800;
  font-size: clamp(1.4rem, 6vw, 2rem);
}

.des {
  font-size: 15px;
  text-align: center;
  line-height: 1.6em;
  width: 80%;
  margin: 20px auto 0;
}

main div.mask {
  height: 58px;
  background: white;
  position: sticky;
  top: 0;
  z-index: 4;
}

main .grid {
  display: grid;
  grid-template-columns: auto repeat(3, 15%);
  background: rgb(247, 247, 247);
  border-right: 1px solid #E4E4E4;
}

main.JPN .grid {
  grid-template-columns: auto repeat(4, 15%);
}

main .grid.product {
  height: 60px;
  /* margin-top: 40px; */
  color: white;
  position: sticky;
  top: 58px;
  z-index: 3;
}

main .grid.product div {
  padding: 5px;
}

.name:nth-of-type(1) {
  background: rgb(6,65,59);
}

.name:nth-of-type(2) {
  background: rgb(12,151,132);
}

.name:nth-of-type(3) {
  background: rgb(12,124,186);
}

.name:nth-of-type(4) {
  background: rgb(130,29,126);
}

.name:nth-of-type(5) {
  background: black;
}

main .grid.boxcover {
  height: 150px;
}

main .grid.boxcover div {
  border-left: 1px solid #E4E4E4;
}

main .grid div,
main .grid img,
main .grid span {
  text-align: center;
}

main .grid div {
  display: flex;
  align-items: center;
  justify-content: center;
}

main .grid img {
  place-self: center;
}

.boxcover img {
  width: 70%;
  border-radius: 8px;
}

.product .name {
  line-height: 1.1;
}

main .grid.market div {
  display: flex;
  flex-direction:column;
  border-left: 1px solid #E4E4E4;
  justify-content: end;
}

main .grid.market .old-price {
  text-decoration: line-through;
  color: #2e5974;
}

main .grid.market .price {
  color: #C30;
  color: #FF0455;
  font-weight: 600;
  padding-top: 3px;
  font-size: clamp(1rem, 0.9vw, 1.2rem);
}

main .grid.market .old-price:empty ~ .price {
  color: black;
}

main.JPN .grid.market .old-price.sub {
  display: none;
}

main .grid.market .price br {
  display: none;
}

main .grid.market a {
  width: 80%;
  text-decoration: none;
  background-color: #09F;
  color: #FFF;
  border-radius: 3px;
  font-size: 1em;
  padding: 6px 0;
  margin: 6px 0 12px 0;
  transition: 0.2s all;
}

main .grid.market div:has(a.upgrade-user) {
  z-index: 2;
}

main .grid.market a:not(.upgrade-user):hover {
  transform: scale(1.05); 
}

main .grid.market a.upgrade-user {
  margin: 0;
  color: black;
  /* background-color: #d4d4d4; */
  background-color: transparent;
  margin-bottom: 12px;
  padding: 0;
  font-size: 0.8rem;
  text-wrap-style: balance;
  position: relative;
}

main .grid.market a.upgrade-user:hover {
  /* translate: 5px 0; */
  background-color: #8080803b;
  color: #00000096;
}

main .upgrade-user {
  place-self: center;
  font-weight: 500;
  text-decoration: underline;
  font-size: 0.8rem;
  color: black;
  /* grid-row: 5; */
  grid-row: 7;
  transition: all ease-in-out 0.10s;
}

main .upgrade-user::before {
  content: attr(data-tooltip);
  margin-top: 0;
  position: absolute;
  font-size: 0.77rem;
  color: black;
  background: #ffffff;
  padding: 0.5rem;
  border-radius: 10px;
  box-shadow: 0px 0px 10px gray;
  clip-path: circle(0rem at center);
  overflow: hidden;
  transition: 300ms all ease-in;
  right: -35%;
  left: -35%;
  /* bottom: 49% !important; */
  bottom: -60px !important;
  height: fit-content;
  pointer-events: none;
}

main .upgrade-user:hover::before {
  clip-path: circle(20rem at center);
  bottom: 25px;
}

main .upgrade-user:hover {
  margin-top: 3px;
  cursor: pointer;
  text-decoration: none;
  color: #565656;
  background: #80808029;
  padding: 0 8px;
  border-radius: 4px;
}

main .grid.section {
  position: sticky;
  top: 118px;
  border-top: 2px solid #E4E4E4;
}

.accordion {
  grid-column: 1/-1;
  padding: 8px 18px;
  background: #E4E4E4;
  border-right: 1px solid #E4E4E4;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  color: #079bcc;
  background-image: url(/stat/edms/product-version-images/2021/icons/less.png);
  background-repeat: no-repeat;
  background-position: center right 3%;
  cursor: pointer;
  user-select: none;
}

.accordion.active {
  background: #f8f8f8;
  background-image: url(/stat/edms/product-version-images/2021/icons/more.png);
  background-repeat: no-repeat;
  background-position: center right 3%;
  transition: all linear 0.15s;
}

main .grid.features {
 background-color: white;
 border-left: 1px solid #E4E4E4;
 border-top: 1px solid #E4E4E4;
 transition: height cubic-bezier(0, 0.25, 0.35, 0.99) 0.6s;
 overflow: hidden;
}

main .grid.features.active {
  height: 0 !important;
  overflow: hidden;
  transition: height cubic-bezier(0.53, 0, 0.23, 1) 0.5s;
  transition-delay: 0s;
}

main .grid.features p {
  grid-column: 1;
  margin: 0;
  font-size: 13px;
  font-weight: 400;
  padding: 5px 10px 5px 18px;
  border-bottom: 1px solid #E4E4E4;
  display: flex;
  align-items: center;
  font-family: system-ui;
  justify-content: space-between;
}

@media (min-width: 569px) {
  main .grid.features p:hover,
  main .grid.features p:hover + span,
  main .grid.features p:hover + span + span,
  main .grid.features p:hover + span + span + span,
  main .grid.features p:hover + span + span + span + span,
  main .grid.features p:hover + span + span + span + span + span {
    background: #e9f6ff;
  }
}

.features span {
  display: flex;
  justify-content: center;
  align-items: center;
  color: #09c;
  border-bottom: 1px solid #E4E4E4;
  border-left: 1px solid #E4E4E4;
  font-size: 13px;
  line-height: 1.2;
}

span.c_new {
  background: #ea0000;
  color: white;
  width: auto;
  padding: 3px 7px;
  border-radius: 5px;
  white-space: nowrap;
}

main .grid div:nth-of-type(1),
main .grid.features > span:nth-of-type(5n + 1),
main .grid div:nth-of-type(3),
main .grid.features > span:nth-of-type(5n + 3) {
  display: none;
}

main.JPN .grid div:nth-of-type(3),
main.JPN .grid.features > span:nth-of-type(5n + 3) {
  display: flex;
}

@media only screen and (device-width: 768px) {
}

@media (min-width: 320px) and (max-width: 568px) {

  main .grid {
    grid-template-columns: repeat(3, 1fr);
  }

  main.JPN .grid {
    grid-template-columns: repeat(4, 1fr);
  }

  main .grid.features p {
    grid-column: 1/-1;
    padding: 8px 14px 8px 14px;
  }

  .features span {
    color: white !important;
    padding: 5px 10px;
    border-left: none;
  }

  main .grid.features > span:nth-of-type(5n + 1) {
    background: rgb(6,65,59);
  }

  main .grid.features > span:nth-of-type(5n + 2) {
    background: #389c80;
  }

  main .grid.features > span:nth-of-type(5n + 3) {
    background: rgb(12,124,186);
  }

  main .grid.features > span:nth-of-type(5n + 4) {
    background: #98397b;
  }

  main .grid.features > span:nth-of-type(5n + 5) {
    background: black;
  }

  span.empty_space {
    display: none;
  }

}
