.dj {
  .title-box {
    font-size: 16px;
    margin-bottom: 20px;
  }
  .dj_list {
    display: grid;
    grid-template-columns: repeat(auto-fit, 160px);
    gap: 30px;
    justify-content: center;
  }
  .card {
    a {
      width: 100%;
      aspect-ratio: 4 / 5;
      display: block;
    }
    .card_img {
      width: 100%;
      margin: 0 0 10px 0;
      background: var(--color-gray-light);
      aspect-ratio: 4 / 5;
      border-radius: 10px;
      position: relative;

      img {
        width: 100%;
        height: 100%;
        display: block;
        border-radius: 10px;
        object-fit: contain;
      }
      span {
        width: 45px;
        height: 45px;
        font-size: 10px;
        color: var(--color-white);
        font-weight: 600;
        text-align: center;
        line-height: 45px;
        border-radius: 10px 0;
        background: rgba(0, 0, 0, 0.6);
        position: absolute;
        bottom: 0;
        right: 0;
        transition: background 0.25s ease;
      }
    }
    a:hover .card_img span {
      background: rgba(255, 0, 0, 0.6);
    }
    .card_text {
      padding: 0 0 0 10px;
      font-weight: 600;
      line-height: 1.2;
    }
    .card_text span {
      font-size: 10px;
      font-weight: 400;
      display: block;
    }
  }
}

.profile {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  overflow-y: auto;
  transition: opacity 0.3s ease;
}
.profile.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.profile_inner {
  width: 90%;
  max-width: 600px;
  max-height: calc(90vh - 40px);
  margin: 0 auto 20px auto;
  padding: 30px;
  border-radius: 10px;
  background: var(--color-white);
  overflow-y: auto;
  position: relative;
  transition: transform 0.3s ease;
}
.profile.show .profile_inner {
  transform: translateY(0);
}
.profile_inner .close {
  font-size: 24px;
  position: absolute;
  top: 10px;
  right: 15px;
  cursor: pointer;
}

.profile_detail {
  .figure {
    margin: 0 0 10px 0;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
  }
  .figure img {
    max-height: 160px;
  }
  .name {
    width: 100%;
    padding: 20px 30px;
    font-size: 20px;
    color: var(--color-white);
    font-weight: 600;
    background: var(--brand-color2);
  }
  .name span {
    display: block;
  }
  .link_list {
    padding: 0 5px;
    display: flex;
    align-items: center;
    justify-self: flex-end;
  }
  .link_item:not(:last-child) {
    margin: 0 10px 0 0;
  }
  .link_item a {
    width: 30px;
    height: 30px;
    color: var(--color-gray-dark);
    border-radius: 50vh;
    border: solid 1px var(--color-gray-dark);
    background: var(--color-white);
    display: block;
    position: relative;
    transition: background 0.25s ease;
  }
  .link_item a:hover {
    color: var(--color-white);
    background: var(--color-gray-dark);
  }
  .link_item a i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  .dlist {
    padding: 10px 0 0 0;
    font-size: 12px;
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .dtitle {
    width: 100px;
    padding: 5px;
    font-weight: 600;
    border-bottom: solid 3px var(--brand-color1);
  }
  .ddesc {
    width: calc(100% - 100px);
    padding: 5px;
    border-bottom: solid 3px var(--color-gray-light);
  }
  .dtitle:not(:last-of-type),
  .ddesc:not(:last-of-type) {
    margin: 0 0 20px 0;
  }
}

@media screen and (max-width: 1024px) {
  .dj {
    .dj_list {
      grid-template-columns: repeat(auto-fit, 145px);
      gap: 30px 20px;
    }
  }
}

@media screen and (max-width: 800px) {
  .profile_inner {
    width: 90%;
    max-height: calc(90dvh - 90px);
  }
  .profile.show .profile_inner {
    transform: translateY(10px);
  }
  .profile_detail {
    .figure {
      flex-direction: column;
      align-items: center;
    }
    .name {
      width: 95%;
      margin: 0 auto;
      padding: 10px 20px;
      font-size: 16px;

      span {
        font-size: 12px;
      }
    }
    .dlist {
      flex-direction: column;
    }
    .dtitle,
    .ddesc {
      width: 100%;
    }
    .dtitle {
      margin: 0 0 5px 0;
    }
    .ddesc {
      margin: 0 0 10px 0;
    }
  }
}
