/* ========================================================
   プレミアムメンズヘアセクション・カタログスタイル（一覧）
   ======================================================== */

.catalog-page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px 100px;
  box-sizing: border-box;
}

/* --- ページヘッダーデザイン --- */
.catalog-header {
  text-align: center;
  margin-bottom: 50px;
}
.catalog-main-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: #111;
  margin: 0 0 10px 0;
  position: relative;
  display: inline-block;
}
.catalog-main-title::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: #000;
}
.catalog-sub-title {
  font-size: 12px;
  color: #777;
  letter-spacing: 0.05em;
  margin: 15px 0 0;
}

/* --- スタイリッシュフィルター & タブコントロール --- */
.catalog-filter-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: #fdfdfd;
  border: 1px solid #eee;
  padding: 24px;
  border-radius: 12px;
  margin-bottom: 40px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.01);
}

/* タブデザイン */
.catalog-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  border-bottom: 1px solid #eaeaea;
  padding-bottom: 12px;
}
.tab-item {
  position: relative;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #888;
  text-decoration: none;
  padding: 8px 24px;
  transition: color 0.3s ease;
}
.tab-item:hover {
  color: #000;
}
.tab-item.is-active {
  color: #000;
}
.tab-item.is-active::after {
  content: '';
  position: absolute;
  bottom: -13px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #000;
}
.tab-dot-new, .tab-dot-hit {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  vertical-align: super;
  margin-left: 2px;
}
.tab-dot-new { background: #000; }
.tab-dot-hit { background: #dca154; }

/* ミニマル検索フォーム */
.catalog-search-form {
  display: flex;
  gap: 12px;
  align-items: center;
}
.search-input-group {
  position: relative;
  flex: 1;
}
.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #aaa;
  font-size: 13px;
}
.search-input {
  width: 100%;
  padding: 12px 12px 12px 38px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 13px;
  background: #fff;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.search-input:focus {
  outline: none;
  border-color: #000;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.04);
}
.search-submit-btn {
  background: #000;
  color: #fff;
  border: none;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.15em;
  padding: 13px 32px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.search-submit-btn:hover {
  background: #222;
}

/* --- スタイリッシュグリッド & 高級ホバーカード --- */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px 20px;
}

.catalog-card {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease;
}
.catalog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.07);
}

.catalog-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #f7f7f7;
}
.catalog-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
.catalog-card:hover .catalog-thumb {
  transform: scale(1.05);
}

