body {
  background-color: #000;
}

#main_layout {
  font-family: monaco, Consolas, Lucida Console, monospace;
  color: #36454f;
}

#menu {
  position: relative;
  top: 10vh;
  left: 10vw;
  font-size: 2.5em;
}

li {
  list-style: none;
}

.sound_type {
  font-size: 1.5em;
  cursor: pointer;
}

#sound_player {
  position: relative;
  width: 100px;
  margin: 0 auto;
  top: 69vh;
}

/* 雨の時の背景 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

canvas {
  background-color: #000;
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.riverDiv-effect {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.riverDiv {
  background: url("https://imgbb.com/0ynp9N4") norepeat center;
  background-size: cover;
  position: absolute;
  top: -1em;
  left: -1em;
  width: 105%;
  height: 105%;
  filter: url("#turbulence");
}

.disableDiv {
  display: none;
  pointer-events: none;
}

/* 川の時の背景 */
.riverDiv {
  --caustics-speed: 20.1s;
  --caustics-blur: 3px;
  --caustics-size: 800px;
  --caustics-border: 5px;
  color-scheme: light dark;
  font-size: calc(1rem + 0.25vw);
  background-color: aqua;

  width: 100%;
  height: 100%;

  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;

  overflow: hidden;
}

.riverDiv > .content {
  display: flex;
  flex-flow: column nowrap;
  justify-content: center;
  align-items: center;

  position: absolute;
  color: cyan;
  background-color: black;
  width: 100%;
  height: 100%;

  clip-path: margin-box inset(var(--caustics-border));
  padding: 10px;
  text-align: center;
}

.riverDiv .caustics {
  background-image: url("river.png");
  background-repeat: round;
  background-size: var(--caustics-size);
  filter: blur(var(--caustics-blur));
  mix-blend-mode: darken;
  position: absolute;
  width: 200%;
  height: 200%;
}

.riverDiv .caustics:nth-child(odd) {
  animation: offsetX calc(var(--caustics-speed) + 0.1s) infinite linear;
}

.riverDiv .caustics:nth-child(even) {
  animation: offsetY var(--caustics-speed) infinite linear;
}

@keyframes offsetX {
  from {
    left: -100%;
  }

  to {
    left: 0%;
  }
}

@keyframes offsetY {
  from {
    top: -100%;
  }

  to {
    top: 0%;
  }
}

@import url(//fonts.googleapis.com/css?family=Lato:300:400);

/* 波の時の背景 */
#waveDiv {
  z-index: 0;
}

#waveDiv .header {
  position: absolute;
  width: 100%;
  height: 100%;
  text-align: center;
  /* background: linear-gradient(
    60deg,
    rgba(102, 153, 255, 1.0) 0%,  
    rgba(255, 255, 255, 1.0) 100% 
  ); */
  background: linear-gradient(
    60deg,
    rgba(1, 45, 129) 0%,  
    rgba(23, 25, 27) 100% 
  );
  color: white;
}

#waveDiv .inner-header {
  height: 80%;
  width: 100%;
  margin: 0;
  padding: 0;
}

#waveDiv .flex {
  /*Flexbox for containers*/
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

#waveDiv .waves {
  position: relative;
  width: 100%;
  height: 20vh;
  margin-bottom: -7px; /*Fix for safari gap*/
}

#waveDiv .content {
  position: relative;
  height: 20vh;
  text-align: center;
  background-color: white;
}

/* Animation */
#waveDiv .parallax > use {
  animation: move-forever 25s cubic-bezier(0.55, 0.5, 0.45, 0.5) infinite;
}
#waveDiv .parallax > use:nth-child(1) {
  animation-delay: -2s;
  animation-duration: 7s;
}
#waveDiv .parallax > use:nth-child(2) {
  animation-delay: -3s;
  animation-duration: 10s;
}
#waveDiv .parallax > use:nth-child(3) {
  animation-delay: -4s;
  animation-duration: 13s;
}
#waveDiv .parallax > use:nth-child(4) {
  animation-delay: -5s;
  animation-duration: 20s;
}
@keyframes move-forever {
  0% {
    transform: translate3d(-90px, 0, 0);
  }
  100% {
    transform: translate3d(85px, 0, 0);
  }
}
/*Shrinking for mobile*/
@media (max-width: 768px) {
  .waves {
    height: 40px;
    min-height: 40px;
  }
  .content {
    height: 30vh;
  }
  h1 {
    font-size: 24px;
  }
}

.emphasizeColor {
  color: #668294;
}

