/* =========================================================
   永寿院の風景ページ専用CSS
   ========================================================= */

/* ---------- ページ見出し帯 ---------- */
.gallery-bg-wrap{
  position:relative;
}

.page-hero{
  position:relative;
  overflow:hidden;
  background:var(--gray-deep);
  padding:300px 0;
  text-align:center;
}
.page-hero img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:0.45;
}
.page-hero .inner{
  position:relative;
  z-index:1;
}
.page-hero h1{
  font-size:clamp(34px,5vw,52px);
  color:#fff;
  letter-spacing:0.1em;
}
.page-hero .inner{
  animation: heroFadeUp 1.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes heroFadeUp{
  0%{
	opacity:0;
	transform:translateY(50px) scale(0.9);
  }
  100%{
	opacity:1;
	transform:translateY(0) scale(1);
  }
}

/* ---------- ギャラリー：2カラムグリッド ---------- */
.gallery-page{
  padding:72px 0 96px;
  position:relative;
}
.gallery-page-grid{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:16px;
}
.gallery-page-item{
  display:block;
  width:100%;
  padding:0;
  border:none;
  background:none;
  cursor:pointer;
  aspect-ratio:4/3;
  overflow:hidden;
  border-radius:2px;
}
.gallery-page-item img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:transform .4s ease;
}
.gallery-page-item:hover img{
  transform:scale(1.05);
}

.gallery-page-item{
  position:relative;
  z-index:1;
}
.js-anim-ready .gallery-page-item{
  opacity:1;
  transform:none;
}
.gallery-page-item.is-visible{
  opacity:1;
  transform:translateY(0) scale(1);
}
.gallery-zoom-icon{
  position:absolute;
  right:10px;
  bottom:10px;
  width:34px;
  height:34px;
  border-radius:50%;
  background:rgba(255,255,255,0.55);
  box-shadow:0 1px 4px rgba(0,0,0,0.12);
  color:rgba(63,60,54,0.7);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:2;
  pointer-events:none;
}
.gallery-zoom-icon svg{
  width:16px;
  height:16px;
}

/* ---------- 導入文 ---------- */
.gallery-intro{
  max-width:760px;
  margin:0 auto;
  padding:72px 32px 0;
  text-align:center;
}
.gallery-intro p{
  font-size:25px;
  color:var(--ink);
  line-height:2.1;
  font-weight: 700;
}

.js-anim-ready .gallery-intro{
  opacity:0;
  transform:translateY(50px) scale(0.9);
  transition:
    opacity 1.6s cubic-bezier(0.34, 1.56, 0.64, 1),
    transform 1.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.gallery-intro.is-visible{
  opacity:1;
  transform:translateY(0) scale(1);
}

/* ---------- 背景イラスト（左上・右下、それぞれ別デザイン） ---------- */
.gallery-motif{
  position:absolute;
  height:auto;
  opacity:0.25;
  z-index:-1;
  pointer-events:none;
}
.gallery-motif-top{
  top:-176px;
  left:0;
  width:550px;   /* 695:540 の比率のまま縮小されます */
}
.gallery-motif-bottom{
  bottom:0;
  right:0;
  width:550px;   /* 1022:1073 の比率のまま縮小されます */
}
.js-anim-ready .gallery-motif{
  opacity:0;
  transform:translateY(40px);
  transition:
    opacity 3.2s cubic-bezier(0.16, 1, 0.3, 1),
    transform 3.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.gallery-motif.is-visible{
  opacity:0.25;
  transform:translateY(0);
}

@media (max-width:860px){
	
	/* ---------- ページ見出し帯 ---------- */
	.page-hero{
		padding:160px 0;
	  }
	  
	/* ---------- ギャラリー：2カラムグリッド ---------- */
	.gallery-page{
		padding:40px 0 64px;
	  }
	  .gallery-page-grid{
		gap:10px;
	  }
    .gallery-page-grid{
      grid-template-columns:1fr;
    }
	
	/* ---------- 導入文 ---------- */
  .gallery-intro{
	padding:40px 24px 0;
  }
  .gallery-intro p{
    font-size:18px;
    line-height:1.9;
  }
  .gallery-zoom-icon{
    width:30px;
    height:30px;
  }
  .gallery-zoom-icon svg{
    width:14px;
    height:14px;
  }
  
 /* ---------- 背景イラスト（左上・右下、それぞれ別デザイン） ---------- */
 .gallery-motif-top{
   top:-80px;
   width:260px;
 }
 .gallery-motif-bottom{
   width:260px;
 }
  
}