@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;
}

:root {
  --timetable-cell-height: 200px;
  /* --timetable-cell-height per 3600 seconds */
  --pixel-per-second: calc(var(--timetable-cell-height) / 3600);
  --z-time-separator: 999;
  --z-program: 800;
}

@media screen and (max-width: 767px) {
  :root {
    --timetable-cell-height: 110px;
    /* --timetable-cell-height per 3600 seconds */
    --pixel-per-second: calc(var(--timetable-cell-height) / 3600);
  }
}


body {
  margin: 0;
  overflow: hidden;
  color: white;
  background-color: black;
  font-family: localArial, "IBM Plex Sans", "MFW-YuGoPr6N-Demi", sans-serif;
  font-weight: 400;
}

nav label div {
  background-color: #444;
}

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

h1,
h2,
h3 {
  margin: 1.5em 0 1em 0;
  line-height: 1.2em;
}

h1 {
  font-size: 1.6em;
}

h2 {
  font-size: 1.4em;
}

h3 {
  font-size: 1.2em;
}


a {
  color: deepskyblue;
}

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: white;
  background-color: blue;
  border-color: blue;

  border-radius: 2px;
}

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

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

#video {
  width: 1px;
  height: 1px;
  position: fixed;
  bottom: 0;
  right: 0;
}

#sound {
  position: absolute;
  bottom: 1em;
  left: 1em;
  cursor: pointer;
  user-select: none;
  z-index: 10;
}

div:not(.mute) {
  color: white;
  opacity: 0.8;
}

div.mute {
  color: white;
  opacity: 0.5;
}

#loading {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  font-family: sans-serif;
  color: #888;
  background-color: black;
  z-index: 99999;
  transform: translate3d(0px, 0px, 502px);
  text-align: center;
}

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

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

input:checked~#information {
  width: 100vw;
  height: 100vw;
  overflow: hidden;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.4);
  transform: translate3d(47vw, 47vw, 1px) scale(0.1);
}

@media screen and (max-width: 767px) {
  input:checked~#information {
    transform: translate3d(42.5vw, 42.5vw, 1px) scale(0.2);
  }
}

input:checked~#information a {
  pointer-events: none;
}

#information {
  display: flex;
  position: absolute;
  bottom: 5vmin;
  right: 5vmin;
  width: calc(100% - (10vmin));
  height: calc(100% - (10vmin) - 1em);
  overflow-x: hidden;
  overflow-y: auto;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.8);
  -webkit-user-select: auto;
  -moz-user-select: auto;
  -ms-user-select: auto;
  user-select: auto;
  pointer-events: auto;
  border-radius: 16px;
  scrollbar-width: none;
  transition: transform 300ms, width 300ms, height 300ms, border-radius 150ms ease-out;
  transform: perspective(3000px) translateZ(20px) scale(0.9);
  z-index: 10;
}

#information div {
  opacity: unset;
}

#information label[for=drawer] {
  display: block;
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

#information label[for=drawer] div {
  width: 100%;
  height: 100%;
}

#information>section {
  position: absolute;
  top: 0;
  left: auto;
  right: auto;
  width: calc(100% - (10vmin));
  max-width: 768px;
  padding: 3em 1.5em;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  pointer-events: none;
  font-size: 1em;
  line-height: 1.6em;
  text-align: left;
}

#information a {
  pointer-events: auto;
}

#information>section>div#timetable {
  position: relative;
  z-index: 1000;
}

div#timetable input[type="radio"] {
  display: none;
}

label[for^="day"] {
  text-decoration: none;
  position: relative;
  padding: 0 .8em;
  margin: 0 0 0 0;
  border-radius: 1em;
  background-color: rgba(106, 106, 106, 0.533);
  cursor: pointer;
  pointer-events: all;
  flex-shrink: 0;
  flex-grow: 0;
}