.catalog-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 5;
}
.badge-item {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 3px;
  text-align: center;
}
.badge-item.is-new { background: #000; color: #fff; }
.badge-item.is-hit { background: #dca154; color: #fff; }

.card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.view-detail {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #fff;
  border-bottom: 1px solid #fff;
  padding-bottom: 2px;
  transform: translateY(10px);
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}
.catalog-card:hover .card-overlay { opacity: 1; }
.catalog-card:hover .view-detail { transform: translateY(0); }

.catalog-card-body { padding: 14px 6px; }
.catalog-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #222;
  margin: 0 0 6px 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.catalog-card-menu { font-size: 11px; color: #aaa; margin: 0; }

.catalog-empty { text-align: center; padding: 80px 20px; }
.empty-icon { font-size: 40px; color: #ccc; margin-bottom: 15px; }
.empty-text { font-size: 14px; color: #777; margin-bottom: 20px; }
.empty-back-btn {
  display: inline-block;
  background: #000;
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 4px;
}


/* ========================================================
   カタログ詳細画面用（メインレイアウト）
   ======================================================== */
.catalog-layout {
  display: grid;
  grid-template-columns: 45% 55%;
  gap: 50px;
  margin-top: 40px;
  align-items: start;
}

.catalog-main {
  width: 100%;
}

.catalog-photo-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  max-height: 560px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  background: #f7f7f7;
}

.catalog-side {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-top: 10px;
}

.catalog-menu {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  background: #000;
  color: #fff;
  padding: 6px 14px;
  border-radius: 4px;
  margin: 0;
}

.catalog-desc {
  font-size: 14.5px;
  line-height: 1.8;
  color: #333;
  margin: 0;
  white-space: pre-wrap;
}

.catalog-shop {
  font-size: 13px;
  font-weight: 700;
  color: #666;
  margin: 0;
  border-left: 2px solid #000;
  padding-left: 12px;
}

.catalog-thumbs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}
.catalog-thumbs-row .sub-img {
  width: 70px;
  height: 93px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.catalog-thumbs-row .sub-img:hover {
  transform: translateY(-2px);
  border-color: #000;
}


/* ========================================================
   🛠️ 【最強上書き版】詳細画面の下部：担当スタッフデザイン修正
   ======================================================== */
/* STAFFの見出しを装飾 */
.container h3 {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: #111;
  margin: 50px 0 20px 0 !important;
  position: relative;
  padding-left: 14px;
}
.container h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 13px;
  background: #000;
}

/* スタッフカードを並べるコンテナ */
.container .staff-cards-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 16px !important;
  margin-top: 20px !important;
  justify-content: flex-start !important;
}

/* ⚠️ 他のどのCSSファイルの干渉も「!important」と「詳細度」で絶対にねじ伏せる設定 */
.container .staff-cards-grid .staff-card-grid-item {
  width: 180px !important;       /* 横幅を180pxに完全固定 */
  max-width: 180px !important;   /* これ以上絶対に広がらせない */
  min-width: 180px !important;   /* これ以上縮ませない */
  flex: 0 0 180px !important;
  background: #fff !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  border: 1px solid #eee !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02) !important;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease !important;
  box-sizing: border-box !important;
}

/* カード全体の立体ホバーエフェクト */
.container .staff-cards-grid .staff-card-grid-item:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.06) !important;
}

.staff-card-link {
  text-decoration: none !important;
  color: inherit !important;
  display: block !important;
}

.staff-card-thumb {
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  overflow: hidden !important;
  background: #f7f7f7 !important;
}

.staff-card-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

.staff-card-grid-item:hover .staff-card-img {
  transform: scale(1.03) !important;
}

/* コンパクトサイズに合わせて文字周りを最適化 */
.staff-card-body {
  padding: 12px 10px !important;
  text-align: center !important;
}

.staff-card-name {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #111 !important;
  margin: 0 0 2px 0 !important;
}

.staff-card-kana {
  font-size: 9px !important;
  color: #999 !important;
  letter-spacing: 0.02em !important;
  margin-bottom: 8px !important;
}

.staff-card-title {
  font-size: 10px !important;
  font-weight: 700 !important;
  color: #555 !important;
  background: #f4f4f4 !important;
  display: inline-block !important;
  padding: 2px 10px !important;
  border-radius: 4px !important;
  margin-bottom: 2px !important;
}

.staff-card-shop {
  font-size: 9px !important;
  color: #bbb !important;
  margin-top: 4px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}


/* ========================================================
   共通レスポンシブ（900px以下 / スマホ・タブレット）
   ======================================================== */
@media (max-width: 900px) {
  .catalog-grid { grid-template-columns: repeat(3, 1fr); gap: 15px; }
  .catalog-search-form { flex-direction: column; align-items: stretch; }
  .search-submit-btn { padding: 12px; }

  .catalog-layout {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .catalog-photo-img {
    max-height: 460px;
    max-width: 340px;
    margin: 0 auto;
    display: block;
  }
  .catalog-side {
    text-align: center;
  }
  .catalog-menu {
    align-self: center;
  }
  .catalog-shop {
    display: inline-block;
    border-left: none;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 6px 20px;
  }
  .catalog-thumbs-row {
    justify-content: center;
  }

  /* 🛠️ 修正: スマホ・タブレット時はスタッフカードをきれいに中央寄せ */
  .container .staff-cards-grid {
    justify-content: center !important;
    gap: 14px !important;
  }
}

@media (max-width: 600px) {
  .catalog-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .catalog-main-title { font-size: 22px; }
  .catalog-filter-section { padding: 15px; }
  .tab-item { padding: 6px 14px; font-size: 11px; }
}