/* ==========================================
   Amour et Pattes CSS Catalog
   PC / SP 共通：1ページずつ
========================================== */


/* ==========================================
   カタログ全体
========================================== */

.amour-css-catalog {
  position: relative;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  box-sizing: border-box;
}


/* ==========================================
   ラジオボタン
========================================== */

.amour-css-catalog input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}


/* ==========================================
   各ページ
========================================== */

.amour-css-catalog__page {
  display: none;
  position: relative;
  width: 100%;
  min-height: 300px;
  padding: 10px 45px 15px;
  box-sizing: border-box;
}


/* ==========================================
   画像エリア
========================================== */

.amour-css-catalog__images {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;

  width: 100%;
  max-width: 960px;
  margin: 0 auto;

  transform-origin: center center;

  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease;

  /* 自然な影 */
  box-shadow:
    0 3px 8px rgba(0, 0, 0, 0.06),
    0 10px 24px rgba(0, 0, 0, 0.07);
}


/* ==========================================
   カタログ画像
========================================== */

.amour-css-catalog__images img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
  box-sizing: border-box;
}


/* ==========================================
   左右矢印
========================================== */

.amour-css-catalog__arrow {
  position: absolute;
  top: 50%;
  z-index: 20;

  transform: translateY(-50%);

  font-size: 50px;
  line-height: 1;

  color: #555;

  cursor: pointer;
  user-select: none;

  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}


/* 左矢印 */

.amour-css-catalog__arrow--prev {
  left: 0;
}


/* 右矢印 */

.amour-css-catalog__arrow--next {
  right: 0;
}


/* 矢印ホバー */

.amour-css-catalog__arrow:hover {
  opacity: 0.75;
}


/* ==========================================
   PC：ぺらっと浮くホバー
========================================== */

@media screen and (min-width: 768px) {

  /* ------------------------------------------
     次ページ側
  ------------------------------------------ */

  .amour-css-catalog__page:has(.amour-css-catalog__arrow--next:hover)
  .amour-css-catalog__images {

    transform:
      perspective(1400px)
      rotateY(-1deg)
      translateX(-2px);

    box-shadow:
      4px 4px 10px rgba(0, 0, 0, 0.07),
      10px 14px 28px rgba(0, 0, 0, 0.10);
  }


  /* ------------------------------------------
     前ページ側
  ------------------------------------------ */

  .amour-css-catalog__page:has(.amour-css-catalog__arrow--prev:hover)
  .amour-css-catalog__images {

    transform:
      perspective(1400px)
      rotateY(1deg)
      translateX(2px);

    box-shadow:
      -4px 4px 10px rgba(0, 0, 0, 0.07),
      -10px 14px 28px rgba(0, 0, 0, 0.10);
  }


  /* ------------------------------------------
     次へ矢印
  ------------------------------------------ */

  .amour-css-catalog__arrow--next:hover {
    transform:
      translateY(-50%)
      translateX(3px);
  }


  /* ------------------------------------------
     前へ矢印
  ------------------------------------------ */

  .amour-css-catalog__arrow--prev:hover {
    transform:
      translateY(-50%)
      translateX(-3px);
  }

}


/* ==========================================
   ページ番号
========================================== */

.amour-css-catalog__counter {
  margin-top: 14px;

  text-align: center;

  font-size: 13px;
  line-height: 1.5;

  color: #777;
}


/* ==========================================
   ページ切り替え
   PowerCMS Xの既存CSSとの競合を避けるため
   セレクタを強めています
========================================== */

.amour-css-catalog #ap-page-1:checked ~ .ap-page-1,
.amour-css-catalog #ap-page-2:checked ~ .ap-page-2,
.amour-css-catalog #ap-page-3:checked ~ .ap-page-3,
.amour-css-catalog #ap-page-4:checked ~ .ap-page-4,
.amour-css-catalog #ap-page-5:checked ~ .ap-page-5,
.amour-css-catalog #ap-page-6:checked ~ .ap-page-6,
.amour-css-catalog #ap-page-7:checked ~ .ap-page-7,
.amour-css-catalog #ap-page-8:checked ~ .ap-page-8,
.amour-css-catalog #ap-page-9:checked ~ .ap-page-9,
.amour-css-catalog #ap-page-10:checked ~ .ap-page-10,
.amour-css-catalog #ap-page-11:checked ~ .ap-page-11 {
  display: block !important;
}


/* ==========================================
   SP
========================================== */

@media screen and (max-width: 767px) {


  /* ------------------------------------------
     カタログ全体
  ------------------------------------------ */

  .amour-css-catalog {
    width: 100%;
    max-width: none;
  }


  /* ------------------------------------------
     各ページ
  ------------------------------------------ */

  .amour-css-catalog__page {
    min-height: 0;
    padding: 10px 20px 20px;
  }


  /* ------------------------------------------
     SP：画像エリア
  ------------------------------------------ */

  .amour-css-catalog__images {
    width: 100%;
    max-width: none;

    transform: none;

    box-shadow:
      0 3px 8px rgba(0, 0, 0, 0.06),
      0 8px 18px rgba(0, 0, 0, 0.06);
  }


  /* ------------------------------------------
     SP：画像
  ------------------------------------------ */

  .amour-css-catalog__images img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
  }


  /* ------------------------------------------
     SP：左右矢印
  ------------------------------------------ */

  .amour-css-catalog__arrow {
    top: 50%;
    z-index: 20;

    font-size: 38px;
    line-height: 1;

    color: #555;
  }


  .amour-css-catalog__arrow--prev {
    left: -12px;
  }


  .amour-css-catalog__arrow--next {
    right: -12px;
  }


  /* ------------------------------------------
     SP：ページ番号
  ------------------------------------------ */

  .amour-css-catalog__counter {
    margin-top: 12px;

    font-size: 13px;
    line-height: 1.5;

    text-align: center;

    color: #777;
  }

}


/* ==========================================
   アニメーションを減らす設定のユーザー向け
========================================== */

@media (prefers-reduced-motion: reduce) {

  .amour-css-catalog__images,
  .amour-css-catalog__arrow {
    transition: none;
  }

}