/* ============================================================
   page-hair.css — ヘアカタログ専用スタイル
   ============================================================ */

/* スタッフフィルタ */
.hair-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.hair-filter-btn {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: #555;
  text-decoration: none;
  padding: 6px 14px;
  border: 1px solid #ddd;
  background: #fff;
  transition: all 0.2s;
  white-space: nowrap;
}

.hair-filter-btn:hover,
.hair-filter-btn.is-active {
  background: #1a1a1a;
  color: #fff;
  border-color: #1a1a1a;
}

/* 件数 */
.hair-count {
  font-size: 13px;
  color: #888;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}

/* グリッド */
.hair-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px 16px;
  margin-bottom: 48px;
}

/* カード */
.hair-card {
  display: block;
}

.hair-card-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #e8e4de;
  margin-bottom: 8px;
  position: relative;
}

.hair-card-img.no-img::after {
  content: 'NO IMAGE';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #ccc;
}

.hair-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.4s;
}

.hair-card:hover .hair-card-img img {
  transform: scale(1.04);
}

.hair-card-body {
  text-align: center;
  padding: 0 4px 12px;
  border-bottom: 1px solid #e8e4de;
}

.hair-card-staff {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #1a1a1a;
  letter-spacing: 0.06em;
  line-height: 1.5;
}

.hair-card-staff small {
  display: block;
  font-size: 11px;
  color: #999;
  font-weight: 400;
  font-style: italic;
  margin-top: 2px;
}

/* 空メッセージ */
.hair-empty {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 14px;
  color: #aaa;
  padding: 60px 0;
}

/* ページネーション */
.hair-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hair-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-size: 13px;
  font-weight: 500;
  color: #555;
  text-decoration: none;
  border: 1px solid #ddd;
  background: #fff;
  transition: all 0.2s;
}

.hair-page-btn:hover,
.hair-page-btn.is-active {
  background: #1a1a1a;
  color: #fff;
  border-color: #1a1a1a;
}

/* レスポンシブ */
@media (max-width: 1024px) {
  .hair-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 768px) {
  .hair-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 480px) {
  .hair-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* ============================================================
   ヘアカタログ詳細ページ
   ============================================================ */
.hair-detail-wrap {
  max-width: 1100px;
}

.hair-detail {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 48px;
  align-items: start;
  margin-top: 32px;
}

/* ギャラリー */
.hair-gallery-main {
  overflow: hidden;
  background: #f0ede8;
  margin-bottom: 10px;
  aspect-ratio: 3/4;
}

.hair-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: opacity 0.2s;
}

.hair-gallery-thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.hair-thumb {
  width: calc((100% - 32px) / 5);
  aspect-ratio: 1;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s;
  background: #f0ede8;
}

.hair-thumb.is-active {
  border-color: #800000;
}

.hair-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* タイトル */
.hair-detail-title {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #1a1a1a;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e8e4de;
}

/* スタイリスト */
.hair-detail-stylist {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px;
  align-items: start;
  background: #f5f4f2;
  padding: 16px;
  margin-bottom: 24px;
}

.hair-stylist-img {
  width: 80px;
  height: 80px;
  overflow: hidden;
  border-radius: 50%;
  background: #e0dcd6;
}

.hair-stylist-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.hair-stylist-label {
  font-size: 11px;
  color: #800000;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: 4px;
}

.hair-stylist-name {
  font-size: 13px;
  color: #555;
  margin-bottom: 8px;
  line-height: 1.6;
}

.hair-stylist-name strong {
  display: block;
  font-size: 15px;
  color: #1a1a1a;
  font-weight: 700;
}

.hair-stylist-comment {
  font-size: 13px;
  line-height: 1.9;
  color: #333;
  margin-bottom: 10px;
}

.hair-stylist-link {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #fff;
  background: #800000;
  padding: 6px 16px;
  text-decoration: none;
  transition: opacity 0.2s;
}

.hair-stylist-link:hover { opacity: 0.8; }

/* セクション */
.hair-detail-section {
  margin-bottom: 24px;
}

.hair-detail-section-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  background: #1a1a1a;
  padding: 8px 14px;
  margin-bottom: 12px;
}

.hair-detail-text {
  font-size: 13px;
  line-height: 2;
  color: #333;
  letter-spacing: 0.04em;
}

/* スタイルメニュー & データ */
.hair-detail-grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.hair-data-box-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  background: #1a1a1a;
  padding: 8px 14px;
  margin-bottom: 10px;
}

.hair-data-box-text {
  font-size: 13px;
  color: #333;
  padding: 0 4px;
  line-height: 1.8;
}

.hair-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.hair-data-table tr {
  border-bottom: 1px solid #f0ede9;
}

.hair-data-table th {
  width: 60px;
  font-weight: 600;
  color: #888;
  padding: 6px 8px 6px 4px;
  vertical-align: top;
  white-space: nowrap;
}

.hair-data-table td {
  color: #333;
  padding: 6px 0;
  line-height: 1.6;
}

/* おすすめタイプ */
.hair-type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.hair-type-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hair-type-label {
  font-size: 12px;
  font-weight: 600;
  color: #555;
  width: 40px;
  flex-shrink: 0;
}

.hair-type-tags {
  display: flex;
  gap: 4px;
}

.hair-tag {
  font-size: 11px;
  padding: 4px 10px;
  border: 1px solid #ddd;
  color: #aaa;
  background: #fff;
  letter-spacing: 0.04em;
}

.hair-tag.is-active {
  background: #1a1a1a;
  color: #fff;
  border-color: #1a1a1a;
}

/* 顔型 */
.hair-face-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.hair-face-tag {
  font-size: 12px;
  padding: 6px 16px;
  border: 1px solid #ddd;
  color: #aaa;
  background: #fff;
  letter-spacing: 0.06em;
}

.hair-face-tag.is-active {
  background: #1a1a1a;
  color: #fff;
  border-color: #1a1a1a;
}

/* 戻るリンク */
.hair-back {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #e8e4de;
}

.hair-back-link {
  font-size: 13px;
  color: #888;
  text-decoration: none;
  letter-spacing: 0.08em;
  transition: color 0.2s;
}

.hair-back-link:hover { color: #800000; }

/* レスポンシブ */
@media (max-width: 900px) {
  .hair-detail { grid-template-columns: 1fr; gap: 32px; }
  .hair-detail-gallery { max-width: 400px; margin: 0 auto; }
  .hair-detail-grid2 { grid-template-columns: 1fr; }
  .hair-type-grid { grid-template-columns: 1fr; }
}
