/* ===============================================
  * ランク *
=============================================== */
.modal__overlay--rank{
  position: fixed;
  z-index: 9999;
  width: 100%;
  height: 100%;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-default);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.fixed-modal--rank .modal__overlay--rank{
  opacity: 1;
  pointer-events: all;
}
.fixed-modal--rank{
  overflow-y: hidden;
}
.js-rank-modal {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  width: 100%;
  z-index: 9999;
  height: calc(68dvh + 5rem);
  /* max-height: calc(57rem + 5rem); */
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 0;
  bottom: 0;
  margin: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-default);
}
.fixed-modal--rank .js-rank-modal{
  opacity: 1;
  pointer-events: all;
}
.rank-list {
  overflow-y: auto;
  overscroll-behavior-y: contain;
  height: 100%;
  position: relative;
  z-index: 100;
  width: 100%;
  padding-inline: 1.5rem;
}
.rank-list__heading{
  padding-block: 1.6rem;
  font-size: 1.8rem;
  line-height: 1;
  letter-spacing: 0.1em;
  font-weight: var(--fw-bold);
  color: #fff;
  display: grid;
  place-content: center;
  background: var(--color-text-default);
  position: sticky;
  top: 0;
}
.rank-list__close-button{
  appearance: none;
  position: absolute;
  z-index: 999;
  right: 1rem;
  top: -1rem;
  width: 4rem;
  aspect-ratio: 1;
  background: var(--color-bg-form);
  border-radius: 4em;
}

.rank-list__contents{
  display: grid;
  grid-template-columns: 33% 67%;
  /* overflow: hidden; */
  background: #fff;
  /* max-height: 57rem; */
  height: 68dvh;
}
.rank-list__contents--drawing{
  display: grid;
  /* grid-template-rows: auto 40dvh auto; */
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  height: 100%;
  align-items: center;
  text-align: center;
  background: var(--color-bg-form);
}
.rank-list__contents--drawing-condition{
  font-size: 2.5rem;
  line-height: 1;
  font-weight: var(--fw-bold);
  color: var(--color-text-default);
}
.rank-list__condition-good{
  margin-block: auto 0;
}
.rank-list__condition-used{
  margin-block: 0 auto;
}
.rank-list__contents--drawing-image{
  width: auto;
  max-height: 34rem;
  height: 45dvh;
  display: block;
}
.rank-list__contents--drawing-image img{
  width: auto;
  height: 100%;
}
.rank-list__contents--detail{
  overflow-y: auto;
}
.rank-list__contents--detail-inner{
  padding: 2rem 2.5rem;
}
.rank-list__item{

}
.rank-list__item + .rank-list__item{
  margin-top: 1.4rem;
  padding-top: 1.4rem;
  border-top: 1px dotted;
}
.rank-list__item-icon{
  padding-block: .8rem;
  width: 100%;
  background: var(--color-text-default);
  border-radius: 4em;
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  letter-spacing: 0.1em;
  display: grid;
  place-content: center;
  font-family: var(--font-en);
}
.rank-list__item-icon[data-icon-state="good"]{
  background: #F8523D;
}
.rank-list__item-description{
  margin-top: 1rem;
  font-size: 1.4rem;
  line-height: 1.4;
  letter-spacing: 0.08em;
  font-weight: var(--fw-medium);
  color: var(--color-text-default);
}
.rank-list__item-description--notice{
  margin-top: .4rem;
  display: block;
  color: var(--color-red);
  font-size: 1.2rem;
  line-height: 1.3;
}

@media screen and (min-width: 768px) {
  .js-rank-modal {
    height: 64dvh;
    max-height: 58.4rem;
  }
  .rank-list {
    max-width: 80rem;
    width: 100%;
    padding-inline: 0;
  }
  .rank-list__heading{
    padding-block: 1.6rem 1.9rem;
    font-size: 2.5rem;
  }
  .rank-list__close-button{
    right: calc(50% - 3rem - 40rem);
    top: -2rem;
    width: 6rem;
  }

  .rank-list__contents{
    display: grid;
    grid-template-columns: 31.25% 68.75%;
    /* overflow: hidden; */
    background: #fff;
    /* max-height: 57rem; */
    height: calc(64dvh - 6rem);
    max-height: calc(58.4rem - 6rem);
  }
  .rank-list__contents--drawing-image{
    max-height: 29.9rem;
    height: 34dvh;
  }
  .rank-list__contents--drawing-image img{
    width: auto;
    height: 100%;
  }
  .rank-list__contents--detail-inner{
    padding: 3rem 4rem;
  }
  .rank-list__item{
    display: grid;
    grid-template-columns: 5.5rem auto;
    gap: 1.5rem;
    align-items: center;
  }
  .rank-list__item-icon{
    padding-block: 1.1rem;
  }
  .rank-list__item-description{
    margin-top: 0;
    font-size: 1.6rem;
  }
  .rank-list__item-description--notice{
    font-size: 1.4rem;
  }

}