@charset "utf-8";

/** ***************************************************************************
 * 紹介文
 * ************************************************************************* */

#lead {
  padding: 40px 0;
}

@media screen and (min-width:768px) {

  #lead {
    padding: 80px 0;
  }

}

/**
 * タイトル
 */

#lead .section-title {
  margin-bottom: 40px;
  line-height: 3;
  font-size: 0.75em;
  text-align: center;
}

@media screen and (min-width:768px) {

  #lead .section-title {
    margin-bottom: 80px;
  }

}

/**
 * 内容
 */

#lead div.content .catchcopy {
  width: 100%;
  letter-spacing: 2px;
  line-height: 2.5;
  font-size: 1.25em;
  text-orientation: upright;
  writing-mode: vertical-rl;
  display: flex;
  align-items: center;
  justify-content: center;
}

#lead div.content .text {
  line-height: 2.5;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 300;
  text-align: center;
}

@media screen and (min-width:768px) {

  #lead div.content {
    line-height: 3;
  }

}

/** ***************************************************************************
 * 京王多摩川のまちづくり
 * ************************************************************************* */

#keiotamagawa {
  overflow: hidden;
}

#keiotamagawa div.history {
  max-width: none;
  width: calc(100% + 1px);
  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);
  color: #fff;
  background-color: #8b8783;
  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 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 div.caption {
  padding: 3px 7px 4px;
  color: #fff;
  line-height: 1;
  background-color: rgba(0, 0, 0, 0.6);
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
}

#keiotamagawa div.history div.item.scroll div.image div.caption {
  bottom: 20px !important;
}

/**
 * 動画
 */

#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;
  }

}
