/* ============================================
   スワイプコンポーネント CSS
============================================ */

/* ============================================
   PC/SP 切り替え用ユーティリティクラス
============================================ */
@media only screen and (max-width: 767px) {
  .pc {
    display: none !important;
  }
}

@media print, screen and (min-width: 768px) {
  .sp {
    display: none !important;
  }
}

/* ============================================
   スクロールコンテナ - 基本スタイル
============================================ */
.scroll_container {
  position: relative;
}

@media only screen and (max-width: 767px) {
  
  /* スクロールバーのカスタムスタイル（オプション） */
  .scroll_container::-webkit-scrollbar {
    height: 8px; /* スクロールバーの高さ */
  }
  
  .scroll_container::-webkit-scrollbar-track {
    background: #f1f1f1; /* トラックの背景色 */
    border-radius: 10px;
  }
  
  .scroll_container::-webkit-scrollbar-thumb {
    background: #888; /* スクロールバーの色 */
    border-radius: 10px;
  }
  
  .scroll_container::-webkit-scrollbar-thumb:hover {
    background: #555; /* ホバー時の色 */
  }
}

/* ============================================
   スワイプアイコン
============================================ */
.scroll_container .scroll_icon {
  display: none; /* デフォルトでは非表示 */
}

@media only screen and (max-width: 767px) {
  .scroll_container .scroll_icon {
    display: block;
    width: 5.7142857143rem; /* 80px相当 (14px base) */
    position: absolute;
    top: 50%;
    left: 45%; /* 中央より少し左に配置 */
    transform: translate(-50%, -50%);
    z-index: 10;
    pointer-events: none; /* クリックイベントを通過させる */
  }
  
  .scroll_container .scroll_icon img {
    width: 100%;
    height: auto;
    display: block;
  }
}

/* ============================================
   スクロール可能なコンテンツ
============================================ */
.scroll_container .scroll_content {
  /* デフォルトは通常の幅 */
}

@media only screen and (max-width: 767px) {
  .scroll_container .scroll_content {
    /* コンテンツの幅を150%に設定して横スクロールを可能に */
    width: 150%;
    padding-right: 2.1428571429rem; /* 30px相当 */
  }
}

/* ============================================
   フェードアウトアニメーション（オプション）
============================================ */
@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.scroll_icon.fade-out {
  animation: fadeOut 0.3s ease-out forwards;
}

/* ============================================
   画像要素の基本スタイル
============================================ */
.box_img {
  display: block;
  margin: 0;
}

.box_img img {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================
   レスポンシブ単位の説明
   
   remの計算（基準: 14px = 1rem）
   - 5.7142857143rem = 80px
   - 2.1428571429rem = 30px
   
   プロジェクトに応じて、remをpxやemに変更可能
============================================ */