@import url("../../../assets/stylesheets/loader.css");
@import url("../../../assets/stylesheets/navigation.css");
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;500;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Sawarabi+Gothic&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);
}

body {
  margin: 0;

  color: white;
  font-family: localArial, "IBM Plex Sans", "游ゴシック体", YuGothic, "游ゴシック Medium", "Yu Gothic Medium", "游ゴシック", "Yu Gothic", "Sawarabi Gothic", sans-serif;
  font-weight: 400;
}

@supports (-webkit-touch-callout: none) {
  /* iOS devices */

  body {
    perspective: 200px;
  }
}

h1 {
  font-size: 42px;
  line-height: 46px;
  font-weight: 600;
  font-family: localArial, "Noto Sans JP", sans-serif;
  letter-spacing: -2px;
  word-spacing: -4px;
}

@media screen and (max-width: 767px) {
  h1 {
    font-size: 27px;
    line-height: 32px;
  }
}

h2 {
  font-size: 27px;
  line-height: 32px;
  font-weight: 500;
  font-family: "IBM Plex Sans", "Noto Sans JP", sans-serif;
}

@media screen and (max-width: 767px) {
  h2 {
    font-size: 24px;
    line-height: 30px;
  }
}

h3 {
  font-size: 21px;
  line-height: 24px;
  font-weight: 500;
  font-family: "IBM Plex Sans", "Noto Sans JP", sans-serif;
}

h4 {
  display: inline-block;
  vertical-align: middle;
  margin: 1em 0 0 0;
}

h4 span {
  font-size: 0.66em;
  padding-left: 1.5em;
}

a {
  color: #00bbff;
  word-break: break-all;
}

a:hover {
  color: aliceblue;
}

a.btn {
  display: inline-block;
  position: relative;
  margin: 0.5rem 0.5rem 0.5rem 0;

  height: 3rem;
  padding: 0 1.5rem 0 1.5rem;

  font-weight: 400;
  font-size: 1em;
  line-height: 1.5em;
  cursor: pointer;

  user-select: none;

  transition: all 0.3s;
  text-align: center;
  text-decoration: none;
  letter-spacing: 0.1em;
  border-style: solid;
  border-width: 1px;

  color: #0092c5;
  background-color: white;
  border-color: white;
  border-radius: 2px;
}

a.btn:hover {
  color: white;
  background-color: #0092c5;
  border-color: #0092c5;
}

a.btn::before {
  display: inline-block;
  content: "";
  width: 0;
  height: 100%;
  vertical-align: middle;
}

nav label {
  transform: translate3d(0, 0, 0);
}

nav label div {
  background-color: black;
}

nav input:checked~label div {
  background-color: white;
}

.menu {
  transform: translate3d(0, 0, 0);
}

#title {
  position: relative;
  transform: translate3d(0, calc(-50vh - 4.5em), -150px) scale(1.75);
  margin: 0;
  padding: 4em 20% 4em 5%;
  z-index: 2;
  opacity: 0.8;
}

#title h1 {
  margin: 0;
}

#title img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left top;
  max-height: 40vh;
  pointer-events: none;
}

@media screen and (max-width: 767px) {
  #title {
    padding: 2em 20% 4em 5%;
    transform: translate3d(0, calc(-50vh), -150px) scale(1.75);
  }

  #title img {
    object-position: center top;
    max-height: 50vh;
    max-width: 66%;
  }
}

@keyframes hole {
  0% {
    -webkit-mask-size: 90% 90%;
    mask-size: 90% 90%;
  }

  33% {
    -webkit-mask-size: 75% 90%;
    mask-size: 75% 90%;
  }

  66% {
    -webkit-mask-size: 95% 75%;
    mask-size: 95% 75%;
  }

  100% {
    -webkit-mask-size: 90% 90%;
    mask-size: 90% 90%;
  }
}

@keyframes hover {
  0% {
    -webkit-mask-size: 90% 90%;
    mask-size: 90% 90%;
  }

  100% {
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
  }
}