body:has(input[type="radio"][name="display_timetable"]#day0:checked) div#timetable label[for="day0"],
body:has(input[type="radio"][name="display_timetable"]#day1:checked) div#timetable label[for="day1"],
body:has(input[type="radio"][name="display_timetable"]#day2:checked) div#timetable label[for="day2"],
body:has(input[type="radio"][name="display_timetable"]#day3:checked) div#timetable label[for="day3"],
body:has(input[type="radio"][name="display_timetable"]#day4:checked) div#timetable label[for="day4"],
body:has(input[type="radio"][name="display_timetable"]#day5:checked) div#timetable label[for="day5"],
body:has(input[type="radio"][name="display_timetable"]#day6:checked) div#timetable label[for="day6"] {
  background-color: #fff8;
}

div#timetable input[type="radio"][name="display_timetable"]+section.timetable {
  display: none;
}

div#timetable input[type="radio"][name="display_timetable"]:checked+section.timetable {
  display: block;
}

input#drawer~#information div#timetable div.timetables section.timetable {
  pointer-events: all;
}

input#drawer:checked~#information div#timetable div.timetables section.timetable {
  pointer-events: none;
}

div#timetable div.timetables section.timetable {
  margin: 0 auto;
  scrollbar-width: none;
  width: 100%;
  overflow-y: auto;
  height: calc(var(--timetable-cell-height) * 3.5);
  max-height: 30vh;
  pointer-events: all;
}

div#timetable div.timetables section.timetable:has(p.no_program) {
  height: auto;
}

input[type="checkbox"]:checked div#timetable div.timetables section.timetable {
  pointer-events: none;
}

div#timetable header>div.dates {
  display: flex;
  flex-wrap: nowrap;
  column-gap: 1.2em;
  row-gap: 0.4em;
  margin: 1em 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  pointer-events: all;
}


div#timetable section.timetable div.timetable_grid {
  position: relative;
  display: grid;
  grid-template-columns: [time] 5em [program] minmax(0, 1fr);
  grid-template-rows: [theater-name] 1em [time-00] calc(var(--pixel-per-second) * 3600) [time-01] calc(var(--pixel-per-second) * 3600) [time-02] calc(var(--pixel-per-second) * 3600) [time-03] calc(var(--pixel-per-second) * 3600) [time-04] calc(var(--pixel-per-second) * 3600) [time-05] calc(var(--pixel-per-second) * 3600) [time-06] calc(var(--pixel-per-second) * 3600) [time-07] calc(var(--pixel-per-second) * 3600) [time-08] calc(var(--pixel-per-second) * 3600) [time-09] calc(var(--pixel-per-second) * 3600) [time-10] calc(var(--pixel-per-second) * 3600) [time-11] calc(var(--pixel-per-second) * 3600) [time-12] calc(var(--pixel-per-second) * 3600) [time-13] calc(var(--pixel-per-second) * 3600) [time-14] calc(var(--pixel-per-second) * 3600) [time-15] calc(var(--pixel-per-second) * 3600) [time-16] calc(var(--pixel-per-second) * 3600) [time-17] calc(var(--pixel-per-second) * 3600) [time-18] calc(var(--pixel-per-second) * 3600) [time-19] calc(var(--pixel-per-second) * 3600) [time-20] calc(var(--pixel-per-second) * 3600) [time-21] calc(var(--pixel-per-second) * 3600) [time-22] calc(var(--pixel-per-second) * 3600) [time-23] calc(var(--pixel-per-second) * 3600) [time-24];
  overflow: scroll;
  position: relative;
}

