@charset 'utf-8';

.smartphone-menu {
  width: 100%;
}

.smartphone-menu #navbar {
  width: 50%;
  height: 100vh;
  position: fixed;
  top: 0;
  right: 0;
  background: #fff;
  opacity: 0;
  transform: translateX(100%);
  transition: opacity .5s, transform .5s;
  z-index: 3;
  padding: 8px;
}

#navbar.active {
  opacity: 1;
  transform: none;
}

#navbar #close {
  width: 32px;
  text-align: center;
  margin-left: auto;
}

#navbar #close i {
  font-size: 24px;
  cursor: pointer;
}

.smart_menu {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin: 12px auto;
}

#navbar li {
  width: 90%;
  text-align: center;
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity .9s, transform .9s;
  padding: 8px;
}

#navbar.active li {
  opacity: 1;
  transform: none;
}

#navbar li:not(:last-of-type) {
  border-bottom: 1px solid #ddd;
}

#navbar.active li:nth-child(1) {
  transition-delay: .1s;
}

#navbar.active li:nth-child(2) {
  transition-delay: .2s;
}

#navbar.active li:nth-child(3) {
  transition-delay: .3s;
}

#navbar.active li:nth-child(4) {
  transition-delay: .4s;
}

.smart_menu a {
  display: inline-block;
  width: 100%;
  color: #333;
  font-weight: bold;
  padding: 5px;
}

.smart_menu a.active {
  background: hsl(39, 100%, 60%);
  border-radius: 4px;
}

.smart_menu a:not(.active):hover {
  opacity: .6;
  transition: opacity .4s;
}

/* .mask */
.mask_Cove {
  transform: translateX(100%);
  transition: transform .3s;
}

.mask_Cove.active {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  background-color: rgba(0, 0, 0, .2 );
  z-index: 2;
  transform: none;
}

/* content */
.content.active {
  display: block;
  color: #333;
  padding: 8px;
}

.content {
  display: none;
}

/* top-tab */
.top-tab {
  display: none;
}

/* tablet */
@media (min-width:550px) {
  #navbar.active,
  .mask_Cove.active {
    display: none;
  }
  /* top-tab */
  .top-tab {
    display: block;
  }

  .pc-tab_menu {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    gap: 8px;
    margin: 0 auto 8px;
  }

  .pc-tab_menu li  {
    width: 20%;
    text-align: center;
    background: #eee;
    border-radius: 4px 4px 0 0;
  }

  .pc-tab_menu a {
    transition: .6s;
  }

  .pc-tab_menu a:hover {
    background: #ccc;
  }

  .pc-tab_menu li a.active {
    pointer-events: none;
  }
}

/* PC */
@media (min-width:820px) {
  .pc-tab_menu a:hover {
    background: #aaa;
  }
}
