/*************************************
SIZE
*************************************/
/*************************************
COLORS
*************************************/
/*************************************
MIXINS
*************************************/
/*------------------------------------
animation
	*/
@keyframes maskAnim {
  0% {
    visibility: hidden;
    mask-image: none;
    opacity: 0;
    display: none;
  }
  99% {
    visibility: hidden;
    mask-image: var(--link);
    opacity: 1;
    display: block;
  }
  100% {
    visibility: visible;
    mask-image: var(--link);
    opacity: 1;
    display: block;
  }
}
@keyframes fingerAnim {
  0% {
    transform: translateX(20.5128205128vw);
    opacity: 1;
  }
  35% {
    opacity: 1;
  }
  100% {
    transform: translateX(-20.5128205128vw);
    opacity: 0;
  }
}
@keyframes loadBarAnim {
  0% {
    left: 0%;
  }
  50% {
    opacity: 1;
  }
  100% {
    left: calc(100% - 7px);
  }
}
/*===========================================================*/
/*===========================================================*/
body.open {
  overflow: hidden;
}
body.open #content.galleryPage {
  height: calc(100vh - 20.8333333333vw);
  height: calc(var(--vh, 1vh) * 100 - 20.8333333333vw);
}

#content.galleryPage {
  padding-top: 20.8333333333vw;
}
@media screen and ( max-width : 768px ) {
  #content.galleryPage {
    padding-top: 30.7692307692vw;
  }
}

#contentInner {
  opacity: 0;
  transition: opacity 1.2s;
  transition-delay: 0.3s;
}

.loaded #contentInner {
  opacity: 1;
}

#titleArea {
  width: 88.9583333333vw;
  margin: 0 auto;
  text-align: center;
  position: relative;
  margin-bottom: 3.8194444444vw;
  display: flex;
  justify-content: center;
  align-items: center;
}
@media screen and ( max-width : 768px ) {
  #titleArea {
    width: 86.4102564103vw;
    font-size: 6.6666666667vw;
    margin-bottom: 3.8461538462vw;
    display: block;
    letter-spacing: -0.01em;
  }
}
#titleArea .title {
  font-size: 2.9861111111vw;
}
@media screen and ( max-width : 768px ) {
  #titleArea .title {
    font-size: 6.6666666667vw;
  }
}
#titleArea .title.long {
  font-size: 2.7777777778vw;
}
@media screen and ( max-width : 768px ) {
  #titleArea .title.long {
    font-size: 6.1538461538vw;
  }
}
#titleArea .number {
  font-size: 0.9722222222vw;
}
@media screen and ( max-width : 768px ) {
  #titleArea .number {
    font-size: 3.0769230769vw;
    position: relative;
    margin-top: -0.0694444444vw;
  }
}
#titleArea .number span {
  position: absolute;
  right: 0;
  line-height: 1;
  background: #222222;
  color: #FFFFFF;
  padding: 0.0694444444vw 0.1388888889vw;
  margin-top: 0.0694444444vw;
}
@media screen and ( max-width : 768px ) {
  #titleArea .number span {
    position: relative;
    display: inline-block;
    padding: 0.2564102564vw 0.5128205128vw;
  }
}

.gallery {
  width: 93.125vw;
  margin: 0 auto;
}
.gallery .gallery-item {
  width: 31.0416666667vw;
  padding: 1.5277777778vw;
  box-sizing: border-box;
}
@media screen and ( max-width : 768px ) {
  .gallery .gallery-item {
    width: 46.1538461538vw;
    padding: 1.2820512821vw;
  }
}
.gallery .gallery-item img {
  border: 0.5555555556vw solid #FFFFFF;
  box-sizing: border-box;
}
@media screen and ( max-width : 768px ) {
  .gallery .gallery-item img {
    border: 1.0256410256vw solid #FFFFFF;
  }
}

.contactBtn {
  display: flex;
  justify-content: center;
  margin-top: 2.0833333333vw;
}
@media screen and ( max-width : 768px ) {
  .contactBtn {
    margin-top: 7.6923076923vw;
  }
}

