@charset "utf-8";

/** ***************************************************************************
 * 共用
 * ************************************************************************* */

#main {
  padding-bottom: 200px;
  color: #fff;
  background-color: #7e8e99;
}

@media screen and (min-width:768px) {

  #main {
    padding-bottom: 400px;
  }

}

/** ***************************************************************************
 * 京王多摩川のまちづくり
 * ************************************************************************* */

#keiotamagawa {
  overflow: hidden;
}

/**
 * タイトル
 */

#keiotamagawa .section-title {
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
  padding-bottom: 0.25em;
  font-size: 1.25em;
  font-weight: 100;
  border-bottom: 1px solid #fff;
}

@media screen and (min-width:768px) {

  #keiotamagawa .section-title {
    margin-bottom: 80px;
  }

}

/**
 * 紹介文
 */

#keiotamagawa div.lead {
  text-align: center;
}

#keiotamagawa div.lead .catchcopy {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.375em;
}

@media screen and (min-width:768px) {

  #keiotamagawa div.lead .catchcopy {
    font-size: 1.875em;
  }

}

/** ---------------------------------------------------------------------------
 * 街の歴史
 */

#keiotamagawa div.history {
  max-width: none;
  width: calc(100% + 1px);
  margin-top: 50px;
  padding: 1px 0;
  background-color: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: flex-start;
  gap: 1px;
}

#keiotamagawa div.history a {
  transform: none !important;
}

#keiotamagawa div.history div.item {
  width: calc(100% - 1px);
  background-color: #7e8e99;
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
}

#keiotamagawa div.history div.item.scroll {
  flex-wrap: wrap;
}

#keiotamagawa div.history div.item.large {
  flex-wrap: wrap;
}

@media screen and (min-width:768px) {

  #keiotamagawa div.history {
    margin-top: 100px;
  }

  #keiotamagawa div.history div.item {
    width: calc(50% - 1px);
  }

  #keiotamagawa div.history div.item.scroll {
    width: calc(50% - 1px);
    flex-wrap: nowrap;
  }

  #keiotamagawa div.history div.item.large {
    width: calc(100% - 1px);
    flex-wrap: nowrap;
  }

  #keiotamagawa div.history div.item.scroll.large {
    flex-wrap: wrap;
  }

}

/**
 * 画像
 */

#keiotamagawa div.history div.item div.image {
  width: 50%;
  padding-bottom: 50%;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  overflow: hidden;
  position: relative;
  z-index: 0;
}

#keiotamagawa div.history div.item.large div.image {
  width: 100%;
  padding-bottom: 100%;
}

@media screen and (min-width:768px) {

  #keiotamagawa div.history div.item div.image {
    background-position: left center;
    background-size: 130%;
  }

  #keiotamagawa div.history div.item.large div.image {
    width: 50%;
    padding-bottom: 50%;
  }

  #keiotamagawa div.history div.item.content-image div.image {
    border-left: 1px solid #fff;
  }

  #keiotamagawa div.history div.item.displayed div.image {
    animation: image-effect 0.8s cubic-bezier(.645,.045,.355,1) 0.0s forwards;
  }

  #keiotamagawa div.history div.item[data-delay="0.3"] div.image {
    animation-delay: 0.3s;
  }

}

@keyframes image-effect {
  0% {
    background-position: left center;
  }
  100% {
    background-position: center center;
  }
}

/**
 * 動画
 */

#keiotamagawa div.history div.item div.image iframe {
  max-width: none;
  width: 177.7777777777778%;
  height: 100%;
  position: absolute;
  z-index: 1;
  top: 0;
  left: calc(50% - 88.88888888888889%);
}

/**
 * 横スクロール画像
 */

#keiotamagawa div.history div.item.scroll div.image {
  width: 100%;
  height: 100vw;
  padding-bottom: 0;
}

#keiotamagawa div.history div.item.scroll div.image div.frame {
  width: 100%;
  height: 100%;
  max-width: none;
  overflow: hidden;
  overflow-x: visible;
}

#keiotamagawa div.history div.item.scroll.large div.image {
  height: 100vw;
}

#keiotamagawa div.history div.item.scroll div.image img {
  max-width: none;
  height: 100%;
}

@media screen and (min-width:768px) {

  #keiotamagawa div.history div.item.scroll div.image {
    width: 50%;
    height: calc(100vw / 4);
  }

  #keiotamagawa div.history div.item.scroll.large div.image {
    width: 100%;
    height: auto;
  }

  #keiotamagawa div.history div.item.scroll.large div.image::before {
    display: none;
  }

  #keiotamagawa div.history div.item.scroll.large div.image::after {
    display: none;
  }

  #keiotamagawa div.history div.item.scroll.large div.image img {
    max-width: 100%;
    height: auto;
  }

}

/**
 * 内容
 */

#keiotamagawa div.history div.item div.content {
  width: 50%;
  padding: 1.5em;
  line-height: 2;
  font-size: clamp(11px, 1.066vw, 16px);
  font-weight: 100;
  text-align: justify;
  text-justify: inter-character;
  border-left: 1px solid #fff;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-end;
}

#keiotamagawa div.history div.item.large div.content {
  width: 100%;
  border-left: none;
}

#keiotamagawa div.history div.item.scroll div.content {
  width: 100%;
  border-left: none;
}

#keiotamagawa div.history div.item div.content div.title {
  margin-bottom: 0.25em;
  font-family: 'Noto Serif JP', serif;
  font-size: 1.25em;
}

#keiotamagawa div.history div.item div.content div.text {
  font-size: 1.125em;
}

@media screen and (min-width:768px) {

  #keiotamagawa div.history div.item.large div.content {
    width: 50%;
    border-left: 1px solid #fff;
  }

  #keiotamagawa div.history div.item.scroll div.content {
    width: 50%;
    border-left: 1px solid #fff;
  }

  #keiotamagawa div.history div.item.scroll.large div.content {
    width: 100%;
    border-left: none;
  }

  #keiotamagawa div.history div.item.content-image div.content {
    border-left: none;
    order: -1;
  }

  #keiotamagawa div.history div.item div.content div.text {
    font-size: 1em;
  }

}
