@charset "UTF-8";
@import url("style.css");

#loader-bg {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0px;
  left: 0px;
  background: #000;
  z-index: 499;
}
#loader {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 200px;
  height: 200px;
  margin-top: -100px;
  margin-left: -100px;
  text-align: center;
  color: #fff;
  z-index: 2;
}

/* ベースレイアウト */
main section {
  width: 85vw;
  padding: 0;
  display: flex;
  justify-content: space-between;
}

nav#side-nav {
  width: 15rem;
  font-size: 1rem;
}

nav#side-nav li {
  width: 100%;
  margin-top: 0.5em;
  font-size: 1em;
  line-height: 2em;
  text-align: center;
  cursor: pointer;
  border-bottom: 1px solid #000;
}

nav#side-nav li:nth-of-type(3) {
  margin-top: 0;
  border-bottom: none;
}

nav#side-nav li.selected {
  color: #9b706d;
}

nav#side-nav li ul.sub-category {
  display: none;
}

nav#side-nav li ul.sub-category li {
  margin-top: 0;
  color: #000;
  font-size: clamp(16px, 0.9vw, 22px);
  line-height: 2.5em;
  border-bottom: 1px solid #000;
  background-image: linear-gradient(180deg, rgba(217, 217, 217, .2), rgba(254, 254, 254, .2));
}

nav#side-nav li ul.sub-category li.selected {
  color: #9b706d;
}

ul#gallery-list {
  width: 54.27vw;
}

ul#gallery-list li {
  width: 210px;
}

ul#gallery-list li img {
  width: 100%;
}

ul#gallery-list li.category_all.category_works.hidden,
ul#gallery-list li.category_all.category_school.hidden,
ul#gallery-list li.category_all.category_etc.hidden {
  display: none;
}

/* 調整用 */
@media screen and (max-width: 1240px) {
}
@media screen and (max-width: 900px) {
}

/* SP */

@media screen and (max-width: 750px) {
  main section {
    width: 100%;
    padding-left: 9rem;
  }
  nav#side-nav {
    width: 9rem;
    display: flex;
    align-items: center;
    position: fixed;
    height: 100vh;
    top: 0;
    left: 0;
    z-index: 298;
  }

  nav#side-nav ul {
    width: 100%;
  }

  nav#side-nav li {
    font-size: 1em;
    width: 100%;
  }
  nav#side-nav li ul.sub-category li {
    font-size: 1rem;
  }

  ul#gallery-list {
    width: calc(100vw - 9rem);
  }
}
