@charset "utf-8";

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

body {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #333;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  width: 100vw;
  overflow-x: hidden;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

img {
  max-width: 100%;
  vertical-align: bottom;
}

ul {
  list-style-type: none;
}

figure {
  margin: 3em auto;
  padding: 0;
  text-align: center;
}

figcaption {
  font-size: 80%;
  color: #777;
  text-align: left;
  padding: 0 2%;
}

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

.fadein {
  opacity: 0;
}

.dropshadow {
  box-shadow: 0px 0px 15px -5px #777777;
  border-radius: 5px;
  margin-bottom: 1em;
}

.appendix {
  text-indent: 1em;
  margin-left: -1em;
}

.padding_adjustment {
  padding-left: 2%;
}

hgroup {
  background-image: url(../images/image15.jpg);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  height: 100vh;
  position: relative;
}

.logo {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 999;
  margin: 0;
}

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

#for_tagline {
  font-size: 14px;
  text-align: right;
  padding-right: 2%;
}

.tagline {
  color: #fff;
  text-shadow: 2px 3px 3px rgba(0, 0, 0, 0.7);
  position: absolute;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
  max-width: 70%;
}

.tagline h1 {
  font-size: 2.5rem;
  font-weight: 600;
  border-bottom: 1px solid #fff;
  text-align: center;
}

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

.tagline p {
  font-size: 1.1rem;
  font-weight: 400;
  padding: 0 5%;
  background-color: rgba(0, 0, 0, 0.3);
}

.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/toyama_locator_bg.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%;
}

main {
  margin: 3em 0;
}

.inner {
  max-width: 550px;
  margin: 0 auto;
}

.caption {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 2em 0 3em;
  text-align: center;
  position: relative;
}

.caption::after {
  position: absolute;
  content: "";
  display: inline-block;
  top: 40px;
  left: 50%;
  width: 10%;
  height: 5px;
  border-radius: 2px;
  background-color: #333;
  transform: translateX(-50%);
}

.insert_movie {
  width: 100%;
  border: none;
}

main p {
  margin: 1.5em auto;
  line-height: 1.8;
  padding: 0 5%;
}

.img_combo_container {
  width: 100%;
  margin: 4em auto;
}

.img_flexbox {
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 5px;
}

.img_flexbox img {
  width: 50%;
  object-fit: cover;
}

.img_combo_container small {
  color: #777;
  display: block;
  padding: 0 2%;
}

.damaged_city_table {
  width: 100%;
  margin: 3em auto;
  background-color: #f5f5f5;
  padding: 2%;
  border-radius: 3px;
}

.damaged_city_table h3 {
  text-align: center;
  font-size: 1.1em;
}

.damaged_city_table table {
  width: 100%;
  text-align: center;
  font-size: 80%;
  margin: 0 auto 2em;
  border-spacing: 0;
}

.damaged_city_table table th,
td {
  border-bottom: 1px solid #333;
  padding: 2% 1%;
}

.damaged_city_table .menu_title {
  font-size: 80%;
}

.damaged_city_table .table_title {
  text-align: left;
}

.table_title {
  text-align: center;
  width: 20%;
}

.emphasize {
  background-color: #b1b1b1;
}

.image_effect_wrap {
  position: relative;
}

.image_effect {
  /* position: relative; */
  width: 100%;
  height: 100vh;
}

.image-container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  margin: 0 auto;
}

.old-image,
.new-image {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  object-fit: cover;
}

.new-image {
  clip-path: inset(0 0 100% 0);
}

.new-image-caption {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 16px;
  background: rgba(0, 0, 0, 0.7);
  padding: 5px 10px;
  border-radius: 5px;
  opacity: 0;
  pointer-events: none;
  width: 80%;
  max-width: 350px;
  text-align: center;
  box-sizing: border-box;
  margin: 0 auto;
  text-indent: -3em;
  padding-left: 3em;
}

.flexbox_image {
  width: 100vw;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: stretch;
  margin: 3em auto;
}

.flexbox_image_wrap small {
  padding-left: 5%;
  margin-top: -3em;
  display: block;
}

.flexbox_image img {
  width: 50%;
  object-fit: cover;
}

.divided_line {
  position: relative;
  margin: 5em auto;
}

.divided_line::after {
  position: absolute;
  content: "";
  display: inline-block;
  top: -35px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background-color: #333;
}

.interview_video_wrap {
    position: relative;
    width: 70vw;
    margin: 0 auto;
  }
  
  .interview_video {
    width: 100%;
  }
  
  #unmute,
  #mute {
    width: 2rem;
    cursor: pointer;
  }
  
  #pause,
  #play {
    width: 1rem;
    cursor: pointer;
    z-index: 2;
  }
  
  #mute,
  #play {
    display: none;
  }
  
  #unmute,
  #mute {
    position: absolute;
    top: 5%;
    left: 2%;
    z-index: 2;
  }
  
  .control_container {
    position: absolute;
    bottom: 5%;
    left: 2%;
    z-index: 2;
  }
  
  .indicator_container {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 100%;
    transform: translateX(-50%);
    z-index: 1;
  }
  
  #time_indicator {
    font-size: 14px;
    color: #fff;
    margin-top: 10px;
    text-align: right;
    text-shadow: -6px 6px 21px rgba(0, 0, 0, 0.6);
  }
  
  #current_time,
  #video_duration {
    font-weight: bold;
  }
  
  #progress_bar_container {
    width: 100%;
    margin-top: 10px;
  }
  

  #progress_bar {
    width: 100%;
    appearance: none;
    height: 15px;
    background: linear-gradient(to right, rgb(95, 95, 95) 0%, rgb(95, 95, 95) 0%, #ddd 0%);
    outline: none;
    cursor: pointer;
}

#progress_bar::-moz-range-thumb {
  display: none;
}

#progress_bar::-webkit-slider-thumb {
    display: none;
}


@media screen and (min-width: 820px) {
  figcaption {
    padding: 0;
  }

  main p {
    padding: 0;
  }

  .location img {
    width: 20%;
  }

  .img_combo_container small {
    padding: 0;
  }
}

@media screen and (min-width: 931px) {
  .flexbox_image {
    height: 100vh;
  }
}

@media screen and (max-width: 767px) {
  .tagline {
    width: 100%;
    max-width: 100%;
  }

  .tagline h1 {
    font-size: 2.1rem;
  }

  .tagline p {
    font-size: 1rem;
  }

  .old-image,
  .new-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: auto;
    object-fit: cover;
  }
}

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

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

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

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

  .control_container {
    bottom: 15%;
  }
}

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

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