@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans&display=swap");

@font-face {
  font-family: localArial;
  src: local("Arial");
  unicode-range: U+0030-0039;
}

html {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  font-feature-settings: "palt";
}

body {
  margin: 0;
  color: black;
  font-family: localArial, "IBM Plex Sans", "游ゴシック体 Pr6N D", "Yu Gothic Pr6N D", sans-serif;
  background-color: #33496d;
}

nav label div {
  background-color: blue;
}

.menu-container>a:hover {
  color: blue;
}

nav input:checked~label div {
  background-color: rgba(220, 220, 220, 0.7);
}

#title {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  margin: 22px 0 0 24px;
  padding: 0;
  z-index: 1;
  user-select: none;
  -webkit-user-select: none;
}

@media screen and (max-width:767px) {
  #title {
    margin: 14px 0 0 16px;
  }
}

#title h1 {
  color: rgba(220, 220, 220, 0.7);
  font-size: 18px;
  line-height: 18px;
  margin: 0;
  padding: 0;
}

#title span[lang="en"] {
  font-family: localArial, "IBM Plex Sans";
}

#title span[lang="ja"] {
  font-family: "游ゴシック体 Pr6N B", "Yu Gothic Pr6N B";
}

#title div {
  font-size: 12px;
}

#controlPanel {
  display: block;
  position: fixed;
  bottom: 0;
  right: 0;
  width: calc(360px + 16px + 16px);
  z-index: 10;
  user-select: none;
  -webkit-user-select: none;
}

#controlPanel a:hover {
  background-color: white;
}

#categoryList {
  display: block;
  position: relative;
  margin: 0 0 8px 0;
  padding: 0;
  overflow-x: scroll;
  -ms-overflow-style: none;
  scrollbar-width: none;
  white-space: nowrap;
  mask-image: linear-gradient(90deg,
      transparent,
      #000 16px,
      #000 calc(100% - 16px),
      transparent);
  -webkit-mask-image: linear-gradient(90deg,
      transparent,
      #000 16px,
      #000 calc(100% - 16px),
      transparent);
}

#categoryList::-webkit-scrollbar {
  display: none;
}

#categoryList a {
  display: inline-block;
  margin: 0 4px 0 0;
  font-size: 11px;
  line-height: 30px;
  width: auto;
  padding: 0 11px;
  border-radius: 16px;
  color: rgba(40, 40, 40, 0.8);
  background-color: rgba(220, 220, 220, 0.7);
  border-style: none;
  cursor: pointer;
  transition: background-color 300ms;
}

#categoryList a:hover {
  background-color: rgba(220, 220, 220, 0.9);
}

#categoryList a:first-of-type {
  margin-left: 16px;
}

#categoryList a:last-of-type {
  margin-right: 16px;
}

#categoryList a.active {
  color: rgb(40, 40, 40, 1);
  background-color: rgba(240, 240, 240, 1);
}

#cardList {
  display: block;
  position: relative;
  width: calc(100% - 32px);
  height: 316px;
  margin: 0 4cqmax 0 16px;
  padding: 0 12px 0 0;
  overflow: scroll;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

@supports not (-webkit-touch-callout: none) {

  /* CSS for other than iOS devices */
  #cardList::-webkit-scrollbar {
    display: none;
  }
}

.card {
  display: block;
  position: sticky;
  top: 0;
  width: 100%;
  height: 184px;
  padding: 0 12px;
  box-sizing: border-box;
  pointer-events: all;
  margin: 16px 0;
  color: rgb(40, 40, 40);
  background-color: rgb(220, 220, 220);
  border-radius: 16px;
  cursor: pointer;
  overflow: hidden;
  opacity: 1;
  transform: scale(1);
  transition: background-color 600ms, color 300ms;
  user-select: auto;
  -webkit-user-select: auto;
}

.card.hide {
  opacity: 0;
}

.card img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  object-fit: cover;
}

.card.light:after {
  display: block;
  position: absolute;
  content: "";
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: black;
  opacity: 0.8;
  z-index: -1;
  transition: opacity 300ms;
}

