@charset "utf-8";

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-size: 16px;
  font-family: "hiragino-kaku-gothic-pron", sans-serif;
  font-weight: 400;
  font-style: normal;
  line-height: 190%;
  color: #333;
  background-color: #fefaf3;
  overflow-x: hidden;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

main {
  width: 100%;
  margin: 0 auto;
}

ul {
  list-style-type: none;
}

p {
  width: min(550px, 100%);
  margin: 1.8rem auto;
}

figure {
  width: min(550px, 100%);
  margin: 0 auto;
  padding: 0;
}

figcaption {
  font-size: 0.8rem;
  line-height: 120%;
  margin-top: 0.3rem;
  margin-left: 0.1rem;
}

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

#loading {
  transition: all 3s;
  background-color: #ddd;
  position: fixed;
  z-index: 9999;
  inset: 0;
  display: grid;
  place-items: center;
  overflow-x: hidden;
}

.spinner {
  width: 150px;
  height: 150px;
}

.loaded {
  opacity: 0;
  visibility: hidden;
}

h1,
h2,
h3,
h4 {
  width: min(550px, 100%);
  padding: 0;
  text-align: center;
}

.keep-all {
  word-break: keep-all;
}

video {
  width: 100%;
}

h1 {
  font-size: 2rem;
  line-height: 140%;
  margin: 5rem auto;
}

h3 {
  font-family: hiragino-mincho-pron, sans-serif;
  font-weight: 600;
  font-style: normal;
  font-size: 1.8rem;
  font-weight: 600;
  color: #364669;
  margin: 5rem auto -0.8rem;
  text-align: left;
}

.video-container {
  position: relative;
  height: 700vh;
  max-width: 100vw;
  width: 100%;
  overflow: clip;
}

#op_blur {
  position: absolute;
  filter: blur(50px);
  top: 0;
  left: 0;
  inset: 0;
  background: rgba(255, 255, 255, 0.5);
  z-index: 999;
}

.scrolly-video video {
  width: 100%;
  height: 100%;
}

.tagline {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 999;
}

.tagline img {
  width: min(200px, 30%);
}

.textBox {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: #333;
  font-size: 1rem;
  text-align: left;
  background-color: rgba(255, 255, 255);
  padding: 2%;
  border-radius: 3px;
  width: min(400px, 80%);
  pointer-events: none;
  box-shadow: 0px 5px 15px 0px rgba(0, 0, 0, 0.35);
}

.textBox:nth-of-type(1) {
  top: 20%;
}

.textBox:nth-of-type(2) {
  top: 50%;
}

.textBox:nth-of-type(3) {
  top: 80%;
}

.byLine {
  width: min(550px, 100%);
  margin: 5rem auto;
  border-bottom: 1px solid;
  padding-bottom: 2rem;
}

.byLine ul {
  width: 100%;
  list-style-type: none;
  display: inline-block;
  padding: 0;
  text-align: center;
  line-height: 140%;
  font-size: 14px;
}

.byLine ul li:nth-child(2) {
  margin-top: 0.5rem;
}

.byLine ul li span {
  font-size: 0.9em;
}

.byLine #map {
  position: relative;
  width: 7vw;
  height: 7vw;
  border-radius: 50%;
  background-image: url("../images/musashino.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin: 0 auto;
  border-radius: 50%;
  box-shadow: 6px 6px 10px 0px rgba(0, 0, 0, 0.4);
}

.byLine small {
  font-size: 8px;
  margin: 0.5rem auto 2rem;
  display: inline-block;
  text-align: center;
  width: 100%;
}

#mapLocator {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%);
  margin: 0;
  width: 10vw;
  height: 10vw;
  border-radius: 50%;
}

.resizedImage {
  width: 10%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin: 0 auto;
}

.resizedImage img {
  border-radius: 50%;
}

.wider_width {
  width: min(900px, 100%);
  margin: 0 auto;
}

.video_container {
  width: min(900px, 100%);
  margin: 0 auto;
  position: relative;
  display: block;
}

.video_container video {
  display: block;
  width: 100%;
  max-width: 900px;
}

.video-controls {
  position: absolute;
  bottom: 10%;
  left: 3%;
  display: flex;
  gap: 5px;
}

.control-btn {
  width: 60px;
  height: 60px;
  cursor: pointer;
  transition: transform 0.2s ease-in-out;
}

.control-btn:hover {
  transform: scale(1.1);
}