#pageMove {
  width: 88.9583333333vw;
  padding: 4.1666666667vw 0;
  margin: 0 auto;
  display: flex;
  font-size: 0.8333333333vw;
  position: relative;
}
@media screen and ( max-width : 768px ) {
  #pageMove {
    font-size: 2.8205128205vw;
    letter-spacing: -0.01em;
    padding: 7.6923076923vw 0 15.3846153846vw;
  }
}
#pageMove .inner {
  display: inline;
}
#pageMove .prev, #pageMove .next {
  width: 40%;
}
@media screen and ( max-width : 768px ) {
  #pageMove .prev, #pageMove .next {
    width: 50%;
  }
}
#pageMove .next {
  text-align: right;
}
#pageMove .backBtn {
  width: 20%;
  text-align: center;
}
@media screen and ( max-width : 768px ) {
  #pageMove .backBtn {
    width: 100%;
    position: absolute;
    bottom: 0;
    font-size: 3.8461538462vw;
  }
}
#pageMove .txt, #pageMove .backBtn a {
  position: relative;
  display: inline-block;
}
#pageMove .backBtn a:after {
  position: absolute;
  content: "";
  width: 100%;
  height: 1px;
  background-color: #000000;
  bottom: -0.2083333333vw;
  left: 0;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s cubic-bezier(0.86, 0, 0.07, 1);
}
@media screen and ( max-width : 768px ) {
  #pageMove .backBtn a:after {
    transform: scaleX(1);
  }
}
#pageMove .backBtn a:hover:after {
  transform: scaleX(1);
  transform-origin: left;
}
#pageMove .txt:before {
  content: "";
  display: block;
  position: absolute;
  width: 0.6944444444vw;
  height: 0.6944444444vw;
  background-image: url(../images/arrow_move.svg);
  background-size: cover;
  background-position: center;
  top: 0.3125vw;
}
@media screen and ( max-width : 768px ) {
  #pageMove .txt:before {
    width: 2.5641025641vw;
    height: 2.5641025641vw;
    top: 1.1538461538vw;
  }
}
#pageMove .prev .txt {
  padding-left: 1.1111111111vw;
}
@media screen and ( max-width : 768px ) {
  #pageMove .prev .txt {
    padding-left: 3.3333333333vw;
  }
}
#pageMove .prev .txt:before {
  transform: rotate(180deg);
  left: 0;
}
#pageMove .next .txt {
  padding-right: 1.1111111111vw;
}
@media screen and ( max-width : 768px ) {
  #pageMove .next .txt {
    padding-right: 3.3333333333vw;
  }
}
#pageMove .next .txt:before {
  right: 0;
}

#galleryContainer {
  width: 0;
  height: 0;
  position: fixed;
  top: 0;
  left: 0;
  opacity: 0;
  z-index: 31;
  overflow: hidden;
  transition: opacity 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}
#galleryContainer .inner {
  width: 100%;
  height: 100%;
  height: calc(var(--vh, 1vh) * 100);
  background: rgba(255, 255, 255, 0.95);
  position: absolute;
  top: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