.emphasize {/*基本設定*/
  font-size: 1.7em;
  font-weight: bolder;
  position: relative;
  margin: 0 auto;
}
 
@keyframes noise-anim {/*細かい動きを設定してノイズが走っているかのように動かす*/
  0% {
    clip: rect(77px, 9999px, 6px, 0);
  }
  5% {
    clip: rect(65px, 9999px, 70px, 0);
  }
  10% {
    clip: rect(82px, 9999px, 82px, 0);
  }
  15% {
    clip: rect(32px, 9999px, 35px, 0);
  }
  20% {
    clip: rect(31px, 9999px, 49px, 0);
  }
  25% {
    clip: rect(18px, 9999px, 46px, 0);
  }
  30% {
    clip: rect(94px, 9999px, 64px, 0);
  }
  35% {
    clip: rect(69px, 9999px, 31px, 0);
  }
  40% {
    clip: rect(6px, 9999px, 72px, 0);
  }
  45% {
    clip: rect(25px, 9999px, 35px, 0);
  }
  50% {
    clip: rect(82px, 9999px, 26px, 0);
  }
  55% {
    clip: rect(7px, 9999px, 92px, 0);
  }
  60% {
    clip: rect(54px, 9999px, 30px, 0);
  }
  65% {
    clip: rect(86px, 9999px, 90px, 0);
  }
  70% {
    clip: rect(38px, 9999px, 65px, 0);
  }
  75% {
    clip: rect(41px, 9999px, 66px, 0);
  }
  80% {
    clip: rect(31px, 9999px, 37px, 0);
  }
  85% {
    clip: rect(8px, 9999px, 12px, 0);
  }
  90% {
    clip: rect(50px, 9999px, 69px, 0);
  }
  95% {
    clip: rect(7px, 9999px, 42px, 0);
  }
  100% {
    clip: rect(14px, 9999px, 57px, 0);
  }
}
.emphasize:after {/*疑似要素を加えてカスタムデータ属性の値を表示、重ねる*/
  content: attr(data-text);
  position: absolute;
  left: 2px;
  text-shadow: -1px 0 red;
  /* left: 4px;
  text-shadow: -2px 0 orangered; */
  top: 0;
  /* color: white;
  background: black; */
  overflow: hidden;
  clip: rect(0, 900px, 0, 0);
  animation: noise-anim 2s infinite linear alternate-reverse;
}
 
@keyframes noise-anim-2 {/*ノイズ用アニメーションその2*/
  0% {
    clip: rect(18px, 9999px, 13px, 0);
  }
  5% {
    clip: rect(74px, 9999px, 51px, 0);
  }
  10% {
    clip: rect(33px, 9999px, 65px, 0);
  }
  15% {
    clip: rect(64px, 9999px, 66px, 0);
  }
  20% {
    clip: rect(75px, 9999px, 6px, 0);
  }
  25% {
    clip: rect(40px, 9999px, 49px, 0);
  }
  30% {
    clip: rect(71px, 9999px, 1px, 0);
  }
  35% {
    clip: rect(42px, 9999px, 73px, 0);
  }
  40% {
    clip: rect(92px, 9999px, 57px, 0);
  }
  45% {
    clip: rect(4px, 9999px, 33px, 0);
  }
  50% {
    clip: rect(4px, 9999px, 34px, 0);
  }
  55% {
    clip: rect(49px, 9999px, 25px, 0);
  }
  60% {
    clip: rect(24px, 9999px, 44px, 0);
  }
  65% {
    clip: rect(31px, 9999px, 99px, 0);
  }
  70% {
    clip: rect(54px, 9999px, 83px, 0);
  }
  75% {
    clip: rect(57px, 9999px, 97px, 0);
  }
  80% {
    clip: rect(3px, 9999px, 15px, 0);
  }
  85% {
    clip: rect(84px, 9999px, 34px, 0);
  }
  90% {
    clip: rect(100px, 9999px, 88px, 0);
  }
  95% {
    clip: rect(91px, 9999px, 59px, 0);
  }
  100% {
    clip: rect(10px, 9999px, 87px, 0);
  }
}
.emphasize:before {
  content: attr(data-text);
  position: absolute;
  left: -2px;
  text-shadow: 1px 0 blue;
  /* left: -4px;
  text-shadow: 2px 0 blue; */
  top: 0;
  /* color: white;
  background: black; */
  overflow: hidden;
  clip: rect(0, 900px, 0, 0);
  animation: noise-anim-2 3s infinite linear alternate-reverse;
}