html {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  color: #333;
  font-family: "Noto Serif JP", serif;
  font-size: 14px;
  font-weight: 500;
}

body {
  margin: 0;
  cursor: url(cursor.png);
  background-color: #eee;
  -webkit-text-size-adjust: 100%;
}

h1 {
  font-size: 1.9em;
  font-weight: 300;
  letter-spacing: 0.1em;
}

h2 {
  font-size: 1.6em;
  font-weight: 400;
  letter-spacing: 0.1em;
}

h3 {
  font-size: 1.4em;
  font-weight: 700;
  letter-spacing: 0.15em;
}

h4 {
  font-size: 1.1em;
  font-weight: 700;
  letter-spacing: 0.15em;
}

a {
  color: #4c47b2;
  background-color: none;
  text-decoration: none;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
  z-index: 4;
}

a:hover {
  text-decoration: underline;
}

a.btn {
  display: inline-block;
  position: relative;
  margin: 0.5rem 0.5rem 0.5rem 0;
  padding: 0.9rem 1.5rem 1.1rem 1.5rem;
  color: #fff;
  font-weight: 400;
  background-color: #4641a3;
  font-size: 1em;
  line-height: 1.5em;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
  text-align: center;
  text-decoration: none;
  letter-spacing: 0.1em;
  border-style: solid;
  border-color: #4c47b2;
  border-width: 1px;
}

a.btn:hover {
  color: #4c47b2;
  background: #fff;
}

a.btn.small {
  font-size: 0.8rem;
  margin: 0 0.6rem 0.6rem 0;
  padding: 0.15rem 0.8rem 0.25rem 0.8rem;
  text-align: left;
}

nav {
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 99;
  padding: 0;
  background-color: rgba(220, 220, 220, 0.9);
}

nav a {
  display: block;
  position: relative;
  padding-top: 0.9rem;
  padding-bottom: 1.1rem;
  color: #444;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1em;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
  text-align: center;
  text-decoration: none;
  letter-spacing: 0.1em;
  border-style: none;
  white-space: nowrap;
}

nav a:hover {
  color: #fff;
  text-decoration: none;
}

nav a.current {
  color: #aaa;
}

nav a.home {
  font-size: 0.6rem;
  line-height: 1em;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}

nav a.home:hover {
  color: #fff;
}

nav input[type="checkbox"] {
  display: none;
  cursor: pointer;
  -webkit-touch-callout: none;
}

nav .toggle {
  --width: 40px;
  --height: calc(var(--width) / 2);
  --border-radius: calc(var(--height) / 2);

  display: inline-block;
  cursor: pointer;
}

@media screen and (max-width: 767px) {
  nav {
    flex-flow: column nowrap;
  }

  nav input:checked~.hamburger {
    display: none;
  }

  nav label {
    display: block;
    position: absolute;
    width: 6em;
    top: 0;
    right: 0;
    z-index: 99999;
    padding-top: 0.9rem;
    padding-bottom: 1.1rem;
    line-height: 1em;
    color: #555;
    font-weight: 400;
    font-size: 1rem;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
    text-align: center;
    text-decoration: none;
    letter-spacing: 0.1em;
    border-style: none;
    white-space: nowrap;
  }

  nav a {
    flex-grow: 1;
    padding-top: 1.5em;
    padding-bottom: 1.5em;
  }
}

@media screen and (min-width: 768px) {
  nav {
    flex-flow: row nowrap;
  }

  nav label {
    display: none;
  }

  nav a {
    flex-grow: 3;
  }
}

article {
  display: block;
  position: static;
  width: 84%;
  max-width: 767px;
  min-height: 768px;
  z-index: 0;
  margin: 4rem auto 4rem auto;
  padding: 0;
}

article h1 {
  margin: 0;
  padding: 1.2em 0 1em 0;
}

article h2 {
  margin: 0;
  padding: 1.3em 0 1em 0;
}

article h3 {
  margin: 0;
  padding: 1.4em 0 1.1em 0;
}

article h4 {
  margin: 0;
  padding: 1.5em 0 1.2em 0;
}

article p {
  margin: 0;
  padding: 0 0 1.6em 0;
  line-height: 1.8em;
}

article ul {
  margin: 0;
  padding: 0 0 1.6em 1.6em;
  line-height: 1.8em;
}

