*, *:before, *:after {
  font-family: "Times New Roman", "YuMincho", "Hiragino Mincho ProN", "Yu Mincho", "MS PMincho", serif;
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}
body {
  font-family: Arial, "Hiragino Kaku Gothic Pro W3", Meiryo, sans-serif;
  background-color: #333;
  color: #fff;
  text-align: center;
}
body a, body a:visited {
  color: #ccc;
  text-decoration: none;
}
body a:hover {
  color: #aaa;
}

.title {
  display: block;
  margin-top: 30px
}
.title h1 {
	font-size: 50px;
}

.filter a {
  display: inline-block;
  padding: 10px;
  margin: 30px 5px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  cursor: pointer;
  transition: all .3s ease;
}
.filter a.current {
  /* font-weight:bold; */
  background-color: rgba(255, 255, 255, 0.52);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.6) inset;
}

/* clear fix */
.grid:after {
  content: '';
  display: block;
  clear: both;
}

/* ---- .grid-item ---- */

.grid-sizer,
.grid-item {
  width: 20%;
}
@media screen and (max-width: 480px) {
  .grid-sizer,
  .grid-item {
    width: 50%;
  }
}

.grid-item {
  float: left;
}

.grid-item img {
  display: block;
  max-width: 100%;
}

#mnsry_container {
  position: relative;
  opacity: 0;
}

@media screen and (min-width: 481px) {
  #mnsry_container:hover img, #mnsry_container:hover video {
    opacity: 0.6;
  }
}

#mnsry_container article {
  width: 20%;
  /* min-height: 200px; */
  overflow: hidden;
  cursor: pointer;
  opacity: 1;
  padding: 5px;
}
#mnsry_container article.wide {
  width:40%;
}
@media screen and (max-width: 480px) {
  #mnsry_container article, #mnsry_container article.wide {
      width: 50%;
  }
}
#mnsry_container article h1 {
  position: absolute;
  top: 46%;
  left: 0;
  width: 100%;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
  transition: all 1.2s;
  z-index: 1;
}
#mnsry_container article img, #mnsry_container article video {
  display: block;
  width: 100%;
  transition: all .8s;
}
@media screen and (min-width: 481px) {
  #mnsry_container article:hover h1 {
    transform: translate3d(0, 18px, 0) scale(1.2, 0.4);
    opacity: 0;
  }
  #mnsry_container article:hover img, #mnsry_container article:hover video {
    opacity: 1;
    transform: scale(1.04);
  }
}

#loading_msg {
  position: fixed;
  top: 48%;
  width: 100%;
  z-index: -1;
}
@media screen and (max-width: 480px) {
  #loading_msg {
    position: fixed;
    top: 70%;
    width: 100%;
    z-index: -1;
  }
}

/* モーダルのスタイル */
.modal {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.8); /* 背景色 */
  opacity: 0; /* 初期状態では透明 */
  visibility: hidden; /* 初期状態では不可視 */
  transition: opacity 0.5s, visibility 0.5s; /* アニメーション効果 */
}
/* モーダルの画像スタイル */
.modal-content {
  display: block;
  max-width: 80%;
  max-height: 95%;
}
#close {
  display: none;
}
@media screen and (max-width: 480px) {
  .modal-content {
    max-width: 90%;
  }
  #close {
    display: block;
    position: absolute;
    top: 40px;
    right: 40px;
    font-size: 96px;
    color: white;
    text-decoration: none;
    cursor: pointer;
    transform: translate(50%, -50%);
  }
}