@media screen and (max-width: 767px) {
  div#timetable section.timetable div.timetable_grid {
    grid-template-columns: [time] 3.5em [program] minmax(0, 1fr);
    grid-template-rows: [theater-name] 1em [time-00] calc(var(--pixel-per-second) * 3600) [time-01] calc(var(--pixel-per-second) * 3600) [time-02] calc(var(--pixel-per-second) * 3600) [time-03] calc(var(--pixel-per-second) * 3600) [time-04] calc(var(--pixel-per-second) * 3600) [time-05] calc(var(--pixel-per-second) * 3600) [time-06] calc(var(--pixel-per-second) * 3600) [time-07] calc(var(--pixel-per-second) * 3600) [time-08] calc(var(--pixel-per-second) * 3600) [time-09] calc(var(--pixel-per-second) * 3600) [time-10] calc(var(--pixel-per-second) * 3600) [time-11] calc(var(--pixel-per-second) * 3600) [time-12] calc(var(--pixel-per-second) * 3600) [time-13] calc(var(--pixel-per-second) * 3600) [time-14] calc(var(--pixel-per-second) * 3600) [time-15] calc(var(--pixel-per-second) * 3600) [time-16] calc(var(--pixel-per-second) * 3600) [time-17] calc(var(--pixel-per-second) * 3600) [time-18] calc(var(--pixel-per-second) * 3600) [time-19] calc(var(--pixel-per-second) * 3600) [time-20] calc(var(--pixel-per-second) * 3600) [time-21] calc(var(--pixel-per-second) * 3600) [time-22] calc(var(--pixel-per-second) * 3600) [time-23] calc(var(--pixel-per-second) * 3600) [time-24];
  }
}


div#timetable div.timetable_grid div.program {
  border-radius: .3em;
  padding: .3em .5em;
  margin: 0 0 0 0;
  width: 80%;
  position: relative;
  box-sizing: border-box;
  min-height: 5em;
  transition: height .2s ease;
  z-index: var(--z-program);
  background-color: rgba(106, 106, 106, 0.533);
  grid-column: program;
  justify-self: center;
}

@media screen and (max-width: 767px) {
  div#timetable div.timetable_grid div.program {
    width: 80%;
    min-height: 2.8em;
  }
}

div#timetable div.timetable_grid div.program.current {
  background-color: rgba(255, 255, 255, 0.533);
}


div#timetable div.timetable_grid div.program>span {
  display: block;
  line-height: 2em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

div#timetable div.timetable_grid div.program span span.start_time,
div#timetable div.timetable_grid div.program span span.minutes,
div#timetable div.timetable_grid div.program span span.seconds {
  display: inline;
}


div#timetable div.timetable_grid div.time {
  white-space: nowrap;
}

@media screen and (max-width: 767px) {
  div#timetable div.timetable_grid div.program>span {
    font-size: 0.8em;
    line-height: 1.4em;
  }

  div#timetable div.timetable_grid div.time {
    font-size: 0.7em;
  }
}

div#timetable div.timetable_grid div.time::after {
  display: inline-block;
  position: absolute;
  content: "";
  width: calc(100% - 5em);
  vertical-align: top;
  margin: 0 0 0 0.5em;
  border-bottom: 1px solid #d0d0d0;
  z-index: var(--z-time-separator);
}

div#timetable div.timetable_grid div.time>span {
  position: relative;
  top: -0.8em;
}

@media screen and (max-width: 767px) {
  div#timetable div.timetable_grid div.time>span {
    position: relative;
    top: -1.1em;
  }
}

select {
  font-size: 20px;
  pointer-events: all;
}

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

#puppetUI {
  position: absolute;
  top: 1em;
  left: 24px;
  z-index: 10;
  max-width: calc(100% - 56px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms;
}

#puppetUI.active {
  opacity: 1;
  pointer-events: all;
}

#puppetUI div {
  display: inline-block;
  width: auto;
  margin-right: 32px;
  cursor: pointer;
  user-select: none;
  border-radius: 4px;
  border: 2px solid rgba(255, 255, 255, 0);
}

#puppetUI div:hover {
  opacity: 1;
}

#puppetUI div img {
  display: block;
  width: 32px;
  height: 32px;
  margin: 0;
}

#puppetUI div.riding {
  border-color: white;
  opacity: 1;
}



#puppetUI.icc {
  top: 32px;
  left: 48px;
}

#puppetUI.icc div {
  margin-right: 48px;
}

#puppetUI.icc div img {
  width: 48px;
  height: 48px;
}