article p.text {
  padding: 1.5em 0 1.5em 0;
  font-size: 1.1em;
  line-height: 1.9em;
}

article p.annotaion {
  font-size: 0.9em;
  font-weight: 900;
}

article p.signature {
  text-align: right;
  font-size: 1.2em;
}

article ol {
  margin: 0;
  padding: 0 0 1.6em 0;
  line-height: 1.8em;
  padding-inline-start: 1.4em;
}

article a {
  min-width: 14em;
}

article p.signature {
  padding-top: 1em;
  text-align: right;
  font-size: 1.2em;
}

article img {
  width: 100%;
}

article video {
  width: 100%;
}

article section.app {
  display: block;
  position: static;
  margin: 0 0 2em 0;
  padding: 2em;
  min-height: 9em;
  background-color: rgba(220, 220, 220, 0.5);
}

picture {
  position: relative;
}

article section.app h4 {
  margin: 0;
  padding: 0 0 0.2em 0;
}

article section.app span {
  font-size: 0.8em;
}

article section.app img {
  width: 9em;
  height: 9em;
  margin-bottom: 0.7em;
}

article section.app a {
  margin: 0.7em 0 0 0;
}

@media screen and (min-width: 600px) {
  article section.app img {
    float: left;
    margin-right: 1.5em;
  }
}

video.bg {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: 10%;
}

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

footer {
  display: block;
  color: #aaa;
  font-size: 0.9em;
  padding: 2rem 0 2rem 0;
  border-top: solid;
  border-color: #ddd;
  border-width: 1px;
}

footer p {
  width: 84%;
  max-width: 767px;
  margin: 1rem auto 1rem auto;
}

#loading {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  z-index: 99999;
  text-align: center;
}

#loading p {
  display: block;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  color: #888;
  width: 15em;
  height: 1.5em;
}

#popup {
  display: none;
}

#breakmenu {
  display: none;
}

#popup-video {
  display: block;
  width: 100%;
  object-fit: contain;
  display: none;
  text-shadow: none;
  pointer-events: auto;
  outline: none;
}

.tourhead {
  display: block;
  position: fixed;
  width: 80%;
  top: 0;
  z-index: 99997;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  pointer-events: none;
  padding: 3.15em 10% 0 10%;
  color: #fff;
}

.tourhead.dark {
  color: #111;
  text-shadow: 0px 0px 1px rgba(255, 255, 255, 0.5);
}

.tourhead a {
  display: inline-block;
  -webkit-user-select: auto;
  -moz-user-select: auto;
  -ms-user-select: auto;
  user-select: auto;
  pointer-events: auto;
}

.tourhead h1 {
  opacity: 0.9;
  margin: 0 0 0.5em 0;
  text-shadow: 0px 0px 1px rgba(0, 0, 0, 0.5);
}

.tourhead h1 a {
  color: inherit;
  letter-spacing: 0.1em;
  text-decoration: inherit;
}

@media screen and (max-width: 767px) {
  .tourhead h1 {
    font-size: 1.4em;
  }
}

.tourhead p {
  width: 100%;
  max-width: 767px;
  max-height: 15vh;
  overflow: scroll;
  perspective-origin: bottom;
  transform: perspective(1000px) rotateY(30deg) rotateX(0deg) rotateZ(0deg) translate3d(-15px, 15px, 30px);
  background-color: rgba(0, 0, 0, 0.4);
  margin-left: -1em;
  padding: 1em;
  font-size: 1em;
  line-height: 1.66em;
  -webkit-user-select: auto;
  -moz-user-select: auto;
  -ms-user-select: auto;
  user-select: auto;
  pointer-events: auto;
}

.tourhead.dark p {
  background-color: rgba(255, 255, 255, 0.5);
}

.doormenu {
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  justify-content: center;
  position: fixed;
  width: 100%;
  height: 17vh;
  bottom: 8vh;
  z-index: 99998;
  text-align: center;
  pointer-events: none;
}

.doormenu a {
  font-size: 1rem;
  padding: 1rem 3rem;
  margin: 0.5rem;
  white-space: nowrap;
  pointer-events: auto;
}

main {
  display: block;
  position: fixed;
  top: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}

main img {
  display: block;
  position: fixed;
  top: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}