.enter {
  position: relative;
  width: 78%;
  text-align: center;
  transform: translate3d(0, 30px, 20px) rotate3d(-1, -1, -1, 2deg) scale(0.8);
}

.hole {
  display: block;
  position: relative;
  width: 30%;
  min-width: 256px;
  margin: 0 auto 0 auto;
  overflow: hidden;
  will-change: mask-size;
  will-change: -webkit-mask-size;

  -webkit-mask-image: url("/assets/images/ellipse.svg");
  -webkit-mask-size: cover;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;

  mask-image: url("/assets/images/ellipse.svg");
  mask-size: 100% 100%;
  mask-position: center;
  mask-repeat: no-repeat;

  animation: 10s infinite hole;

  background-image: url("../images/entrance-ushio-00_3072w.jpg");
  background-color: aliceblue;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: left top;

  z-index: 80;
}

.hole:hover {
  animation: 1s 1 hover forwards;
}

.hole::before {
  content: "";
  display: block;
  padding-top: 100%;
}

p img {
  width: 100%;
}

main {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  perspective: 200px;
  perspective-origin: center bottom;
}

main::-webkit-scrollbar {
  display: none;
}

.stage {
  position: relative;
  height: auto;
  min-height: 100%;
  transform-style: preserve-3d;
}

article {
  position: relative;
  width: 75%;
  max-width: 768px;
  margin: 3em 20% 3em 5%;
  padding: 0;
  transform: translateZ(0px);
  font-size: 14px;
  line-height: 1.66em;
}

@media screen and (min-width: 1280px) {
  article {
    margin: 3em auto 3em auto;
  }
}

@media screen and (max-width: 767px) {
  article {
    width: calc(90% - 32px);
    margin: 3em calc(10% - 16px) 3em 16px;
  }
}

article p {
  padding: 0;
}

p.kantougen {
  font-size: 16px;
  line-height: 27px;
}

p.right {
  margin: 2em 0 3em 0;
  text-align: right;
}

p.caption {
  font-size: 0.9em;
  line-height: 1.33em;
}

iframe {
  width: 100%;
  height: 350px;
  border-style: none;
}

footer {
  display: block;
  position: relative;
  color: white;
  padding: 3em 20% 6em 5%;
  font-size: 11px;
  line-height: 13px;
  font-weight: 400;
  z-index: 85;
  transform: translate3d(0px, 0px, 0px);
}

@media screen and (min-width: 1280px) {
  footer {
    padding: 3em auto 3em auto;
  }
}

@media screen and (max-width: 767px) {
  footer {
    width: calc(90% - 32px);
    padding: 3em calc(10% - 16px) 3em 16px;
  }
}

@media screen and (max-width: 767px) {
  footer {
    padding: 3em calc(10% - 16px) 3em 16px;
  }
}

footer::before {
  display: inline-block;
  content: "";
  width: 0;
  height: 100%;
  vertical-align: text-bottom;
}

.bg {
  position: absolute;
  bottom: 0;
  left: -9px;
  height: 100%;
  width: calc(100% + 18px);
  transform-origin: bottom center;
  transform: translate3d(0, 0, -200px) scale(2);
}

.bg img {
  display: block;
  object-fit: cover;
  height: 100%;
  width: 100%;
  z-index: -1;
}

#random-walker {
  position: absolute;
  bottom: 0;
  left: -9px;
  height: 100%;
  width: calc(100% + 18px);
  transform-origin: bottom center;
  transform: translate3d(0, 0, -100px) scale(1.5);
  z-index: 1;
  opacity: 0.5;
}

#ovarlay-title img {
  display: block;
  position: fixed;
  bottom: 1em;
  right: 1em;
  width: 400px;
  max-width: 50%;
  object-fit: cover;
  pointer-events: none;
  mix-blend-mode: overlay;
  opacity: 0.3;
  z-index: 0;
}