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

/* ===============================
   ヒーロー画像
   =============================== */
.hero {
  background-image: url("../img/service-img/DSC09505-02.jpg");
}


/*❎サービス*/

#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;
}

/*❎ギャラリーアイコン*/
/* =============================================
   フィルターアイコン全体
   ============================================= */
.filter-icons {
  display: flex;
  flex-wrap: wrap;        /* 折り返しを許可 */
  justify-content: center; /* 中央寄せ */
  gap: 20px 10px;         /* 上下20px、左右10pxの隙間 */
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  padding: 30px 10px;
  box-sizing: border-box;
}

/* =============================================
   ボタンひとつひとつの設定（PC：1行に5つ）
   ============================================= */
.filter-icon {
  background: transparent;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  padding: 5px 0;
  /* (100% - 隙間) / 5 で計算 */
  width: calc((100% - 100px) / 5); 
  min-width: 200px;
  outline: none;
  -webkit-tap-highlight-color: transparent;
	
}

/* --- 写真アイコン --- */
.filter-icon img {
  width: 140px;
  height: 140px;
  max-width: 90%;         /* 親要素からはみ出さないように */
  aspect-ratio: 1 / 1;    /* 正方形を維持 */
  border-radius: 50%;
  object-fit: cover;
	 margin-bottom: 0; 
  border: 4px solid transparent;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  background-color: #fff;
  transition: all 0.3s ease;
}

/* --- テキスト --- */
.filter-icon span {
  display: block;
  font-size: 1rem;
	 margin-top: 0px;
  color: #555;
  font-weight: bold;
  text-align: center;
  line-height: 1.2;
  width: 100%;
  word-wrap: break-word;
}

/* =============================================
   ホバーとアクティブ状態
   ============================================= */
.filter-icon:hover img {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  border-color: #ffe4e8;
}

.filter-icon.active img {
  border-color: #e91e63;
  transform: scale(1.05);
}

.filter-icon.active span {
  color: #e91e63;
}
/* ホバー時：文字もピンクに */
.filter-icon:hover span {
  color: #e91e63;
}

/* =============================================
   スマホ対応（常に2つずつ並べる）
   ============================================= */
@media screen and (max-width: 768px) {
  .filter-icon {
    /* (100% - 左右の隙間10px) / 2 で、確実に2カラムにする */
    width: calc((100% - 10px) / 2); 
    min-width: 0; /* min-widthを解除して2列を優先 */
  }

  .filter-icon img {
    width: 130px; /* スマホでも見やすいサイズを維持 */
    height: 130px;
  }

  .filter-icon span {
    font-size: 13px; /* 文字が重なりそうなら少し小さく */
  }
}



/*選択中の挙動*/
/* 選択中（クリック中） */
.filter-icon.is-active {
  pointer-events: auto;
}
/* 選択中（クリック中） */
.filter-icon.is-active img {
  border-color: #ef96bd;   
  box-shadow: none;      
  transform: scale(1.05);
}

.filter-icon.is-active span {
  color: #e1208f;
  font-weight: 700;
}

.filter-icon {
  position: relative;
}
/* 未選択のみホバー反応 */
.filter-icon:not(.is-active):hover img {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  border-color: #ffe4e8;
}

.filter-icon:not(.is-active):hover span {
  color: #e91e63;
}





.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;
  }
}

