@charset "utf-8";

/* ========================================
   ピュアライフクラブ 固有CSS
   ======================================== */

/* ====== デスクトップ (min-width:1000px) ====== */
@media(min-width:1000px){
  /* ヘッダー背景画像 */
  header{
    background-image: url(../topIMG/9_Z.jpg);
  }
  /* h1 上書き（letter-spacingなし、8vw） */
  h1{
    font-size: 8vw;
    letter-spacing: normal;
  }
}

/* ====== タブレット以上 (min-width:768px) ====== */
@media(min-width:768px){
/* メイン：パンフレットサムネイル横並びレイアウト */
.pamphlet{
  display: flex;
  gap: 30px;
  padding: 200px 40px 100px;
  background-color: var(--color-light);
  justify-content: center;
}
.item{
  flex: 1;
  max-width: 33.333%;
  padding-bottom: 0;
  text-align: center;
}
/* 1枚目の上パディングをリセット（flexレイアウトでは不要） */
.item:nth-of-type(1){
  padding-top: 0;
}
.pamphlet img{
  width: 100%;
  height: auto;
  vertical-align: top;
  cursor: pointer;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
/* サムネイルホバー時の拡大＋影強調 */
.pamphlet img:hover{
  transform: scale(1.03);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}
/* 注意書きテキスト（サムネイル下に表示） */
.pamphlet p{
  width: 100%;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-danger);
  background-color: var(--color-light);
  padding: 8px 6px;
  line-height: 1.3;
  border-radius: 0 0 4px 4px;
  text-align: left;
}

/* お問い合わせ */
.contactOut{
  margin-top: 100px;
  padding-bottom: 150px;
}

.contactInner img{
  width: 60px;
  height: 60px;
}
}

/* ========================================
   パンフレットモーダル（ライトボックス）
   全画面表示 — メディアクエリ外（PC・モバイル共通定義）
   モバイルでは pureRP.css で非表示にする
   ======================================== */

/* モーダルオーバーレイ（背景暗転） */
.modal-overlay{
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.85);
  display: none;            /* デフォルト非表示 */
  align-items: center;
  justify-content: center;
}
/* active クラス付与でモーダル表示 */
.modal-overlay.active{
  display: flex;
}

/* モーダル内の画像 */
.modal-content{
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-img{
  max-height: 90vh;
  max-width: 90vw;
  object-fit: contain;
  border-radius: 4px;
  animation: modalFadeIn 0.3s ease;
}

/* モーダルフェードインアニメーション */
@keyframes modalFadeIn{
  from{ opacity: 0; transform: scale(0.95); }
  to{ opacity: 1; transform: scale(1); }
}

/* 閉じるボタン（右上 ×） */
.modal-close{
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 48px;
  color: var(--color-white);
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  z-index: 1001;
  transition: opacity 0.2s;
}
.modal-close:hover{
  opacity: 0.7;
}

/* 前へ・次へ矢印ボタン */
.modal-prev,
.modal-next{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 64px;
  color: var(--color-white);
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
  padding: 10px;
  transition: opacity 0.2s;
}
.modal-prev{ left: 15px; }
.modal-next{ right: 15px; }
.modal-prev:hover,
.modal-next:hover{
  opacity: 0.7;
}

/* ========================================
   ズームコントロール（右下固定配置）
   ======================================== */

/* ズームボタン群のコンテナ */
.modal-zoom-controls{
  position: absolute;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 1001;
}

/* 各ズームボタン共通スタイル */
.modal-zoom-in,
.modal-zoom-out,
.modal-zoom-reset{
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-dark);
  font-size: 22px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  line-height: 1;
}
.modal-zoom-in:hover,
.modal-zoom-out:hover,
.modal-zoom-reset:hover{
  background: var(--color-white);
  transform: scale(1.1);
}

/* リセットボタンのフォントサイズ調整（⟲ アイコン用） */
.modal-zoom-reset{
  font-size: 26px;
}

/* ズーム中の画像にドラッグカーソルを適用 */
.modal-img.zoomed{
  cursor: grab;
}
.modal-img.dragging{
  cursor: grabbing;
}

/* ズーム中もコンテンツが枠に切り取られないようにする */
.modal-content{
  overflow: visible;
}

/* ズーム時のトランジション（スムーズな拡大縮小） */
.modal-img{
  transition: transform 0.2s ease;
  transform-origin: center center;
}
