@charset "utf-8";

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

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  width: 100%;
  font-family: source-han-sans-japanese, sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 20px;
  color: #333;
  line-height: 180%;
  background: #e2dfd4;
}

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

a {
  text-decoration: none;
  color: #333;
}

ul {
  list-style: none;
}

figure {
  margin: 10vh 0;
}

figcaption {
  margin-left: 1rem;
  font-size: 1rem;
  width: min(550px, 100%);
  margin: 10px auto 0;
  line-height: 140%;
}

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

.loader-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  width: 100vw;
  position: fixed;
  top: 0;
  left: 0;
  background-color: rgba(255, 255, 255);
  z-index: 9999;
}

.loader {
  border: 16px solid #f3f3f3;
  border-top: 16px solid #4d565c;
  border-radius: 50%;
  width: 120px;
  height: 120px;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

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

#hero {
  height: 100vh;
  width: 100%;
  background-image: url(images/kamo_city_view.jpg);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #000;
  transition: background-image 0.5s ease-out;
}








.letter_container {
  width: 100vw;
}

#black {
  inset: 0;
  background-color: #000;
}


.letter_container img {
  width: 20vh;
  margin: 0 auto;
  opacity: 0.5;
  z-index: 1;
}





.main_title_wrap {
  display : flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}





.cover_image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  z-index: 10;
}

.cover_image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.main_title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  z-index: 9999;
  width: 70vh;
}

.main_title img {
  width: 100%;
}

@media screen and (max-width: 959px) {
  .main_title_wrap {
    display : flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }
  
  .cover_image {
    width: 100%;
    height: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
}







.prelude {
  font-family: source-han-serif-japanese, serif;
  font-weight: 400;
  font-style: normal;
  font-size: 18px;
  line-height: 160%;
  margin: 10vh auto;
  border-top: 1px solid rgb(88, 88, 88);
  border-bottom: 1px solid rgb(88, 88, 88);
  padding: 1em 0;
}

.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: 10vw;
  height: 10vw;
  border-radius: 50%;
  background-image: url("images/kamo_tokyo_map.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%;
}

.letter_area {
  width: 100%;
  margin: 10vh auto;
  background-color: black;
}

.letter_area_wrap {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  position: relative;
}

.letter_area_wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  width: 100%;
  gap: 2rem;
}

.original_image,
.change_image {
  width: 50%;
  height: 90%;
  object-fit: contain;
  transition: opacity 0.5s ease;
}

.original_image {
  opacity: 1;
}

.change_image {
  opacity: 0;
}

.original_image {
  transition: opacity 0.5s ease;
}

.letter_texts {
  font-family: source-han-serif-japanese, serif;
  color: #fff;
  flex-basis: 50%;
  padding: 10%;
}

.letter_texts h4 {
  border-bottom: 1px dashed;
  font-family: source-han-sans-japanese, sans-serif;
}

.letter_texts p {
  color: #fff;
}

.image_flex_wrap {
  margin: 10vh auto;
  width: 90%;
}

.image_flex {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 5px;
  width: 100%;
}

.image_flex img {
  width: calc(100% / 2 - 5px);
}

.partation {
  position: relative;
  margin: 5vh auto;
  width: 100%;
  height: 5vh;
}

.partation::after {
  width: 50px;
  height: 2px;
  background-color: #333;
  position: absolute;
  content: "";
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.notice {
  width: 100%;
  margin: 20vh auto;
  background-color: #fff;
  border: 1px solid;
  border-radius: 5px;
  font-size: 0.9rem;
  line-height: 140%;
}

.notice_wrap {
  padding: 0 5%;
  box-sizing: border-box;
}

.notice .partation {
  margin: 1vh auto;
}

.notice .partation::after {
  height: 1px;
}

.notice p {
  padding: 0 5%;
}



.slider-container {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.slider {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 10px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.slider::-webkit-scrollbar {
  display: none;
}

.prev-btn,
.next-btn {
  cursor: pointer;
  z-index: 1;
  border: none;
  background: transparent;
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
}

.prev-btn img,
.next-btn img {
  width: 35px;
  object-fit: contain;
}

.prev-btn {
  left: 5px;

}

.next-btn {
  right: 5px;
}


.related_article {
  width: 100%;
  margin: 10vh auto 0;
  overflow: hidden;
  position: relative;
  padding: 5% 10% 5%;
  box-sizing: border-box;
  border-top: 5px solid #efefef;
  border-bottom: 5px solid #efefef;
  background-color: #fff;
}

.related_article h4 {
  font-size: 18px;
  font-weight: 800;
  line-height: 140%;
  display: flex;
  align-items: center;
  gap: 8px;
}

.related_article img {
  height: 3em;
  vertical-align: middle;
}

.related_article ul {
  width: 100%;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  cursor: grab;
  scrollbar-width: none;
  gap: 10px;
}

.related_article ul li {
  min-width: 30%;
  height: fit-content;
  scroll-snap-align: start;
}

.related_article li img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5px;
}

.related_article ul li h5 {
  margin: 0;
  font-weight: 800;
  font-size: 16px;
  line-height: 140%;
  padding: 2% 2% 0;
}

.related_article ul li p {
  font-size: 16px;
  line-height: 140%;
  padding: 0 2%!important;
  margin: 0;
}



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

  .main_title {
    width: 40vh;
  }

  p {
    padding: 0 10%;
  }

  .letter img {
    max-width: 200px;
  }

  .letter_area_wrap {
    gap: 0;
    flex-direction: column;
  }

  .original_image,
  .change_image {
    width: 55%;
  }

  .letter_texts {
    flex-basis: 80%;
    overflow-y: scroll;
    border-top: 1px solid #ccc;
    max-height: 500px;
    width: 95%;
  }
  
  .letter_texts::-webkit-scrollbar {
    width: 12px;
  }
  
  .letter_texts::-webkit-scrollbar-track {
    background-color: #ccc;
  }
  
  .letter_texts::-webkit-scrollbar-thumb {
    background-color: #494d59;
    border-radius: 8px;
  }
  
  .letter_texts p {
    padding: 0;
  }

  .image_flex {
    flex-direction: column;
  }

  .image_flex img {
    width: 100%;
  }

  figcaption {
    padding: 0 10%;
  }

  .related_article {
    padding: 5%;
  }
}

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

  .related_article ul li {
    min-width: 70%;
  } 
}


footer {
  padding: 3vh;
  text-align: center;
  background-color: #fff;
  color: #333;
  font-family: "source-han-sans-japanese", sans-serif;
  font-size: 16px;
}
