@charset "utf-8";

/**
swipeicon
（参照元: https://www.ssknet.co.jp/mansion/sotokanda/css/swipe.css をそのまま流用）
横長図版（アプローチ概念図・路線図・通学マップ）をSPでスワイプ横スクロールさせるための
汎用スタイル。.slideWrap で囲んだ画像に対して機能する。
**/
.slideWrap {
  position: relative;
  overflow-y: hidden;
  overflow-x: auto;
  z-index: 0;
  -webkit-overflow-scrolling: touch;
  overflow-scrolling: touch;
}
.swipe_icon {
  opacity: 0;
  position: absolute;
  z-index: 1;
  width: 60px;
  top: 50%;
  left: 50%;
  transform: translateY(-50%) translateX(-50%);
  -webkit-transform: translateY(-50%) translateX(-50%);
  transition: opacity 0.3s ease;
}
img.finger {
  margin: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateY(-50%) translateX(-50%);
  -webkit-transform: translateY(-50%) translateX(-50%);
  width: 100%;
  height: auto;
  animation: horizontal 1s ease-in-out infinite alternate;
}
.swipe_icon.is-hide {
  opacity: 0;
  pointer-events: none;
}

@media only screen and (max-width: 768px) {
  .swipe_icon {
    opacity: 1;
  }
  img.slide_img {
    width: 690px !important;
    max-width: 690px !important;
  }
}

@keyframes horizontal {
  0% {
    transform: translate(-30%, -50%);
  }
  100% {
    transform: translate(-70%, -50%);
  }
}

/* OS側で「視差効果を減らす／モーションを減らす」設定が有効な場合、
   装飾的なスワイプ誘導アイコンごと非表示にする。
   （common.scssのグローバルなprefers-reduced-motion対応により
   animation-durationがほぼ0秒に強制され、点滅して見えてしまうため） */
@media (prefers-reduced-motion: reduce) {
  .swipe_icon {
    display: none;
  }
}
