.nav{
    display: none;
}

.nav-bar-pc ul {
    flex-direction: row;
    display: flex;
    justify-content: end;
}

.nav-bar-pc ul li {
    list-style: none;
    margin: 0 10px;
}

.link {
    display: block;
    padding: .5rem 1rem;
    color: white;
    text-decoration: none;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out;
}

.link:hover {
    color: rgb(184, 184, 184);
}

@media screen and (max-width: 768px) {
    .nav-bar-pc {
        display: none;
    }

    .nav{
      display: flex;
      --img1: scale(1);
      --img2: scale(0);
  }
  
  .nav:has( .dropdown:target ){
      --img1: scale(0);
      --img2: scale(1);
  
      --clip:inset(0 0 0 0);
  
  }
  
  .nav__container{
      width: 90%;
      margin: 0 auto;
  
      display: grid;
      margin-top: 10px;
      grid-template-columns: max-content max-content;
      grid-template-areas: "title img";
      justify-content: space-between;
      align-items: start;
  
      overflow: hidden;
  }
  
  .nav__title{
      color: #fff;
      grid-area: title;
  }
  
  
  .nav__menu{
      grid-area: img;
      position: relative;
      z-index: 10;
  
      transform: var(--img1);
  }
  
  .nav__menu--second{
      transform: var(--img2);
  }
  
  .nav__icon{
      width: 30px;
      display: block;
  }
  
  .dropdown{
      position: absolute;
      background-color: #1a1a1a;
      width: 75%;
      max-width: 300px;
      right: 0;
      top: 0;
      bottom: 0;
      padding: 1em;
      z-index: 1;
      display: grid;
      align-content:center ;
      gap: 1rem;
      overflow-y: auto;
  
      clip-path: var(--clip, inset(0 0 100% 100%));
      transition: clip-path .5s;
  }
  
  .dropdown__list{
      list-style: none;
  }
  
  .dropdown__link{
      color: rgb(184, 187, 191);
      padding: 1em .7em;
      text-decoration: none;
      
      display: flex;
      align-items: center;
      gap: .6rem;
  
      position: relative;
      background-color: var(--bg, transparent);
      border-radius: 6px;
  }

  .dropdown__link:hover {
    color: #868686;
  }
  
  .dropdown__list:has( :checked ){
      --rows: 1fr;
      --rotate: rotate(180deg);
      --bg: #28303B;
  }
  
  .dropdown__check{
      position: absolute;
      width: 100%;
      height: 100%;
      opacity: 0;
      cursor: pointer;
  }
  
  .dropdown__arrow{
      margin-left: auto;
      transform: var(--rotate, 0);
      transition: .2s transform;
  }
  
  .dropdown__content{
      display: grid;
      grid-template-rows: var(--rows, 0fr);
      transition: .3s grid-template-rows;
  }
  
  .dropdown__sub{
      overflow: hidden;
  
  }
  
  .dropdown__li{
      width: 85%;
      list-style: none;
      margin-left: auto;
  }
  
  .dropdown__anchor{
      padding: 1em 0;
      display: block;
      color: #B6BABE;
      text-decoration: none;
  }

  .dropdown__anchor:hover {
    color: #868686;
  }

  .icon_menu {
    width: 20px;
  }
}