.card.light.active:after {
  opacity: 0.4;
}

.card.light {
  color: rgb(200, 200, 200);
  background-color: black;
}

.card.active {
  background-color: white;
}

.card.light.active {
  color: rgb(240, 240, 240);
  background-color: black;
}

.card h3 {
  margin: 0 0 6px 0;
  font-size: 18px;
  line-height: 21px;
  font-family: localArial, "IBM Plex Sans", "游ゴシック体 Pr6N B", "Yu Gothic Pr6N B";
}

.card.light h3 {
  text-shadow: rgb(60, 60, 60) 0 0 5px;
}

.card h4 {
  margin: 0 0 6px 0;
  font-size: 14px;
}

.card.light h4 {
  text-shadow: rgb(60, 60, 60) 0 0 5px;
}

.card>div {
  margin: 6px 0;
  font-size: 11px;
}

.card div.exhibition {
  position: absolute;
  bottom: 1em;
  left: 1em;
  margin-bottom: 0;
  max-width: calc(100% - 12em);
  min-height: 30px;
  color: rgba(40, 40, 40, 0.9);
}

.card .status {
  margin: 12px 0;
  height: 11px;
  line-height: 11px;
  position: relative;
  color: rgba(40, 40, 40, 0.9);
}

.card.light .status {
  color: rgba(200, 200, 200, 0.9);
}

.card.light .exhibition {
  color: rgba(200, 200, 200, 0.9);
}

.card .status .category {
  position: absolute;
  top: 0;
  left: 0;
}

.card .status .type {
  position: absolute;
  top: 0;
  right: 0;
}

.card a {
  display: block;
  position: absolute;
  bottom: 1em;
  right: 1em;
  color: white;
  text-shadow: none;
  font-size: 12px;
  line-height: 30px;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  width: auto;
  min-width: 8em;
  box-sizing: border-box;
  padding-left: 1em;
  padding-right: 1em;
  border-radius: 6px;
  background-color: blue;
  transition: 300ms;
  border: solid 1px blue;
}

.card a:hover {
  color: blue;
  background-color: white;
}

.card.light a {
  border: none;
}

#cardList footer {
  position: sticky;
  top: 0;
  padding: 0 0 16px 0;
  text-align: left;
  font-size: 13px;
  color: rgba(220, 220, 220, 0.7);
}

@media screen and (max-width: 767px) {
  #controlPanel {
    width: 100%;
  }

  #cardList {
    height: 256px;
  }
}

#label {
  display: block;
  position: fixed;
  z-index: 9;
  pointer-events: none;
  min-width: 50vw;
}

#label div {
  display: block;
  position: absolute;
  background-color: rgba(100, 100, 100, 0.2);
  color: white;
  transform: translate(-50%, 12px);
  padding: 2px 4px;
  border-radius: 4px;
  font-size: 11px;
  line-height: 11px;
  text-align: center;
  user-select: none;
  -webkit-user-select: none;
}

#cursor {
  display: block;
  position: fixed;
  z-index: 9;
  transform-origin: 50% 50%;
  transform: scale(1);
  animation: cursor 1s infinite alternate;
  pointer-events: none;
}

@keyframes cursor {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.2);
  }
}

#cursor div {
  display: block;
  position: absolute;
  width: 100px;
  height: 100px;
  max-width: 10%;
  max-height: 10%;
}

#cursor div:nth-last-of-type(1) {
  top: 0;
  left: 0;
  border-top: 1px solid white;
  border-left: 1px solid white;
}

#cursor div:nth-last-of-type(2) {
  top: 0;
  right: 0;
  border-top: 1px solid white;
  border-right: 1px solid white;
}

#cursor div:nth-last-of-type(3) {
  bottom: 0;
  left: 0;
  border-bottom: 1px solid white;
  border-left: 1px solid white;
}

#cursor div:nth-last-of-type(4) {
  bottom: 0;
  right: 0;
  border-bottom: 1px solid white;
  border-right: 1px solid white;
}

.a-enter-vr {
  display: none;
}