@charset "UTF-8";
/*    モーダルウィンドウ処理    */
/* 20230726  ©Hiroyuki Sekido */
/*mw-content内に*/
/*mw-title*/
/*mw-desc(初期非表示)*/
/*mw-img*/
/*が内包。クリック時に要素を複製しfixedをかけることでモーダルウィンドウを実現。*/
.mw-content {
  /* transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); */
  cursor: pointer;
  overflow: hidden;
}

.mw-bodyLock {
  scrollbar-gutter: stable;
  overflow: hidden;
}

.mw-desc {
  display: none;
}

.mw-active-content {
  position: fixed;
  display: flex;
  align-items: flex-start;
  gap: clamp(3rem, 2.5vw, 48px);
  top: 0;
  height: 100%;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0rem;
  padding-top: calc(clamp(3rem, 2.5vw, 48px) * 2 + 8rem);
  padding-left: clamp(3rem, 2.5vw, 48px);
  padding-right: clamp(3rem, 2.5vw, 48px);
  padding-bottom: calc(clamp(3rem, 2.5vw, 48px) + 4rem);
  border-radius: 0;
  color: #fff;
  overflow: hidden auto;
  z-index: 50;
  background-color: rgba(0, 0, 0, 0);
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(0.87, 0, 0.13, 1), background-color 0.7s cubic-bezier(0.87, 0, 0.13, 1);
}
@media screen and (max-width: 768px) {
  .mw-active-content {
    flex-direction: column;
  }
}
.mw-active-content .mw-title {
  position: fixed;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  top: clamp(3rem, 2.5vw, 48px);
  bottom: unset;
  width: unset;
  height: 8rem;
  padding: 0.5rem 1.5rem;
  font-size: 2rem;
  line-height: 3.5rem;
  color: #fff;
  background-color: #222;
  opacity: 1;
  z-index: 110;
  transition: width 0.6s cubic-bezier(0.87, 0, 0.13, 1);
}
@media screen and (min-width: 769px) {
  .mw-active-content .mw-title.s {
    font-size: 4rem;
  }
}
.mw-active-content .mw-title::after {
  content: "";
  position: absolute;
  left: 0;
  width: 5px;
  background-color: #777;
  animation: titleBorderAnim 4s cubic-bezier(0.16, 1, 0.3, 1) 0s infinite normal forwards;
}
.mw-active-content .mw-title time {
  position: absolute;
  display: inline-block;
  left: 0;
  bottom: 0;
  width: 8rem;
  text-align: justify;
  -moz-text-align-last: justify;
       text-align-last: justify;
  text-justify: inter-ideograph;
  line-height: 2rem;
  transform-origin: 0 100%;
  transform: rotate(-90deg);
}
.mw-active-content .mw-img {
  position: relative;
  width: 100%;
  left: -110%;
  will-change: left, right;
  transition: left 0.6s cubic-bezier(0.87, 0, 0.13, 1);
}
@media screen and (min-width: 769px) {
  .mw-active-content .mw-img {
    -o-object-fit: contain;
       object-fit: contain;
    max-height: calc(100vh - (clamp(3rem, 2.5vw, 48px) * 3 + 8rem) - 5rem);
    width: -moz-fit-content;
    width: fit-content;
    max-width: calc((100% - clamp(3rem, 2.5vw, 48px) * 3) / 2);
  }
}
.mw-active-content .mw-desc {
  position: relative;
  flex-shrink: 0;
  left: 210%;
  right: -210%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  height: auto;
  min-height: calc(100vh - (clamp(3rem, 2.5vw, 48px) * 3 + 8rem) - 5rem);
  padding: 1.5rem;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.6);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3333333333);
  overflow: hidden auto;
  font-size: 2rem;
  font-weight: 300;
  text-align: justify;
  will-change: left, right;
  transition: left 0.6s cubic-bezier(0.87, 0, 0.13, 1), right 0.6s cubic-bezier(0.87, 0, 0.13, 1);
}
@media screen and (min-width: 769px) {
  .mw-active-content .mw-desc {
    flex-shrink: unset;
  }
}
@media screen and (max-width: 768px) {
  .mw-active-content .mw-desc {
    min-height: unset;
  }
}
.mw-active-content .mw-desc .mw-desc-sub {
  font-size: 1.5rem;
  margin-top: 5rem;
}
.mw-active-content .mw-desc .mw-desc-sub p {
  text-align: right;
}
.mw-active-content .mw-desc .mw-desc-sub p span {
  font-weight: 600;
  margin-right: 1rem;
  padding: 0 0.5rem;
  color: #000;
  background-color: #fff;
}
.mw-active-content .mw-desc .mw-desc-sub p:last-child {
  margin-bottom: 0;
}
.mw-active-content:not(.loading) {
  background-color: rgba(0, 0, 0, 0.8);
  opacity: 1;
}
.mw-active-content:not(.loading) .mw-title {
  right: 0;
}
.mw-active-content:not(.loading) .mw-img {
  left: 0;
}
.mw-active-content:not(.loading) .mw-desc {
  left: 0;
}
.mw-active-content:not(.loading) .mw-notice {
  position: fixed;
  bottom: 0;
  right: 0;
  left: 0;
  height: 4rem;
  padding: 1rem;
  text-align: right;
  font-size: 2rem;
  font-weight: 500;
  color: #222;
  background: rgba(255, 255, 255, 0.7333333333);
  animation: mw-ac-after 3s cubic-bezier(0.25, 1, 0.5, 1) 0s 1 normal forwards;
}
.mw-active-content:not(.loading) .mw-notice::after {
  content: "Click anywhere to close";
}
@media screen and (max-width: 768px) {
  .mw-active-content:not(.loading) .mw-notice::after {
    content: "Tap anywhere to close";
  }
}

@keyframes mw-ac-after {
  0% {
    bottom: -6rem;
  }
  10% {
    bottom: -6rem;
  }
  20% {
    bottom: 0;
  }
  70% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
@keyframes titleBorderAnim {
  0% {
    top: 0;
    height: 100%;
  }
  5% {
    top: 100%;
    height: 0;
  }
  6% {
    top: 0;
    height: 0;
  }
  11% {
    top: 0;
    height: 100%;
  }
  20% {
    top: 100%;
    height: 0;
  }
  21% {
    top: 0;
    height: 0;
  }
  40% {
    top: 0;
    height: 100%;
  }
  100% {
    top: 0;
    height: 100%;
  }
}/*# sourceMappingURL=mw.css.map */