.flexbox {
  display: flex;
  justify-content: center;
  align-items: center;
  width: min(550px, 100%);
  margin: 2rem auto;
  flex-direction: column;
  gap: 0.5rem;
}

.flexbox img {
  width: 100%;
}

.flexbox_caption {
  width: min(550px, 100%);
  margin: -2rem auto 0;
  display: block;
  line-height: 1.4;
}

.flexbox_caption li {
  width: 100%;
  text-indent: -2em;
  margin-left: 0em;
  font-size: 0.8rem;
}

.interactive_division {
  position: relative;
  overflow: hidden;
  width: 100vw;
  height: 100vh;
}

.scrolling-image {
  height: 100vh;
  width: 100vw;
}

.scrolling-image img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: bottom;
  flex-shrink: 0;
}

.scrolling-image-mb {
  display: flex;
  width: 230%;
  height: 100vh;
  object-fit: cover;
  overflow-x: scroll;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.scrolling-image-mb img {
  object-fit: cover;
}

.scrolling-image-mb::-webkit-scrollbar {
  display: none;
}

.quote {
  width: min(550px, 100%);
  margin: 5rem auto;
  padding: 2%;
  border-top: 2px dashed #364669;
  border-bottom: 2px dashed #364669;
  position: relative;
}

.quote p {
  font-family: hiragino-mincho-pron, sans-serif;
  font-weight: 600;
  font-size: 2rem;
  line-height: 150%;
  margin: 0;
  padding: 0 8%;
  z-index: 9999;
  position: relative;
  color: #364669;
}

.quotationmark {
  position: absolute;
  top: 1em;
  left: 0;
  width: 3vw;
}

.credit_note {
  margin: 30vh auto 20vh;
  padding-top: 1%;
  border-top: 1px solid;
  display: block;
  width: min(550px, 100%);
}

.fadein {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fadein.visible {
  opacity: 1;
  transform: translateY(0);
}

footer {
  background-color: #333;
  color: #fff;
  padding: 2%;
}

footer small {
  display: flex;
  justify-content: center;
  align-items: center;
}

.video-wrapper {
  position: relative;
  width: min(550px, 100%);
  margin: 0 auto;
}

.video-wrapper video {
  width: 100%;
  display: block;
}

.control-wrap {
  position: absolute;
  top: 80%;
  left: 5%;
  z-index: 2;
  background-color: rgba(0, 0, 0, 0.75);
  padding: 3px 3%;
  border-radius: 17px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.controller-container {
  width: 100%;
  margin: 0 auto;
  position: absolute;
  opacity: 0;
  visibility: hidden;
  bottom: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.75);
  padding: 0 2%;
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 1001;
}

.fixed-controller {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.75);
  padding: 0 2%;
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 1001;
}

.control-wrap {
  opacity: 1;
  visibility: visible;
  cursor: pointer;
}

.controller-container.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.control-wrap.hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
}

#progress-bar {
  width: 60%;
}

#play-button,
#play-pause-button,
#stop-button,
#mute-button,
#unmute-button,
#enlarge-button {
  cursor: pointer;
  width: 12px;
  display: inline-block;
}

.video-duration,
.time-progressed {
  font-size: 12px;
  color: #fff;
  display: inline-block;
}

.enlarged-video {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  background-color: black;
}

#enlarge-button {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 1001;
  cursor: pointer;
}

.no-scroll {
  overflow: hidden;
}



@media screen and (max-width: 820px) {
  .byLine #map {
    width: 20vw;
    height: 20vw;
  }

  #mapLocator {
    width: 20vw;
    height: 20vw;
  }

  .resizedImage {
    width: 25%;
  }

  figcaption {
    margin-left: 0.5rem;
  }

  .scrolling-image {
    height: auto;
  }
}

@media screen and (max-width: 479px) {
  h1 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  h3,
  p {
    padding: 0 10%;
  }

  .quote p {
    font-size: 1.5rem;
    padding: 0 15%;
  }

  .quotationmark {
    top: 0;
    width: 10vw;
  }

  .byLine #map {
    width: 40vw;
    height: 40vw;
  }

  #mapLocator {
    width: 40vw;
    height: 40vw;
  }

  .control-wrap {
    top: 70%;
  }

}

@media (max-width: 1024px) {
  .scrolling-image {
    display: none;
  }
}

@media (min-width: 1025px) {
  .scrolling-image-mb {
    display: none;
  }
}
