/* ==============================================
   ファミリー (family.html) ページ専用スタイル
   ============================================== */

.family-main {
  padding: 0 64px 80px;
  min-height: 60vh;
}

/* パンくずリスト */
.family-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 18px 0;
  font-size: 12px;
  font-weight: 400;
  color: #4a4a4a;
  letter-spacing: 1px;
}

.family-breadcrumb a {
  color: #4a4a4a;
  text-decoration: none;
}

.family-breadcrumb a:hover {
  text-decoration: underline;
}

.family-breadcrumb img {
  width: 18px;
  height: 18px;
  display: block;
}

/* タイトル */
.family-title {
  font-size: 48px;
  font-weight: 500;
  color: #000;
  line-height: 1.2;
  margin-bottom: 28px;
}

/* フォトグリッド行 */
.family-grid-row {
  display: flex;
  gap: 41px;
  margin-bottom: 40px;
}

.family-photo {
  width: 25%;
  border-radius: 10px;
  overflow: hidden;
}

.family-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.family-photo:hover img {
  transform: scale(1.04);
}

/* もっとを見るボタン */
.family-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.family-more-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 30px;
  padding: 10px 40px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  min-width: 248px;
  transition: background 0.2s ease, transform 0.15s ease;
}

.family-more-btn:hover {
  background: #333;
  transform: translateY(-2px);
}

/* ナビゲーション アクティブ状態 */
.nav-active {
  font-weight: 700 !important;
  border-bottom: 2px solid #000;
  padding-bottom: 2px;
}

/* ─── レスポンシブ ────────────────────────────── */

@media (max-width: 1200px) {
  .family-main {
    padding: 0 48px 64px;
  }

  .family-grid-row {
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .family-main {
    padding: 0 24px 48px;
  }

  .family-title {
    font-size: 32px;
  }

  .family-grid-row {
    gap: 16px;
    flex-wrap: wrap;
  }

  .family-photo {
    flex: calc(50% - 8px);
    min-width: calc(50% - 8px);
    height: 200px;
  }
}

@media (max-width: 480px) {
  .family-title {
    font-size: 24px;
  }

  .family-photo {
    flex: 100%;
    min-width: 100%;
    height: 220px;
  }

  .family-grid-row {
    gap: 12px;
  }
}
