@charset "UTF-8";
/* =========================================================
   marketplace.css — Marketplace 専用（PC 1996:14027 / TB 1996:14032 / SP 1996:14037）
   値は Figma 実値（px ÷ 10 = rem）。トークンは common.css :root（再定義しない）
   ========================================================= */

/* =========================================================
   Headline + Subhead（検索欄つき）
   PC: py80 / w1050 / gap30（見出し群 gap10）
   TB: py60 / w680   SP: py40 / w315
   ========================================================= */
.mp-head { padding: 8rem 0; }
.mp-head__inner { width: 105rem; margin-inline: auto; display: flex; flex-direction: column; gap: 3rem; }
.mp-head__text { display: flex; flex-direction: column; gap: 1rem; }
.mp-head__title { font-weight: 600; font-size: var(--fs-h2); line-height: var(--lh-h2); }
.mp-head__lead { font-size: var(--fs-sub); line-height: var(--lh-sub); }

/* 検索欄（Figma "Table Header"：枠 #3B3B3B 1px / 角丸20 / 高60 / 内側 px20・justify-between） */
.mp-search {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  height: 6rem; padding: 0 2rem;
  border: 0; box-shadow: 0 0 0 1px var(--color-bg-secondary); border-radius: var(--radius); /* Figma：外側ストローク1px */
  transition: border-color .2s ease;
}
.mp-search:focus-within { outline: 2px solid var(--color-cta); outline-offset: 2px; }
.mp-search__input {
  flex: 1 1 0; min-width: 0; height: 100%; padding: 0; border: 0; background: transparent;
  font-family: var(--ff-work); font-weight: 400; font-size: var(--fs-body); line-height: var(--lh-body);
  color: var(--color-text);
  -webkit-appearance: none; appearance: none;
}
.mp-search__input:focus-visible { outline: none; }
.mp-search__input::placeholder { color: var(--color-caption); opacity: 1; }
.mp-search__input::-webkit-search-decoration { -webkit-appearance: none; }
.mp-search__btn { display: flex; flex-shrink: 0; width: 2.4rem; height: 2.4rem; }
.mp-search__btn img { width: 2.4rem; height: 2.4rem; }
.mp-search__btn:hover { opacity: .7; }

@media (max-width: 1279.98px) {
  .mp-head { padding: 6rem 0; }
  .mp-head__inner { width: 68rem; }
}
@media (max-width: 833.98px) {
  .mp-head { padding: 4rem 0; }
  .mp-head__inner { width: 31.5rem; }
  .mp-head__title { font-size: 2.8rem; line-height: 1.4; }   /* Figma SP: 28px / 1.4 */
}

/* =========================================================
   Tabs（NFTs / Collections）
   上端に全幅 1px 線（#3B3B3B・タブ帯の1px上に描画）→ gap10 → タブ h60
   ========================================================= */
.mp-tabs { position: relative; padding-top: 1rem; background: var(--color-bg); }
.mp-tabs::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px;
  background: var(--color-bg-secondary);
}
.mp-tabs__list { width: 105rem; margin-inline: auto; display: flex; align-items: flex-start; }
.mp-tab {
  flex: 1 1 0; min-width: 0; height: 6rem;
  display: flex; align-items: center; justify-content: center; gap: 1.6rem;
  padding: 0 3rem;
  border-bottom: 0.2rem solid transparent;
  color: var(--color-caption);
  font-weight: 600; font-size: 2.2rem; line-height: 1.4; text-transform: capitalize; white-space: nowrap;
  transition: color .2s ease, border-color .2s ease;
}
.mp-tab[aria-selected="true"] { color: var(--color-text); border-bottom-color: var(--color-caption); }
.mp-tab:hover { color: var(--color-text); }
.mp-tab__count {
  display: flex; align-items: center; padding: 0.5rem 1rem; border-radius: var(--radius);
  background: var(--color-bg-secondary); color: var(--color-text);
  font-family: var(--ff-mono); font-weight: 400; font-size: 1.6rem; line-height: 1.4;
}
.mp-tab[aria-selected="true"] .mp-tab__count { background: var(--color-caption); }

@media (max-width: 1279.98px) {
  .mp-tabs__list { width: 68rem; }
  .mp-tab { font-size: 1.6rem; }
}
@media (max-width: 833.98px) {
  .mp-tabs__list { width: 31.5rem; }
  .mp-tab { padding: 0 1rem; }
}

/* =========================================================
   NFT Cards Section（地 #3B3B3B / カード地 #2B2B2B）
   PC: pt60 pb80・3列 gap30 / TB: 2列 w680 / SP: 1列 py40 gap30
   カードは index の Discover more NFTs と同一意匠（.nft-card）
   ========================================================= */
.mp-cards { background: var(--color-bg-secondary); padding: 6rem 0 8rem; }
.mp-cards__grid { width: 105rem; margin-inline: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; }

.nft-card { display: flex; min-width: 0; }
.nft-card__link {
  flex: 1 1 0; min-width: 0;
  display: flex; flex-direction: column; height: 46.9rem;
  border-radius: var(--radius); background: var(--color-bg); overflow: hidden;
  transition: transform .25s ease;
}
.nft-card__link:hover { transform: translateY(-0.4rem); }
.nft-card__img { display: block; height: 29.5rem; flex-shrink: 0; }
.nft-card__img picture, .nft-card__img img { display: block; width: 100%; height: 100%; }
.nft-card__img img { object-fit: cover; }
.nft-card__info { display: flex; flex-direction: column; gap: 2.5rem; padding: 2rem 3rem 2.5rem; }
.nft-card__head { display: flex; flex-direction: column; gap: 0.5rem; }
.nft-card__name { font-weight: 600; font-size: 2.2rem; line-height: 1.4; }
.nft-card__artist { display: flex; align-items: flex-start; gap: 1.2rem; font-family: var(--ff-mono); font-size: 1.6rem; line-height: 1.4; }
.nft-card__artist > span { flex: 1 1 0; min-width: 0; }
.nft-card__artist .c-avatar { width: 2.4rem; height: 2.4rem; }
.nft-card__meta { display: flex; font-family: var(--ff-mono); }
.nft-card__price, .nft-card__bid { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 0.8rem; }
.nft-card__price { padding-right: 2.1rem; text-align: left; }
.nft-card__bid { text-align: right; }
.nft-card__label { font-size: 1.2rem; line-height: 1.1; color: var(--color-caption); }
.nft-card__value { font-size: 1.6rem; line-height: 1.4; }

@media (max-width: 1279.98px) {
  .mp-cards__grid { width: 68rem; grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 833.98px) {
  .mp-cards { padding: 4rem 0; }
  .mp-cards__grid { width: 31.5rem; grid-template-columns: 1fr; }
  /* Figma SP の並び：1, 3, 2, 4, 5（Happy Robot 024 が2枚目） */
  .mp-cards__grid > .nft-card:nth-child(1) { order: 1; }
  .mp-cards__grid > .nft-card--sp-2 { order: 2; }
  .mp-cards__grid > .nft-card--sp-3 { order: 3; }
  .mp-cards__grid > .nft-card:nth-child(4) { order: 4; }
  .mp-cards__grid > .nft-card:nth-child(5) { order: 5; }
  .nft-card__link { height: 40.2rem; }
  .nft-card__img { height: 23.8rem; }
  .nft-card__info { padding: 2rem 2rem 2.5rem; }
  .nft-card__price, .nft-card__bid { height: 3.4rem; }
  .nft-card__value { font-size: 1.2rem; line-height: 1.1; }
}
