/* 品目別ページ共通（骨董品・家電・本・ミシン）：style.css（トップと共通）の上に、品目ページ固有の部品だけを追加 */

/* ヘッダー：メニューの代わりに電話ボタン */
.header-tel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
}

.header-tel svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.header-tel__num {
  display: none;
}

/* ヒーロー：品目名のラベル */
.hero__category {
  display: inline-block;
  margin: 0 0 12px;
  padding: 3px 14px;
  border: 1.5px solid #c55358;
  border-radius: 999px;
  background: #fff;
  color: #c55358;
  font-size: clamp(12px, 3.4vw, 14px);
  font-weight: 900;
  letter-spacing: .06em;
  line-height: 1.6;
}

/* SP：ラベル分の高さを詰め、品物写真との重なりを防ぐ */
@media (max-width: 859px) {
  .hero--category {
    padding-top: 20px;
  }

  .hero--category .hero__category {
    margin-bottom: 8px;
    padding: 1px 12px;
  }

  .hero--category .hero__main {
    margin: 10px 0 14px;
  }

  .hero--category .hero__product--camera,
  .hero--category .hero__product--watch {
    top: 47%;
  }

  .hero--category .hero__product--guitar,
  .hero--category .hero__product--bag,
  .hero--category .hero__product--washer {
    top: 60%;
  }
}

/* ヒーロー：写真素材は切り抜きではないため円内いっぱいに表示 */
.hero--category .hero__product img {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: none;
}

.hero--category .hero__product img.is-contain {
  object-fit: contain;
  padding: 6px;
  background: #fff;
}

/* 買取対象：リンクなしのカード */
.category-grid .item-card__name {
  font-size: 12px;
  line-height: 1.5;
}

.item-card--text {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  border-radius: 8px;
  background: var(--pink-soft);
}

.item-card__text {
  color: var(--red);
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

/* 写真素材のないジャンルは文字カードで表示 */
.item-card__text--genre {
  font-size: 14px;
  line-height: 1.6;
}

.category-subtitle {
  margin: 48px 0 16px;
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  text-align: center;
}

.genre-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 640px;
  margin: 0 auto;
}

.genre-tags li {
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
}

.category-note {
  margin-top: var(--space-note);
}

/* 骨董品を売る前のポイント */
.tip-list {
  display: grid;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.tip {
  padding: 24px 22px;
  border: 1px solid #efe4e1;
  border-radius: 14px;
  background: var(--cream);
}

.tip__num {
  color: var(--red);
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
}

.tip__title {
  margin: 4px 0 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
}

.tip__text {
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.9;
}

/* 最後のCTA：他の品目への導線 */
.other-items {
  max-width: 400px;
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.other-items__text {
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.8;
}

.other-items__link {
  display: inline-block;
  margin-top: 8px;
  color: var(--red);
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (min-width: 860px) {
  .header-tel {
    width: auto;
    height: auto;
    padding: 8px 18px;
    border-radius: 999px;
  }

  .header-tel__num {
    display: inline;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: .03em;
  }

  /* ラベル分の高さをヒーロー上余白とメインコピー下余白で吸収 */
  .hero--category {
    padding-top: 32px;
  }

  .hero__category {
    margin-bottom: 12px;
    padding: 3px 18px;
    font-size: 17px;
  }

  .hero--category .hero__main {
    margin: 16px 0 36px;
  }

  .category-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 720px;
    margin-inline: auto;
  }

  .category-grid .item-card__name {
    font-size: 15px;
  }

  .item-card__text {
    font-size: 24px;
  }

  .item-card__text--genre {
    font-size: 20px;
  }

  .tip-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

/* フッター：リンクが2つ並ぶため間隔をとる */
.page-category .footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 24px;
}

/* カード名：長い名前は語の区切りでだけ折り返す */
.item-card__name .nobr {
  display: inline-block;
}
