@charset "UTF-8";
/* CSS Document */

/* ===============================
   ヒーロー画像
   =============================== */
.hero {
  width: 100%;
  height: 48vh;
  background-image: url("../img/service-img/DSC09505-02.jpg");
  background-size: cover;
  background-position: center;
  position: relative;
}

/* ※写真上部を暗くし強調効果 */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.25), rgba(255,255,255,0));
}


/*❎サービス*/

.service-00{
	background-image: url("../img/service-img/23038294.png");
	background-size: cover;
background-repeat: no-repeat;
	padding-top: 150px;
	
}
.bg-title{
	margin-bottom: 80px;
}
/*❎サービス動き*/
/* ふわっと出現前 */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease, transform 1s ease;
}

/* 表示開始時 */
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}




/* グリッド（スマホ1、タブレット2、PC4） */
.service-list{
	list-style: none;
	margin: 0 auto;
	padding: 0 0 200px;
	display: flex;
	flex-wrap: wrap;
	width: 80%;
	gap:50px;
	justify-content: center; 
}
.service-item {
	
	width: 30%;
	text-align: center;
	min-width: 300px;
}

.service-item-img {
  width: 60vw;             
  height: 60vw;            
  max-width: 250px;     
  max-height: 250px;
  border-radius: 50%;
  object-fit: cover;
}


.img-wrap{
	overflow: hidden;
	border-radius: 12px; 
}

/* ← 画像全体のラップを中央寄せ */
.img-wrap{
    width: 250px;      /* 写真の最大サイズと揃える */
    height: 250px;
    margin: 0 auto;    /* ★ 中央寄せの決定打 */
    border-radius: 50%;
    overflow: hidden;
    display: flex;     /* 中の画像の位置を安定させる */
    align-items: center;
    justify-content: center;
}

/* 中の画像は100%でOK */
.service-item-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}



/* タイトル */
.service-item h1{
	font-size: 1.4rem;
	color: #603813;
	margin-top: 18px;
	margin-bottom: 6px;
}
.service-item img.service-title {
	display: block;
	margin: 0 auto; /* ← 中央寄せにする */
	width: 40%;
}


/* 説明 */
.service-item p{
	color: #622d18;
	font-size: 0.95rem;
	line-height: 1.8;
}

/* スマホ */
@media screen and (max-width: 700px){
	.service-item h1{
		font-size: 1.2rem;
	}
	.service-item p{
		font-size: 0.9rem;
	}
	.service-item {
	width: 80%;
		margin: 0 auto;
	
}

}




/*❎ギャラリー*/
/* ギャラリー：アンカー位置を上にずらす */
#gallery {
   scroll-margin-top: 30vh;
}


.gallery{
	margin: 300px auto 100px;
	width: 80%;
}
.gallery p{
	font-size: 1.2rem;
	
}
.gallery span{
	padding-top: 15px;
	font-size: 1rem;
	color: #db7093;
	font-weight: bold;
}
.page-title {
  text-align: center;
  margin-bottom: 30px;
}

.filter-title {
  margin-top: 25px;
  font-size: 1.2rem;
}

.filter-box {
  margin-bottom: 20px;
}

.filter-box label {
  margin-right: 15px;
  font-size: 1.1rem;
  cursor: pointer;
}

/* ======== 写真一覧（正方形・ギュッと詰める） ======== */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 15px;
  margin-top: 30px;
}

/* 正方形を作るラッパー */
.photo-item {
  position: relative;
  width: 100%;
  padding-top: 100%; /* ← 正方形の決定打 */
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;

  /* スムーズ切り替えの初期状態 */
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* 正方形内の画像 */
.photo-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ▼ スムーズに消える直前（アニメーション） */
.photo-item.hiding {
  opacity: 0;
  transform: scale(0.9);
}

/* ▼ 完全非表示（空白を詰める役） */
.photo-item.hide {
  display: none !important;
}

/* ===============================
   ギャラリー フィルター用
   =============================== */

.photo-item {
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}

/* 非表示準備状態 */
.photo-item.is-hiding {
  opacity: 0;
  transform: scale(0.96);
}

/* 完全非表示 */
.photo-item.is-hidden {
  display: none;
}

/* ===============================
   ギャラリー Moreボタン
   =============================== */
/* 初期非表示（More対象） */
.photo-item.is-collapsed {
  display: none;
}

/* Moreボタン */
.gallery-more {
  display: block;
  margin: 50px auto 0;
  padding: 14px 40px;
  border-radius: 999px;
  border: 1px solid #d65288;
  background: #fff;
  color: #d65288;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.25s ease;
}

.gallery-more:hover {
  background: #d65288;
  color: #fff;
}

.gallery-more.is-hidden {
  display: none;
}





/* ---------- モーダル ---------- */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-content {
  background: #fff;
  padding: 18px;
  width: 90%;
  max-width: 480px;
  max-height: 80%;
  overflow-y: auto;
  border-radius: 12px;
  position: relative;
  animation: fadeIn 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* モーダル画像を少し小さめに */
.modal-content img {
  width: 100%;
  max-height: 480px; 
  object-fit: contain;
  border-radius: 10px;
  margin-bottom: 10px;
}


.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;       
  cursor: pointer;
}
.modal-prev,
.modal-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 36px;
  color: #333;
  cursor: pointer;
  padding: 10px;
  user-select: none;
  font-weight: bold;
  opacity: 0.7;
  transition: 0.2s;
}

.modal-prev:hover,
.modal-next:hover {
  opacity: 1;
}

/* 左矢印 */
.modal-prev {
  left: 10px;
}

/* 右矢印 */
.modal-next {
  right: 10px;
}


#modal-tags {
  margin-top: 15px;
  text-align: center;
}

#modal-tags span {
  display: inline-block;
  background: #f2f2f2;
  padding: 5px 10px;
  border-radius: 6px;
  margin: 5px;
  font-size: 0.95rem;
}

/* ======== スマホ時の最適化 ======== */
@media screen and (max-width: 700px){

  .photo-grid {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 8px;
  }

  .photo-item {
    padding-top: 100%; /* 正方形のまま */
  }

  .modal-content {
    width: 92%;
    max-width: 420px;
    padding: 15px;
  }

	  .modal-content img {
    max-height: 200px; /* モバイル時はさらに小さく */
  }
	
  #modal-tags span {
    font-size: 0.8rem;
    padding: 4px 7px;
  }
}