#galleryContainer #frame {
  transform-origin: 50% 50%;
  transform: scale(1, 1);
  background: #FFFFFF;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  transform: translateY(-30px);
}
@media screen and ( max-width : 768px ) {
  #galleryContainer #frame {
    transform: translateY(-15px);
  }
}
#galleryContainer #frame img.push {
  opacity: 1;
  transition: opacity 0.2s ease;
  position: absolute;
  z-index: 2;
}
#galleryContainer #frame img.push.out {
  opacity: 0;
}
#galleryContainer #frame .loader {
  position: absolute;
  width: 60px;
  height: 1px;
  background: #e1e1e1;
  z-index: 1;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
}
#galleryContainer #frame .loader:after {
  content: "";
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e1e1e1;
  position: absolute;
  top: -3px;
  left: 0;
  animation: loadBarAnim 1s ease-in-out infinite;
  animation-direction: alternate;
}
#galleryContainer .closeBtn {
  position: absolute;
  top: 0;
  right: 0;
  width: 4.8611111111vw;
  height: 4.8611111111vw;
  z-index: 400;
}
@media screen and ( max-width : 768px ) {
  #galleryContainer .closeBtn {
    width: 15.3846153846vw;
    height: 15.3846153846vw;
  }
}
#galleryContainer .arrow {
  z-index: 400;
}
#galleryContainer .prev, #galleryContainer .next {
  position: absolute;
  top: calc(50% - 1.1805555556vw);
  width: 2.3611111111vw;
}
@media screen and ( max-width : 450px ) {
  #galleryContainer .prev, #galleryContainer .next {
    display: none;
  }
}
#galleryContainer .prev {
  left: 1.7361111111vw;
  transform: rotate(180deg);
}
#galleryContainer .next {
  right: 1.7361111111vw;
}
#galleryContainer #number {
  position: absolute;
  bottom: 40px;
  text-align: right;
  font-size: 0.8333333333vw;
  margin: 0 auto;
  width: 100%;
  letter-spacing: 0.06em;
  box-sizing: border-box;
  padding-right: 1.7361111111vw;
}
@media screen and ( max-width : 768px ) {
  #galleryContainer #number {
    font-size: 3.0769230769vw;
    top: 20px;
    text-align: left;
    padding-left: 5.1282051282vw;
    color: #444;
  }
}
#galleryContainer #status {
  position: absolute;
  bottom: 50px;
  margin: 0 auto;
  width: 100%;
  text-align: center;
  letter-spacing: 0.01em;
  font-size: 0.7638888889vw;
}
@media screen and ( max-width : 768px ) {
  #galleryContainer #status {
    bottom: 36px;
    font-size: 2.5641025641vw;
  }
}
#galleryContainer #year, #galleryContainer #material, #galleryContainer #size {
  letter-spacing: 0.01em;
  font-size: 0.7638888889vw;
  color: #555555;
}
@media screen and ( max-width : 768px ) {
  #galleryContainer #year, #galleryContainer #material, #galleryContainer #size {
    font-size: 2.5641025641vw;
  }
}
#galleryContainer #year {
  margin-top: 0.2083333333vw;
}
#galleryContainer #credit {
  font-size: 1.1111111111vw;
  letter-spacing: 0.01em;
  margin-bottom: 8px;
}
@media screen and ( max-width : 768px ) {
  #galleryContainer #credit {
    font-size: 3.8461538462vw;
    margin-bottom: 6px;
  }
}
#galleryContainer #annotation {
  position: absolute;
  bottom: 18px;
  font-size: 0.9027777778vw;
  margin: 0 auto;
  width: 100%;
  text-align: center;
  letter-spacing: 0.01em;
  color: #C10E0E;
}
@media screen and ( max-width : 768px ) {
  #galleryContainer #annotation {
    font-size: 2.8205128205vw;
    bottom: 10px;
  }
}

#galleryContainer.ac {
  width: 100%;
  height: 100%;
  height: calc(var(--vh, 1vh) * 100);
  opacity: 1;
  z-index: 998;
}

.touch #tutorial {
  display: none;
  pointer-events: none;
}
@media screen and ( max-width : 768px ) {
  .touch #tutorial {
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    top: 0;
    left: 0;
    z-index: 100;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.7s;
    transition-delay: 1s;
    transform: translateY(-15px);
  }
}
.touch #tutorial img {
  display: none;
  pointer-events: none;
}
@media screen and ( max-width : 768px ) {
  .touch #tutorial img {
    display: block;
    width: 7.1794871795vw;
    padding-top: 7.6923076923vw;
  }
}

@media screen and ( max-width : 768px ) {
  .open.touch #tutorial {
    opacity: 0;
    pointer-events: none;
  }
}
.open.touch #tutorial img {
  animation: fingerAnim 1.5s cubic-bezier(0.46, 0.03, 0.52, 0.96) infinite;
}